We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734ab29 commit db54fa9Copy full SHA for db54fa9
text/1440-drop-types-in-const.md
@@ -26,7 +26,7 @@ runtime-initialisation for global variables.
26
- (Optionally adding a lint that warn about the possibility of resource leak)
27
- Alloc instantiating structures with destructors in constant expressions,
28
- Allow `const fn` to return types with destructors.
29
-- Disallow constant expressions resulting in destructors being called at runtime (i.e: a `drop(foo)` in a `const fn`).
+- Disallow constant expressions that require destructors to run during compile-time constant evaluation (i.e: a `drop(foo)` in a `const fn`).
30
31
## Examples
32
Assuming that `RwLock` and `Vec` have `const fn new` methods, the following example is possible and avoids runtime validity checks.
0 commit comments