diff options
| author | Christian Legnitto <LegNeato@users.noreply.github.com> | 2023-08-30 16:06:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-30 16:06:49 -0400 |
| commit | da86cdf3a5451ac8f218c863f9593e2c948e318d (patch) | |
| tree | 7ced93df71af7b89900e5058f9b967ad1a401c74 /compiler/rustc_errors/src | |
| parent | 8c79e8d756fdfffcb83b007ef91e13501c15b4cd (diff) | |
| download | rust-da86cdf3a5451ac8f218c863f9593e2c948e318d.tar.gz rust-da86cdf3a5451ac8f218c863f9593e2c948e318d.zip | |
Make `termcolor` types public in `rustc_errors`
After https://github.com/rust-lang/rust/pull/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 https://github.com/rust-lang/rust/pull/102992 for why `rust-gpu` needs to create a custom emitter.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 39f440e31e0..c2fe942fe37 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -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; |
