-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Better StorageLive / StorageDead placement for constants. #44252
Conversation
r=me if we add some mir-opt tests -- but I think it'd be nicer to convert the queries to return a tuple, and get rid of this |
563c835
to
02ec0ae
Compare
@nikomatsakis It looks like I can't use mir-opt, as it looks for a subset, so the tests succeed even if I remove all the |
Side note: once I get miri into the test suite, we'll have tests for this. |
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.
OMG this is so much better. I am disappointed about the tests though -- I think we have to fix that test harness, that "subset" property seems to bite everyone.
@bors r+ |
📌 Commit 02ec0ae has been approved by |
Yes please :D |
Better StorageLive / StorageDead placement for constants. Fixes problems in miri (see rust-lang/miri#324 (comment)) caused by the new scope rules in #43932. What I've tried to do here is always have a `StorageLive` but no `StorageDead` for `'static` slots. It might not work perfectly in all cases, but it should unblock miri. r? @nikomatsakis cc @oli-obk
☀️ Test successful - status-appveyor, status-travis |
Fixes problems in miri (see rust-lang/miri#324 (comment)) caused by the new scope rules in #43932.
What I've tried to do here is always have a
StorageLive
but noStorageDead
for'static
slots.It might not work perfectly in all cases, but it should unblock miri.
r? @nikomatsakis cc @oli-obk