File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,13 @@ strictly outlive that value.
186
186
The precise rules that govern drop checking may be less restrictive in
187
187
the future.
188
188
189
- The current analysis is deliberately conservative; forcing all
190
- borrowed data in a value to outlive that value is certainly sound.
189
+ The current analysis is deliberately conservative and trivial; it forces all
190
+ borrowed data in a value to outlive that value, which is certainly sound.
191
191
192
- Future versions of the language may improve its precision (i.e. to
193
- reduce the number of cases where sound code is rejected as unsafe).
192
+ Future versions of the language may make the analysis more precise, to
193
+ reduce the number of cases where sound code is rejected as unsafe.
194
+ This would help address cases such as the two Inspectors above that
195
+ know not to inspect during destruction.
194
196
195
197
In the meantime, there is an unstable attribute that one can use to
196
198
assert (unsafely) that a generic type's destructor is * guaranteed* to
You can’t perform that action at this time.
0 commit comments