-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Compute information about function parameters on THIR #101086
Conversation
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #101143) made this pull request unmergeable. Please resolve the merge conflicts. |
Please bless the ui test changes so they are easier to review @rustbot author |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -2,7 +2,7 @@ note: no external requirements | |||
--> $DIR/escape-argument-callee.rs:26:38 | |||
| | |||
LL | let mut closure = expect_sig(|p, y| *p = y); | |||
| ^^^^^^ | |||
| ^^^^^^^^^^^^^ |
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 is odd, I would have assumed the changes to cause the opposite diff
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.
We replace def_span
by span_with_body
for closures, so span is longer except in specially addressed cases. As this is a debugging feature, I did not bother to keep the former behaviour.
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.
The ui output regression is fine in single line cases, but for multi line closures it's quite bad (and that makes up like 2/3rd of the ui changes. I don't think we should merge this as is. If mitigations can be deployed at diagnostic rendering time that would be fine with me. Since it's all about nll diagnostics, it could be possible to fix the span at borrowck time.
☔ The latest upstream changes (presumably #99102) made this pull request unmergeable. Please resolve the merge conflicts. |
5846ef9
to
4990819
Compare
@bors r+ |
📌 Commit 49908191456a14a025e06f10d651e52f8e499a78 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #101239) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=oli-obk |
7026fc2
to
ce9daa2
Compare
@bors r=oli-obk |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c84083b): comparison URL. Overall result: ❌ regressions - 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 |
@rustbot label: perf-regression-triaged |
I strongly suspect these changes are not noise. |
This avoids some manipulation of typeck results while building MIR.