Uh oh!
There was an error while loading. Please reload this page.
Move DIAGNOSTICS usage to rustc_driver - #66456
Conversation
rust-highfive
commented
Nov 15, 2019
Some changes occurred in diagnostic error codes |
Mark-Simulacrum
left a comment
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Mark-Simulacrum
commented
Nov 15, 2019
Modulo those nits and if you think it's worth it then r=me. |
4a86489 to
f55a2e7CompareCentril
commented
Nov 15, 2019
@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. ^^ |
Mark-Simulacrum
commented
Nov 15, 2019
@bors r+ |
bors
commented
Nov 15, 2019
📌 Commit f55a2e7dd791c8fe845e01149fe1d835c19e78ac has been approved by |
This comment has been minimized.
This comment has been minimized.
Centril
commented
Nov 15, 2019
@bors r- ^ |
Centril
commented
Nov 15, 2019
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.
Centril
commented
Nov 17, 2019
@bors r=Mark-Simulacrum |
bors
commented
Nov 17, 2019
📌 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_codesand centralize all usages ofDIAGNOSTICSinrustc_driver. Once we remove all references torustc_error_codesin 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