Skip to content

Commit da86cdf

Browse files
authored
Make termcolor types public in rustc_errors
After #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 #102992 for why `rust-gpu` needs to create a custom emitter.
1 parent 8c79e8d commit da86cdf

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

Lines changed: 1 addition & 1 deletion
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)