Skip to content

Commit 82675f6

Browse files
authored
Rollup merge of rust-lang#115393 - LegNeato:patch-1, r=oli-obk
Make `termcolor` types public in `rustc_errors` After rust-lang#114104, `rust-gpu` is unable to create a custom `Emitter` as the bounds have changed to include `WriteColor`. I was able to work around this by adding `termcolor` as a direct dependency, but I believe this should be exposed as part of `rustc_errors` proper. See rust-lang#102992 for why `rust-gpu` needs to create a custom emitter.
2 parents a0d2cb0 + da86cdf commit 82675f6

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use std::num::NonZeroUsize;
5555
use std::panic;
5656
use std::path::{Path, PathBuf};
5757

58-
use termcolor::{Color, ColorSpec};
58+
pub use termcolor::{Color, ColorSpec, WriteColor};
5959

6060
pub mod annotate_snippet_emitter_writer;
6161
mod diagnostic;

0 commit comments

Comments
 (0)