Apply suggestions from code review

comment nits

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Oli Scherer
2021-01-03 14:20:51 +01:00
committed by oli
parent ba3a876592
commit e5330a4f52
2 changed files with 9 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ impl NonConstOp for TransientCellBorrow {
}
#[derive(Debug)]
/// A borrow of a type that contains an `UnsafeCell` somewhere. The borrow escapes to
/// A borrow of a type that contains an `UnsafeCell` somewhere. The borrow might escape to
/// the final value of the constant, and thus we cannot allow this (for now). We may allow
/// it in the future for static items.
pub struct CellBorrow;