File tree 2 files changed +6
-5
lines changed
src/tools/compiletest/src
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ fn main() {
44
44
}
45
45
46
46
if !config. has_tidy && config. mode == Mode :: Rustdoc {
47
- eprintln ! ( "warning: `tidy` is not installed; generated diffs will be harder to read " ) ;
47
+ eprintln ! ( "warning: `tidy` is not installed; diffs will not be generated " ) ;
48
48
}
49
49
50
50
log_config ( & config) ;
Original file line number Diff line number Diff line change @@ -2365,6 +2365,9 @@ impl<'test> TestCx<'test> {
2365
2365
}
2366
2366
2367
2367
fn compare_to_default_rustdoc ( & mut self , out_dir : & Path ) {
2368
+ if !self . config . has_tidy {
2369
+ return ;
2370
+ }
2368
2371
println ! ( "info: generating a diff against nightly rustdoc" ) ;
2369
2372
2370
2373
let suffix =
@@ -2426,10 +2429,8 @@ impl<'test> TestCx<'test> {
2426
2429
}
2427
2430
}
2428
2431
} ;
2429
- if self . config . has_tidy {
2430
- tidy_dir ( out_dir) ;
2431
- tidy_dir ( & compare_dir) ;
2432
- }
2432
+ tidy_dir ( out_dir) ;
2433
+ tidy_dir ( & compare_dir) ;
2433
2434
2434
2435
let pager = {
2435
2436
let output = Command :: new ( "git" ) . args ( & [ "config" , "--get" , "core.pager" ] ) . output ( ) . ok ( ) ;
You can’t perform that action at this time.
0 commit comments