Skip to content

Commit

Permalink
Rollup merge of #115393 - LegNeato:patch-1, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthiaskrgr authored Aug 31, 2023
2 parents a0d2cb0 + da86cdf commit 82675f6
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 82675f6

Please sign in to comment.