File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/borrow_tracker/tree_borrows Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,12 @@ mod transition {
146146 /// non-protected interior mutable `Reserved` which stay the same.
147147 fn foreign_write ( state : PermissionPriv , protected : bool ) -> Option < PermissionPriv > {
148148 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.
149155 Reserved { .. } if protected => Disabled ,
150156 res @ Reserved { ty_is_freeze : false , .. } => res,
151157 _ => Disabled ,
You can’t perform that action at this time.
0 commit comments