Skip to content

Commit e5e4a85

Browse files
oli-obkRalfJung
andauthored
Grammar fixes
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent a137ff1 commit e5e4a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/check_consts/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
592592
// to (interior) mutable memory.
593593
hir::ConstContext::ConstFn => self.check_op(ops::TransientCellBorrow),
594594
_ => {
595-
// Locals StorageDead are known to not leak to the final constant, and
595+
// Locals with StorageDead are definitely not part of the final constant value, and
596596
// it is thus inherently safe to permit such locals to have their
597597
// address taken as we can't end up with a reference to them in the
598598
// final value without creating a dangling pointer, which will cause

0 commit comments

Comments
 (0)