about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json/tests.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 14:47:09 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 17:16:27 +1100
commit437325bdd4e5fc54b0f78491e63fa386ebfffbba (patch)
tree942dc0944a53c3c0b3c99b9f436ca0743d9d0d3f /compiler/rustc_errors/src/json/tests.rs
parentd3727413ed96a8feedcca9931b9b8abb72632492 (diff)
downloadrust-437325bdd4e5fc54b0f78491e63fa386ebfffbba.tar.gz
rust-437325bdd4e5fc54b0f78491e63fa386ebfffbba.zip
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.
Diffstat (limited to 'compiler/rustc_errors/src/json/tests.rs')
-rw-r--r--compiler/rustc_errors/src/json/tests.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs
index ba8d58e159e..e541f4ca7d4 100644
--- a/compiler/rustc_errors/src/json/tests.rs
+++ b/compiler/rustc_errors/src/json/tests.rs
@@ -1,6 +1,5 @@
 use super::*;
 
-use crate::emitter::ColorConfig;
 use crate::DiagCtxt;
 use rustc_span::BytePos;