Skip to content

Commit

Permalink
Do not render ascii colors to buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 9, 2019
1 parent 776c8a3 commit 325936a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/librustc/session/mod.rs
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_errors/emitter.rs
Expand Up @@ -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
Expand Down

0 comments on commit 325936a

Please sign in to comment.