summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-08-08 01:46:16 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-08-08 14:41:33 +0000
commitae696f847dee523df6afed14468de70fc6479552 (patch)
tree29bb0bb8d3374df1da2a70c90c6279f58712c353 /compiler/rustc_interface/src/tests.rs
parentce20e15f01a9dcc4543e8d52b4b281df6c4dbb8e (diff)
downloadrust-ae696f847dee523df6afed14468de70fc6479552.tar.gz
rust-ae696f847dee523df6afed14468de70fc6479552.zip
Split `ColorConfig` off of `HumanReadableErrorType`
The previous setup tied two unrelated things together. Splitting these two is a better model.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-rw-r--r--compiler/rustc_interface/src/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index ce3b2f77f21..34f2dca7c42 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -315,7 +315,8 @@ fn test_search_paths_tracking_hash_different_order() {
     let early_dcx = EarlyDiagCtxt::new(JSON);
     const JSON: ErrorOutputType = ErrorOutputType::Json {
         pretty: false,
-        json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
+        json_rendered: HumanReadableErrorType::Default,
+        color_config: ColorConfig::Never,
     };
 
     let push = |opts: &mut Options, search_path| {