Grammar fixes
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
a137ff1706
commit
e5e4a851c4
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
|
||||||
// to (interior) mutable memory.
|
// to (interior) mutable memory.
|
||||||
hir::ConstContext::ConstFn => self.check_op(ops::TransientCellBorrow),
|
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
|
// 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
|
// 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
|
// final value without creating a dangling pointer, which will cause
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue