Inline and remove HumanReadableErrorType::new_emitter
.
And likewise with `ColorConfig::suggests_using_colors`. They both have a single call site. And note that `BufWriter::supports_color()` always returns false, which enables a small bit of constant folding along the way.
This commit is contained in:
parent
d3727413ed
commit
437325bdd4
3 changed files with 16 additions and 23 deletions
|
@ -1,6 +1,5 @@
|
|||
use super::*;
|
||||
|
||||
use crate::emitter::ColorConfig;
|
||||
use crate::DiagCtxt;
|
||||
use rustc_span::BytePos;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue