-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move DIAGNOSTICS
usage to rustc_driver
#66456
Conversation
Some changes occurred in diagnostic error codes |
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'm not sure it's entirely worth doing this; it feels like the code is not significantly better and the improvement in compile times (2 crates -- rustc_interface and rustc_driver before, just rustc_driver now) is not really significant as neither crate is all that large.
Modulo those nits and if you think it's worth it then r=me. |
4a86489
to
f55a2e7
Compare
@Mark-Simulacrum It's not a big win, but still, a bit of cleanup and a small recompilation win here and there builds to something larger. ^^ |
@bors r+ |
📌 Commit f55a2e7dd791c8fe845e01149fe1d835c19e78ac has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r- ^ |
f55a2e7
to
01eae10
Compare
Moved the macro back to avoid the problem with the index page; I'll wait with r=you for a bit. |
This comment has been minimized.
This comment has been minimized.
01eae10
to
8444e16
Compare
@bors r=Mark-Simulacrum |
📌 Commit 8444e16 has been approved by |
…crum Move `DIAGNOSTICS` usage to `rustc_driver` Remove `rustc_interface`'s dependency on `rustc_error_codes` and centralize all usages of `DIAGNOSTICS` in `rustc_driver`. Once we remove all references to `rustc_error_codes` in all other crates but `rustc_driver`, this should allow for incremental recompilation of the compiler to be smoother when tweaking error codes. This works towards rust-lang#66210 (comment). (May include traces of minor drive-by cleanup.) r? @Mark-Simulacrum
Rollup of 11 pull requests Successful merges: - #65739 (Improve documentation of `Vec::split_off(...)`) - #66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - #66344 (rustc_plugin: Remove `Registry::register_attribute`) - #66381 (find_deprecation: deprecation attr may be ill-formed meta.) - #66395 (Centralize panic macro documentation) - #66456 (Move `DIAGNOSTICS` usage to `rustc_driver`) - #66465 (add missing 'static lifetime in docs) - #66466 (miri panic_unwind: fix hack for SEH platforms) - #66469 (Use "field is never read" instead of "field is never used") - #66471 (Add test for issue 63116) - #66477 (Clarify transmute_copy documentation example) Failed merges: r? @ghost
Remove
rustc_interface
's dependency onrustc_error_codes
and centralize all usages ofDIAGNOSTICS
inrustc_driver
. Once we remove all references torustc_error_codes
in all other crates butrustc_driver
, this should allow for incremental recompilation of the compiler to be smoother when tweaking error codes. This works towards #66210 (comment).(May include traces of minor drive-by cleanup.)
r? @Mark-Simulacrum