-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Assert that locals have storage when used #78147
Conversation
r? @lcnr (rust_highfive has picked a reviewer for you, use r? to override) |
LGTM r? @jonas-schievink for a final review, am not too familiar with this |
Hmm, I was sure it caught a bug when I implemented this, weird |
I wondered about that too; it seems to me that was use in debuginfo, until that part was fixed. This will need a new perf run. It also just found a bug ... |
…cation, r=wesleywiser Disable MatchBranchSimplification This optimization can result in unsoundness, because it introduces additional uses of a place holding the discriminant value without ensuring that it is valid to do so. Found by validation from rust-lang#77369 / rust-lang#78147.
c474f0b
to
87394e1
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 87394e1b0a60b121d2ffefdc020d423517b181a0 with merge 2c2a5c65b82ec277ab9c7904b56e1a506e1f25aa... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-actions |
87394e1
to
e3630a9
Compare
I cherry picked a fix. We can try running perf again. Thanks! |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit e3630a9a6bd3e03efb6c5f5a313adc48c1c7fb4b with merge 5f06fab28613e7f3ac319440e305f7b5909e1b0e... |
💥 Test timed out |
☔ The latest upstream changes (presumably #78350) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
b7baa10
to
f1b64a6
Compare
☔ The latest upstream changes (presumably #78594) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
The validator in visit_local asserts that local has a stroage when used, but visit_local is never called so validation is ineffective. Use super_statement and super_terminator to ensure that locals are visited.
f1b64a6
to
3b7157d
Compare
Rebased. |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 3b7157d with merge 9885b20e857447b481b8b2e326294e9bb8d31145... |
☀️ Try build successful - checks-actions |
Queued 9885b20e857447b481b8b2e326294e9bb8d31145 with parent 4f7612a, future comparison URL. |
Finished benchmarking try commit (9885b20e857447b481b8b2e326294e9bb8d31145): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors r+ rollup- |
📌 Commit 3b7157d has been approved by |
@bors rollup=never There does seem to be a slight regression in tuple-stress, so let's not roll it up. |
☀️ Test successful - checks-actions |
The validator in visit_local asserts that local has a stroage when used,
but visit_local is never called so validation is ineffective.
Use super_statement and super_terminator to ensure that locals are visited.