-
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
Shorten def_span of closures to just their header #98482
Conversation
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
dc11e8f
to
4fab055
Compare
This comment has been minimized.
This comment has been minimized.
4fab055
to
985c8a8
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
LL | / impl<T: Grault> Grault for (T,) | ||
LL | | where | ||
LL | | Self::A: Baz, | ||
LL | | Self::B: Fiz, | ||
... | | ||
LL | | | ||
LL | | } | ||
| |_^ |
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.
Interestingly, we should probably point at the first where
clause in this error as the primary span, but that's out of scope.
span: outer_span, | ||
.. | ||
}) => { | ||
let end = if let Some(b) = bounds.last() { b.span() } else { generics.span }; |
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.
Whould we also account for the where
clause here when appropriate? (I think that type
is the only case where you wouldn't want to due to syntactical ordering.)
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.
r=me after rebasing and optionally addressing the regression in E0596 (or filing a follow up ticket). Make it rollup=never.
55a498f
to
4dd3d6d
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #98222) made this pull request unmergeable. Please resolve the merge conflicts. |
4dd3d6d
to
6784137
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
6784137
to
6be9f05
Compare
@bors r+ rollup=never |
📌 Commit 6be9f059cbb3a8ed350ba66b5392c028f875acef has been approved by |
⌛ Testing commit 6be9f059cbb3a8ed350ba66b5392c028f875acef with merge bd86f533a02ad2bd48343719b946f7dd70a56f28... |
💔 Test failed - checks-actions |
de0339e
to
d43fa93
Compare
@bors r=estebank |
☀️ Test successful - checks-actions |
Finished benchmarking commit (eba361a): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Footnotes |
The regression is mostly in |
tt-muncher has been noisy lately, so dropping the regression label; this delta is within that noise bound. |
…=estebank Shorten def_span of closures to just their header Continuation of rust-lang#93967.
Continuation of #93967.