@@ -365,6 +365,9 @@ pub struct Config {
365365 /// The paths to work with. For example: with `./x check foo bar` we get
366366 /// `paths=["foo", "bar"]`.
367367 pub paths : Vec < PathBuf > ,
368+
369+ /// What custom diff tool to use for displaying compiletest tests.
370+ pub display_diff_tool : Option < String > ,
368371}
369372
370373#[ derive( Clone , Debug , Default ) ]
@@ -885,6 +888,7 @@ define_config! {
885888 metrics: Option <bool > = "metrics" ,
886889 android_ndk: Option <PathBuf > = "android-ndk" ,
887890 optimized_compiler_builtins: Option <bool > = "optimized-compiler-builtins" ,
891+ display_diff_tool: Option <String > = "display-diff-tool" ,
888892 }
889893}
890894
@@ -1504,6 +1508,7 @@ impl Config {
15041508 metrics : _,
15051509 android_ndk,
15061510 optimized_compiler_builtins,
1511+ display_diff_tool,
15071512 } = toml. build . unwrap_or_default ( ) ;
15081513
15091514 if let Some ( file_build) = build {
@@ -2141,6 +2146,7 @@ impl Config {
21412146 config. rust_debuginfo_level_tests = debuginfo_level_tests. unwrap_or ( DebuginfoLevel :: None ) ;
21422147 config. optimized_compiler_builtins =
21432148 optimized_compiler_builtins. unwrap_or ( config. channel != "dev" ) ;
2149+ config. display_diff_tool = display_diff_tool;
21442150
21452151 let download_rustc = config. download_rustc_commit . is_some ( ) ;
21462152 // See https://github.com/rust-lang/compiler-team/issues/326
0 commit comments