-
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
Migrate more of rustc_parse to SessionDiagnostic #101619
Migrate more of rustc_parse to SessionDiagnostic #101619
Conversation
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
.collect(), | ||
}, | ||
} | ||
.into_diagnostic(&self.sess.span_diagnostic); |
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.
I wonder if we should keep sess.create_err
given that it does exactly this and this might be more discoverable? Or vice-versa?
I'll rebase this and address the review comments once #101558 has landed. |
This comment was marked as resolved.
This comment was marked as resolved.
8a0adca
to
6086a8e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
6086a8e
to
c704ebe
Compare
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
This comment was marked as resolved.
This comment was marked as resolved.
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.
Apologies for the delay in reviewing this, this looks good to me, I've left one or two comments about places where it looks like we're interpolating English but those have FIXME
s in the source so maybe you're still to address them?
57c1ee7
to
07affa6
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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 rebase
07affa6
to
a6b373b
Compare
Hm, can/should I do this? @bors r=davidtwco Edit: yep, not surprised. I thought I had seen a non-Member do it the other day, so I was curious :) |
@Xiretza: 🔑 Insufficient privileges: Not in reviewers |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, it was just a note to myself or anyone else with privileges should they stumble upon this - I'll r+ when rebased again. |
This function is only ever called when the `#` has already been consumed, no need to produce an error message here.
a6b373b
to
d7c6457
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (09ae784): comparison URL. Overall result: ✅ improvements - no action needed@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.
CyclesThis benchmark run did not return any relevant results for this metric. Footnotes |
…ics, r=davidtwco Migrate more of rustc_parse to SessionDiagnostic Still far from complete, but I thought I'd add a checkpoint here because rebasing was starting to get annoying.
Still far from complete, but I thought I'd add a checkpoint here because rebasing was starting to get annoying.