@@ -365,6 +365,9 @@ pub struct Config {
365
365
/// The paths to work with. For example: with `./x check foo bar` we get
366
366
/// `paths=["foo", "bar"]`.
367
367
pub paths : Vec < PathBuf > ,
368
+
369
+ /// What custom diff tool to use for displaying compiletest tests.
370
+ pub display_diff_tool : Option < String > ,
368
371
}
369
372
370
373
#[ derive( Clone , Debug , Default ) ]
@@ -885,6 +888,7 @@ define_config! {
885
888
metrics: Option <bool > = "metrics" ,
886
889
android_ndk: Option <PathBuf > = "android-ndk" ,
887
890
optimized_compiler_builtins: Option <bool > = "optimized-compiler-builtins" ,
891
+ display_diff_tool: Option <String > = "display-diff-tool" ,
888
892
}
889
893
}
890
894
@@ -1504,6 +1508,7 @@ impl Config {
1504
1508
metrics : _,
1505
1509
android_ndk,
1506
1510
optimized_compiler_builtins,
1511
+ display_diff_tool,
1507
1512
} = toml. build . unwrap_or_default ( ) ;
1508
1513
1509
1514
if let Some ( file_build) = build {
@@ -2141,6 +2146,7 @@ impl Config {
2141
2146
config. rust_debuginfo_level_tests = debuginfo_level_tests. unwrap_or ( DebuginfoLevel :: None ) ;
2142
2147
config. optimized_compiler_builtins =
2143
2148
optimized_compiler_builtins. unwrap_or ( config. channel != "dev" ) ;
2149
+ config. display_diff_tool = display_diff_tool;
2144
2150
2145
2151
let download_rustc = config. download_rustc_commit . is_some ( ) ;
2146
2152
// See https://github.com/rust-lang/compiler-team/issues/326
0 commit comments