@@ -2693,10 +2693,11 @@ fn check_incompatible_options_for_ci_rustc(
2693
2693
if Some ( current) != $expected. as_ref( ) {
2694
2694
return Err ( format!(
2695
2695
"ERROR: Setting `rust.{}` is incompatible with `rust.download-rustc`. \
2696
- Current value: {:?}, Expected value(s): None/ {:?}",
2696
+ Current value: {:?}, Expected value(s): {} {:?}",
2697
2697
stringify!( $expected) . replace( "_" , "-" ) ,
2698
2698
$current,
2699
- $expected
2699
+ if $expected. is_some( ) { "None/" } else { "" } ,
2700
+ $expected,
2700
2701
) ) ;
2701
2702
} ;
2702
2703
} ;
@@ -2705,11 +2706,15 @@ fn check_incompatible_options_for_ci_rustc(
2705
2706
2706
2707
macro_rules! warn {
2707
2708
( $current: expr, $expected: expr) => {
2708
- if let Some ( current) = $current {
2709
- if Some ( current) != $expected {
2709
+ if let Some ( current) = & $current {
2710
+ if Some ( current) != $expected. as_ref ( ) {
2710
2711
println!(
2711
- "WARNING: `rust.{}` has no effect with `rust.download-rustc`." ,
2712
- stringify!( $expected) . replace( "_" , "-" )
2712
+ "WARNING: `rust.{}` has no effect with `rust.download-rustc`. \
2713
+ Current value: {:?}, Expected value(s): {}{:?}",
2714
+ stringify!( $expected) . replace( "_" , "-" ) ,
2715
+ $current,
2716
+ if $expected. is_some( ) { "None/" } else { "" } ,
2717
+ $expected,
2713
2718
) ;
2714
2719
} ;
2715
2720
} ;
0 commit comments