@@ -47,7 +47,7 @@ pub enum DryRun {
47
47
UserSelected ,
48
48
}
49
49
50
- #[ derive( Copy , Clone , Default , PartialEq , Eq ) ]
50
+ #[ derive( Copy , Clone , Default , Debug , Eq , PartialEq ) ]
51
51
pub enum DebuginfoLevel {
52
52
#[ default]
53
53
None ,
@@ -117,7 +117,7 @@ impl Display for DebuginfoLevel {
117
117
/// 2) MSVC
118
118
/// - Self-contained: `-Clinker=<path to rust-lld>`
119
119
/// - External: `-Clinker=lld`
120
- #[ derive( Copy , Clone , Default , PartialEq ) ]
120
+ #[ derive( Copy , Clone , Default , Debug , PartialEq ) ]
121
121
pub enum LldMode {
122
122
/// Do not use LLD
123
123
#[ default]
@@ -2679,11 +2679,14 @@ fn check_incompatible_options_for_ci_rustc(
2679
2679
) -> Result < ( ) , String > {
2680
2680
macro_rules! err {
2681
2681
( $current: expr, $expected: expr) => {
2682
- if let Some ( current) = $current {
2683
- if Some ( current) != $expected {
2682
+ if let Some ( current) = & $current {
2683
+ if Some ( current) != $expected. as_ref ( ) {
2684
2684
return Err ( format!(
2685
- "ERROR: Setting `rust.{}` is incompatible with `rust.download-rustc`." ,
2686
- stringify!( $expected) . replace( "_" , "-" )
2685
+ "ERROR: Setting `rust.{}` is incompatible with `rust.download-rustc`. \
2686
+ Current value: {:?}, Expected value(s): None/{:?}",
2687
+ stringify!( $expected) . replace( "_" , "-" ) ,
2688
+ $current,
2689
+ $expected
2687
2690
) ) ;
2688
2691
} ;
2689
2692
} ;
0 commit comments