@@ -369,8 +369,8 @@ pub struct Config {
369369 /// `paths=["foo", "bar"]`.
370370 pub paths : Vec < PathBuf > ,
371371
372- /// What custom diff tool to use for displaying compiletest tests .
373- pub display_diff_tool : Option < String > ,
372+ /// Command for visual diff display, e.g. `diff-tool --color=always` .
373+ pub compiletest_diff_tool : Option < String > ,
374374}
375375
376376#[ derive( Clone , Debug , Default ) ]
@@ -894,7 +894,7 @@ define_config! {
894894 metrics: Option <bool > = "metrics" ,
895895 android_ndk: Option <PathBuf > = "android-ndk" ,
896896 optimized_compiler_builtins: Option <bool > = "optimized-compiler-builtins" ,
897- display_diff_tool : Option <String > = "display -diff-tool" ,
897+ compiletest_diff_tool : Option <String > = "compiletest -diff-tool" ,
898898 }
899899}
900900
@@ -1515,7 +1515,7 @@ impl Config {
15151515 metrics : _,
15161516 android_ndk,
15171517 optimized_compiler_builtins,
1518- display_diff_tool ,
1518+ compiletest_diff_tool ,
15191519 } = toml. build . unwrap_or_default ( ) ;
15201520
15211521 if let Some ( file_build) = build {
@@ -2160,7 +2160,7 @@ impl Config {
21602160 config. rust_debuginfo_level_tests = debuginfo_level_tests. unwrap_or ( DebuginfoLevel :: None ) ;
21612161 config. optimized_compiler_builtins =
21622162 optimized_compiler_builtins. unwrap_or ( config. channel != "dev" ) ;
2163- config. display_diff_tool = display_diff_tool ;
2163+ config. compiletest_diff_tool = compiletest_diff_tool ;
21642164
21652165 let download_rustc = config. download_rustc_commit . is_some ( ) ;
21662166 // See https://github.com/rust-lang/compiler-team/issues/326
0 commit comments