Remove rustc_error_codes
deps except in rustc_driver
#68353
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove dependencies on
rustc_error_codes
in all crates except forrustc_driver
.This has some benefits:
Adding a new error code when hacking on the compiler only requires rebuilding at most
rustc_error_codes
,rustc_driver
, and the reflexive & transitive closure of the crate where the new error code is being added and its reverse dependencies. This improves time-to-UI-tests (TTUT).Adding an error description to an error code only requires rebuilding
rustc_error_codes
andrustc_driver
. This should substantially improve TTUT.r? @petrochenkov
cc @rust-lang/wg-diagnostics