Skip to content

Commit b0bc601

Browse files
authored
Rollup merge of rust-lang#48588 - alexcrichton:termcolor, r=BurntSushi
rustc: Migrate to `termcolor` crate from `term` This crate moves the compiler's error reporting to using the `termcolor` crate from crates.io. Previously rustc used a super-old version of the `term` crate in-tree which is basically unmaintained at this point, but Cargo has been using `termcolor` for some time now and tools like `rg` are using `termcolor` as well, so it seems like a good strategy to take! Note that the `term` crate remains in-tree for libtest. Changing libtest will be a bit tricky due to how the build works, but we can always tackle that later. cc rust-lang#45728
2 parents b228b05 + a919efa commit b0bc601

File tree

4 files changed

+136
-166
lines changed

4 files changed

+136
-166
lines changed

src/Cargo.lock

+7-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc_errors/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ serialize = { path = "../libserialize" }
1313
syntax_pos = { path = "../libsyntax_pos" }
1414
rustc_data_structures = { path = "../librustc_data_structures" }
1515
unicode-width = "0.1.4"
16+
atty = "0.2"
17+
termcolor = "0.3"

0 commit comments

Comments
 (0)