-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Check projection types before inlining MIR #100571
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
let ty = ty.fold_with(&mut BottomUpFolder { | ||
tcx, | ||
// FIXME: We erase all late-bound lifetimes, but this is not fully correct. | ||
// If you have a type like `<for<'a> fn(&'a u32) as SomeTrait>::Assoc`, |
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.
How does this relate to the changes in #100121?
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.
This changes exist to avoid ICEing if normalize_erasing_region
fails. I think it's orthogonal to your PR.
4bfa518
to
911cbae
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 911cbae with merge 1c4e6e4106cb1ab7b991b5c0e6499c95a4cc575c... |
☀️ Try build successful - checks-actions |
Queued 1c4e6e4106cb1ab7b991b5c0e6499c95a4cc575c with parent 060e47f, future comparison URL. |
Finished benchmarking commit (1c4e6e4106cb1ab7b991b5c0e6499c95a4cc575c): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
@bors r+ rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4d45b07): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
All of the regressions are secondary, and many are in the recently noisy @rustbot label: +perf-regression-triaged |
Fixes #100550
I'm very unhappy with this solution, having to duplicate MIR validation code, but at least it removes the ICE.
r? @compiler-errors