diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-12-27 23:59:00 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2021-01-01 16:59:12 +0000 |
| commit | 3a44a20ed1c3ee448c3d588e9b132ddc6cd62ab9 (patch) | |
| tree | 08d734411be5ed83e6e33cc420e98884f24266cf | |
| parent | 0b841846ba467f0fe4ec1ee152414e3ae8f7d88e (diff) | |
| download | rust-3a44a20ed1c3ee448c3d588e9b132ddc6cd62ab9.tar.gz rust-3a44a20ed1c3ee448c3d588e9b132ddc6cd62ab9.zip | |
The proper name for the rule is "enclosing scope"
| -rw-r--r-- | compiler/rustc_mir/src/transform/check_consts/validation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/check_consts/validation.rs b/compiler/rustc_mir/src/transform/check_consts/validation.rs index 8830575f189..c2c54c94061 100644 --- a/compiler/rustc_mir/src/transform/check_consts/validation.rs +++ b/compiler/rustc_mir/src/transform/check_consts/validation.rs @@ -582,7 +582,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> { ); if borrowed_place_has_mut_interior { - // Locals without StorageDead follow the "trailing expression" rule, meaning + // Locals without StorageDead follow the "enclosing scope" rule, meaning // they are essentially anonymous static items themselves. if self.local_has_storage_dead(place.local) { self.check_op(ops::CellBorrowBehindRef); |
