File tree 1 file changed +6
-0
lines changed
src/tools/miri/src/borrow_tracker/tree_borrows
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,12 @@ mod transition {
146
146
/// non-protected interior mutable `Reserved` which stay the same.
147
147
fn foreign_write ( state : PermissionPriv , protected : bool ) -> Option < PermissionPriv > {
148
148
Some ( match state {
149
+ // FIXME: since the fix related to reservedim_spurious_write, it is now possible
150
+ // to express these transitions of the state machine without an explicit dependency
151
+ // on `protected`: because `ty_is_freeze: false` implies `!protected` then
152
+ // the line handling `Reserved { .. } if protected` could be deleted.
153
+ // This will however require optimizations to the exhaustive tests because
154
+ // fewer initial conditions are valid.
149
155
Reserved { .. } if protected => Disabled ,
150
156
res @ Reserved { ty_is_freeze : false , .. } => res,
151
157
_ => Disabled ,
You can’t perform that action at this time.
0 commit comments