File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1562,8 +1562,8 @@ impl<'a> Builder<'a> {
1562
1562
let libdir = self . rustc_libdir ( compiler) ;
1563
1563
1564
1564
let sysroot_str = sysroot. as_os_str ( ) . to_str ( ) . expect ( "sysroot should be UTF-8" ) ;
1565
- if !matches ! ( self . config. dry_run, DryRun :: SelfCheck ) {
1566
- self . verbose_than ( 0 , || println ! ( "using sysroot {sysroot_str}" ) ) ;
1565
+ if self . is_verbose ( ) && !matches ! ( self . config. dry_run, DryRun :: SelfCheck ) {
1566
+ println ! ( "using sysroot {sysroot_str}" ) ;
1567
1567
}
1568
1568
1569
1569
let mut rustflags = Rustflags :: new ( target) ;
Original file line number Diff line number Diff line change @@ -2428,7 +2428,7 @@ impl Config {
2428
2428
2429
2429
/// Runs a function if verbosity is greater than 0
2430
2430
pub fn verbose ( & self , f : impl Fn ( ) ) {
2431
- if self . verbose > 0 {
2431
+ if self . is_verbose ( ) {
2432
2432
f ( )
2433
2433
}
2434
2434
}
@@ -2713,7 +2713,7 @@ impl Config {
2713
2713
. success ( ) ;
2714
2714
if has_changes {
2715
2715
if if_unchanged {
2716
- if self . verbose > 0 {
2716
+ if self . is_verbose ( ) {
2717
2717
println ! (
2718
2718
"WARNING: saw changes to compiler/ or library/ since {commit}; \
2719
2719
ignoring `download-rustc`"
@@ -2810,7 +2810,7 @@ impl Config {
2810
2810
let has_changes = !t ! ( git. as_command_mut( ) . status( ) ) . success ( ) ;
2811
2811
if has_changes {
2812
2812
if if_unchanged {
2813
- if self . verbose > 0 {
2813
+ if self . is_verbose ( ) {
2814
2814
println ! (
2815
2815
"warning: saw changes to one of {modified_paths:?} since {commit}; \
2816
2816
ignoring `{option_name}`"
You can’t perform that action at this time.
0 commit comments