From e5e4a851c493a739a18d69794f5c7f3ab943b412 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Sun, 3 Jan 2021 15:15:23 +0100 Subject: [PATCH] Grammar fixes Co-authored-by: Ralf Jung --- compiler/rustc_mir/src/transform/check_consts/validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir/src/transform/check_consts/validation.rs b/compiler/rustc_mir/src/transform/check_consts/validation.rs index 8c2525879b363..0e3dfb4422880 100644 --- a/compiler/rustc_mir/src/transform/check_consts/validation.rs +++ b/compiler/rustc_mir/src/transform/check_consts/validation.rs @@ -592,7 +592,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> { // to (interior) mutable memory. hir::ConstContext::ConstFn => self.check_op(ops::TransientCellBorrow), _ => { - // Locals StorageDead are known to not leak to the final constant, and + // Locals with StorageDead are definitely not part of the final constant value, and // it is thus inherently safe to permit such locals to have their // address taken as we can't end up with a reference to them in the // final value without creating a dangling pointer, which will cause