We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b84184 commit 3a44a20Copy full SHA for 3a44a20
compiler/rustc_mir/src/transform/check_consts/validation.rs
@@ -582,7 +582,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
582
);
583
584
if borrowed_place_has_mut_interior {
585
- // Locals without StorageDead follow the "trailing expression" rule, meaning
+ // Locals without StorageDead follow the "enclosing scope" rule, meaning
586
// they are essentially anonymous static items themselves.
587
if self.local_has_storage_dead(place.local) {
588
self.check_op(ops::CellBorrowBehindRef);
0 commit comments