File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -400,9 +400,9 @@ impl<'tcx> Stack {
400
400
// Either way, we ensure that we insert the new item in a way that between
401
401
// `derived_from` and the new one, there are only items *compatible with* `derived_from`.
402
402
let new_idx = if weak {
403
- // A weak ShareadReadOnly reborrow might be added below other items, violating the
403
+ // A weak SharedReadOnly reborrow might be added below other items, violating the
404
404
// invariant that only SharedReadOnly can sit on top of SharedReadOnly.
405
- assert ! ( new. perm != Permission :: SharedReadOnly , "Weak ShareadReadOnly reborrows don't work" ) ;
405
+ assert ! ( new. perm != Permission :: SharedReadOnly , "Weak SharedReadOnly reborrows don't work" ) ;
406
406
// A very liberal reborrow because the new pointer does not expect any kind of aliasing guarantee.
407
407
// Just insert new permission as child of old permission, and maintain everything else.
408
408
// This inserts "as far down as possible", which is good because it makes this pointer as
You can’t perform that action at this time.
0 commit comments