1
Fork 0

Grammar fixes

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Oli Scherer 2021-01-03 15:15:23 +01:00 committed by GitHub
parent a137ff1706
commit e5e4a851c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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