-
Couldn't load subscription status.
- Fork 13.9k
Move promoted MIR out of mir::Body
#63580
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
curious, why didn't the failing tests error before? They should have emitted the Can you adjust the test accordingly? |
8f96a77 to
580b2e2
Compare
|
Awesome. This is ready now, right? If so, please adjust the PR message |
|
I believe so. I'm just waiting for the tests to pass. |
|
r=me once they do |
This comment has been minimized.
This comment has been minimized.
580b2e2 to
0278570
Compare
|
I ran |
This comment has been minimized.
This comment has been minimized.
0278570 to
da1f679
Compare
This comment has been minimized.
This comment has been minimized.
|
Is that off by one swapping all the time? Maybe there's some ordering that is randomized via a hashmap iteration? |
da1f679 to
7369726
Compare
I don't think so. I ran the test a bunch of times locally and it consistently failed. I think I just missed adding this change before committing. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
|
📌 Commit d6bf776 has been approved by |
|
☀️ Test successful - checks-azure |
|
Looks like this PR causes ICEs when running the Miri test suite with MIR optimizations. To reproduce, build Miri with a rustc including this PR, and run Stacktrace |
|
|
||
| //FIXME(oli-obk): having a `maybe_push()` method on `IndexVec` might be nice | ||
| if let Some(promoted) = promoter.promote_candidate(def_id, candidate, promotions.len()) { | ||
| promotions.push(promoted); |
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.
Pretty sure you can just use extend in such situations.
| promoter.promote_candidate(candidate); | ||
|
|
||
| //FIXME(oli-obk): having a `maybe_push()` method on `IndexVec` might be nice | ||
| if let Some(promoted) = promoter.promote_candidate(def_id, candidate, promotions.len()) { |
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.
Would be nice to pass the IndexVec key and not an usize here.
r? @oli-obk