-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make unused states of Reserved unrepresentable #3754
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem obvious that merging the two states would make things so much simpler, so -- fine for me to split up the states like this.
@rustbot author |
@rustbot ready |
It was a good idea to add the |
Looks good, thanks. :) Please squash the commits. |
Sorry, I missed this one since GH doesn't send notifications on force pushes.^^ Please always post a message in the PR when it is now waiting on me to do something again. :) @bors r+ |
☀️ Test successful - checks-actions |
In the previous TB update we discovered that the existence of
Reserved + !ty_is_freeze + protected
is undesirable.This has the side effect of making
Reserved { conflicted: true, ty_is_freeze: false }
unreachable.As such it is desirable that this state would also be unrepresentable.
This PR eliminates the unused configuration by changing
into
but this is not the only solution and
Reserved(Activable | Conflicted | InteriorMut)
could be discussed.In addition to making the unreachable state not representable anymore, this change has the nice side effect of enabling
foreign_read
to no longer depend explicitly on theprotected
flag.Currently waiting for
Reserved
as what is being implemented in simuliris,