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 @@ -1564,8 +1564,8 @@ impl<'a> Builder<'a> {
1564
1564
let libdir = self . rustc_libdir ( compiler) ;
1565
1565
1566
1566
let sysroot_str = sysroot. as_os_str ( ) . to_str ( ) . expect ( "sysroot should be UTF-8" ) ;
1567
- if !matches ! ( self . config. dry_run, DryRun :: SelfCheck ) {
1568
- self . verbose_than ( 0 , || println ! ( "using sysroot {sysroot_str}" ) ) ;
1567
+ if self . is_verbose ( ) && !matches ! ( self . config. dry_run, DryRun :: SelfCheck ) {
1568
+ println ! ( "using sysroot {sysroot_str}" ) ;
1569
1569
}
1570
1570
1571
1571
let mut rustflags = Rustflags :: new ( target) ;
Original file line number Diff line number Diff line change @@ -2450,7 +2450,7 @@ impl Config {
2450
2450
2451
2451
/// Runs a function if verbosity is greater than 0
2452
2452
pub fn verbose ( & self , f : impl Fn ( ) ) {
2453
- if self . verbose > 0 {
2453
+ if self . is_verbose ( ) {
2454
2454
f ( )
2455
2455
}
2456
2456
}
@@ -2735,7 +2735,7 @@ impl Config {
2735
2735
. success ( ) ;
2736
2736
if has_changes {
2737
2737
if if_unchanged {
2738
- if self . verbose > 0 {
2738
+ if self . is_verbose ( ) {
2739
2739
println ! (
2740
2740
"WARNING: saw changes to compiler/ or library/ since {commit}; \
2741
2741
ignoring `download-rustc`"
@@ -2832,7 +2832,7 @@ impl Config {
2832
2832
let has_changes = !t ! ( git. as_command_mut( ) . status( ) ) . success ( ) ;
2833
2833
if has_changes {
2834
2834
if if_unchanged {
2835
- if self . verbose > 0 {
2835
+ if self . is_verbose ( ) {
2836
2836
println ! (
2837
2837
"warning: saw changes to one of {modified_paths:?} since {commit}; \
2838
2838
ignoring `{option_name}`"
You can’t perform that action at this time.
0 commit comments