Skip to content
Permalink
Browse files

Do not render ascii colors to buffers

  • Loading branch information...
oli-obk committed Apr 9, 2019
1 parent 776c8a3 commit 325936ac209b8942b630e922924fc2233c94a67e
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/librustc/session/mod.rs
  2. +1 −1 src/librustc_errors/emitter.rs
@@ -1050,8 +1050,8 @@ fn default_emitter(
dst,
Some(source_map.clone()),
short,
false,
color_config.suggests_using_colors(),
false, // no teach messages when writing to a buffer
false, // no colors when writing to a buffer
),
};
Box::new(emitter.ui_testing(sopts.debugging_opts.ui_testing))
@@ -146,7 +146,7 @@ impl ColorConfig {
ColorConfig::Auto => ColorChoice::Never,
}
}
pub fn suggests_using_colors(self) -> bool {
fn suggests_using_colors(self) -> bool {
match self {
| ColorConfig::Always
| ColorConfig::Auto

0 comments on commit 325936a

Please sign in to comment.
You can’t perform that action at this time.