-
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
Kind-less SessionDiagnostic derive #100765
Kind-less SessionDiagnostic derive #100765
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
|
b868bb8
to
9eec2c4
Compare
4e04b57
to
450989f
Compare
This is exactly what I wanted to see! 😄 I'll wait until CI is ready and then approve. |
Also, we probably need to adjust the rustc dev guide docs once again. |
That's good to hear! :D The PR will conflict with all the diagnostics migration PRs currently open, so I suppose it will need a rollup=never with a relatively high priority or it'll fail bors until the end of time. |
Already drafted: rust-lang/rustc-dev-guide#1440 |
Yup makes sense. I was gonna wait until CI is green then approve.
You're wonderful! |
@bors r+ p=1 rollup=never (will likely not merge unless p=1) |
📌 Commit 450989f9ede869f8e432f9c1f64d3d055bfa041a has been approved by It is now in the queue for this repository. |
⌛ Testing commit 450989f9ede869f8e432f9c1f64d3d055bfa041a with merge 8175a9f41cc3944935dcc70a5eb751ffc371d3a9... |
CI has stalled. EDIT: Sorry for the noise. The CI was still going after 5hrs without movement from a Windows builder for at least 3hrs. |
This comment was marked as resolved.
This comment was marked as resolved.
Wait... this needs rebase. @bors r- |
This unifies the struct_{warn,error,fatal}() methods in one generic method.
Deriving SessionDiagnostic on a type no longer forces that diagnostic to be one of warning, error, or fatal. The level is instead decided when the struct is passed to the respective Handler::emit_*() method.
dc8d944
to
7f3a6fd
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4b695f7): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesThis benchmark run did not return any relevant results for this metric. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Thanks for working on this! |
From #100730 (comment):
Discussed on Zulip.