We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea853b4 commit 0c066fbCopy full SHA for 0c066fb
src/stacked_borrows.rs
@@ -250,11 +250,8 @@ impl<'tcx> Stack {
250
match perm {
251
Permission::SharedReadOnly => bug!("Cannot use SharedReadOnly for writing"),
252
Permission::Disabled => bug!("Cannot use Disabled for anything"),
253
- Permission::Unique =>
254
// On a write, everything above us is incompatible.
255
- {
256
- granting + 1
257
- }
+ Permission::Unique => granting + 1,
258
Permission::SharedReadWrite => {
259
// The SharedReadWrite *just* above us are compatible, to skip those.
260
let mut idx = granting + 1;
0 commit comments