File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ runtime-initialisation for global variables.
21
21
[ design ] : #detailed-design
22
22
23
23
- Lift the restriction on types with destructors being used in ` static ` or ` const ` items.
24
- - ` static ` s containing Drop-types will not run the destructor upon program/thread exit.
25
- - ` const ` s containing Drop-types _ will_ run the destructor at the appropriate point in the program.
26
- - (Optionally adding a lint that warn about the possibility of resource leak)
27
- - Alloc instantiating structures with destructors in constant expressions,
24
+ - ` static ` s containing Drop-types will not run the destructor upon program/thread exit.
25
+ - ` const ` s containing Drop-types _ will_ run the destructor at the appropriate point in the program.
26
+ - (Optionally adding a lint that warn about the possibility of resource leak)
27
+ - Allow instantiating structures with destructors in constant expressions.
28
28
- Allow ` const fn ` to return types with destructors.
29
29
- Disallow constant expressions that require destructors to run during compile-time constant evaluation (i.e: a ` drop(foo) ` in a ` const fn ` ).
30
30
You can’t perform that action at this time.
0 commit comments