Skip to content

Commit

Permalink
Make termcolor types public in rustc_errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LegNeato authored Aug 30, 2023
1 parent 8c79e8d commit da86cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ use std::num::NonZeroUsize;
use std::panic;
use std::path::{Path, PathBuf};

use termcolor::{Color, ColorSpec};
pub use termcolor::{Color, ColorSpec, WriteColor};

pub mod annotate_snippet_emitter_writer;
mod diagnostic;
Expand Down

0 comments on commit da86cdf

Please sign in to comment.