-
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
Recover from where clauses placed before tuple struct bodies #106537
Recover from where clauses placed before tuple struct bodies #106537
Conversation
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
help: consider moving the where clause after the body | ||
| | ||
LL - where | ||
LL + (pub usize, usize) where (): Sized, String: Clone; |
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.
Personally, I am not a fan of how this diff is rendered. In my eyes, it looks as if it's only the where
keyword that needs to be replaced and as if the trait bounds are allowed to stay.
I would have expected it to like this (nested diff incoming):
- - where
- + (pub usize, usize) where (): Sized, String: Clone;
+ - where
+ - (): Sized,
+ - String: Clone,
+ + (pub usize, usize) where (): Sized, String: Clone;
I've double-checked that the span is correct by running rustfix
, so it's only the rendering that's off.
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.
File a ticket for it. It is definitely in the Emitter
.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit f9e3934000d4cc6021ee137f534add1d89e6ce96 with merge 1f760d25d5966701f7b2485ad562295fd23c55d7... |
src/test/ui/parser/recover-where-clause-before-tuple-struct-body.stderr
Outdated
Show resolved
Hide resolved
f9e3934
to
7128f81
Compare
I hope my force-push (of a tiny superfluous change) does not disrupt the try-build & the timing procedure. I will try to implement Esteban's suggestion locally (re. the parser cloning). |
restarting try-build, @bors try |
⌛ Trying commit 7128f813a5eb922b67484a89f58ebffe5283dda5 with merge eaf94153e7aaf83e8915bc3a09df0298be5cb31e... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (eaf94153e7aaf83e8915bc3a09df0298be5cb31e): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
7128f81
to
3bfd2e8
Compare
Sorry for the delay, I couldn't find time earlier. |
⌛ Testing commit c9f6f2efe4219283a5fe63ffc91aa42bf3afc284 with merge a5c4c38f991a61a94339059bdc0db329ed613de3... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
Test failure is unrelated to my PR. It looks like a flaky rustdoc GUI test (CC @GuillaumeGomez). Edit: Fixed in #106689. Could someone please reapprove my PR? Thanks! :) |
O.o What the hell happened... @bors r=estebank |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit c9f6f2efe4219283a5fe63ffc91aa42bf3afc284 has been approved by It is now in the queue for this repository. |
Ah it should have been a retry instead, my bad. Also, are you fully rebased on |
I am not. I didn't know that it could lead to such problems. I'm gonna rebase onto latest master, then you can |
c9f6f2e
to
926604e
Compare
It's really just a wild guess because the error doesn't look flaky at all this time. |
#105670 is probably going to get merged first making my PR unmergeable soon. So please hold off from r+'ing at the moment. |
926604e
to
70ddde7
Compare
It looks like it's gonna take a short while for #105670 (the PR I tried to wait for) to be ready again for merging (after failing tests & the Could someone please bors-reapprove this PR? CI is green. Thanks a lot in advance! ❤️ |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d4203ed): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. 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.
|
Open to any suggestions regarding the phrasing of the diagnostic.
Fixes #100790.
@rustbot label A-diagnostics
r? diagnostics