-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Delay all sized checks #100971
Delay all sized checks #100971
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 3d5a65274a7dc44d9dfe5e7a98b6b4673a3ee843 with merge 8653b5592eb78d968691adc6922362ff8fd91c7f... |
☀️ Try build successful - checks-actions |
Queued 8653b5592eb78d968691adc6922362ff8fd91c7f with parent ebfc7aa, future comparison URL. |
This comment was marked as outdated.
This comment was marked as outdated.
Hm, I'm suspicious that the bulk of this perf improvement is due to the That's possibly not sound... so let's try a perf run without it. |
3d5a652
to
655d94a
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 655d94af89787fd8a64dfd28687901ed366cfcbe with merge fe579345f67ea488620509c40485b22b387f2ea8... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Queued fe579345f67ea488620509c40485b22b387f2ea8 with parent addacb5, future comparison URL. |
Finished benchmarking commit (fe579345f67ea488620509c40485b22b387f2ea8): comparison URL. Overall result: ❌✅ regressions and improvements - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @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 |
655d94a
to
4c8ffb7
Compare
@@ -1,3 +1,3 @@ | |||
fn main() { | |||
let x = "hello".chars().rev().collect(); //~ ERROR E0282 | |||
let x: _ = "hello".chars().rev().collect(); //~ ERROR E0282 |
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 turned into E0283 for some reason, unless I add this : _
annotation...?
@rustbot ready |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Ugh, this causes a weird E0282 regression, because this weird code specific to I think I'm actually fine with this regression, because the difference between But I think I need to rewrite the E0283 docs to come up with a better example now. |
Also, changing when the sized checks are registered apparently changes coercion semantics in the program in surprising ways. I'm gonna crater this for good measure. @bors try |
⌛ Trying commit 4c8ffb7 with merge 560667b800e34f03ac9f520f299d077c249dd301... |
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Delays all sized checks until we're done with most of typechecking. This is essentially the complete opposite of #100652, motivated by the perf regression that it discovered.
There are changes in diagnostics related to checking all of the sized predicates at once, and due to having far fewer inference vars left over due to this happening near the end of typecheck.
[u8]
cannot be known at compilation time" per function body. I don't think this is a regression, but instead an improvement, since inference can mean that the same unsized type can show up in multiple places in a body leading to a lot of redundant errors.