Skip to content

Remove rustc_error_codes deps except in rustc_driver - #68353

Merged
bors merged 1 commit into
rust-lang:masterfrom
Centril:code-liberation
Jan 20, 2020
Merged

Remove rustc_error_codes deps except in rustc_driver#68353
bors merged 1 commit into
rust-lang:masterfrom
Centril:code-liberation

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Remove dependencies on rustc_error_codes in all crates except for rustc_driver.

This has some benefits:

  1. 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).

  2. Adding an error description to an error code only requires rebuilding rustc_error_codes and rustc_driver. This should substantially improve TTUT.

r? @petrochenkov
cc @rust-lang/wg-diagnostics

@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Jan 18, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit de6046f has been approved by petrochenkov

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 18, 2020
bors added a commit that referenced this pull request Jan 19, 2020
Rollup of 5 pull requests
Successful merges:
- #67682 ([const-prop] Remove useless typedef)
- #68133 (Slimmer syntax)
- #68154 (Add more BTreeMap/BTreeSet benchmarks regarding iteration)
- #68247 (Clean up err codes)
- #68348 (Make iter::Empty<T> Send and Sync for any T)
Failed merges:
- #68353 (Remove `rustc_error_codes` deps except in `rustc_driver`)
r? @ghost
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jan 20, 2020
…nkov
Remove `rustc_error_codes` deps except in `rustc_driver`
Remove dependencies on `rustc_error_codes` in all crates except for `rustc_driver`.
This has some benefits:
1. 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).
2. Adding an error description to an error code only requires rebuilding `rustc_error_codes` and `rustc_driver`. This should substantially improve TTUT.
r? @petrochenkov
cc @rust-lang/wg-diagnostics
bors added a commit that referenced this pull request Jan 20, 2020
Rollup of 5 pull requests
Successful merges:
- #68326 (rustdoc: Catch fatal errors when syntax highlighting)
- #68335 (Remove real_drop_in_place)
- #68353 (Remove `rustc_error_codes` deps except in `rustc_driver`)
- #68357 (rustdoc: Fix handling of compile errors when running `rustdoc --test`)
- #68365 (Clean up error codes)
Failed merges:
r? @ghost
@bors
bors merged commit de6046f into rust-lang:masterJan 20, 2020
@Centril
Centril deleted the code-liberation branch January 20, 2020 09:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Centril@petrochenkov@bors