@@ -3125,11 +3125,15 @@ fn check_incompatible_options_for_ci_rustc(
3125
3125
} ;
3126
3126
}
3127
3127
3128
- err ! (
3129
- current_config_toml. build. as_ref( ) . and_then( |b| b. profiler) ,
3130
- ci_config_toml. build. as_ref( ) . and_then( |b| b. profiler) ,
3131
- "build"
3132
- ) ;
3128
+ let current_profiler = current_config_toml. build . as_ref ( ) . and_then ( |b| b. profiler ) ;
3129
+ let profiler = ci_config_toml. build . as_ref ( ) . and_then ( |b| b. profiler ) ;
3130
+ err ! ( current_profiler, profiler, "build" ) ;
3131
+
3132
+ let current_optimized_compiler_builtins =
3133
+ current_config_toml. build . as_ref ( ) . and_then ( |b| b. optimized_compiler_builtins ) ;
3134
+ let optimized_compiler_builtins =
3135
+ ci_config_toml. build . as_ref ( ) . and_then ( |b| b. optimized_compiler_builtins ) ;
3136
+ err ! ( current_optimized_compiler_builtins, optimized_compiler_builtins, "build" ) ;
3133
3137
3134
3138
// We always build the in-tree compiler on cross targets, so we only care
3135
3139
// about the host target here.
@@ -3141,7 +3145,8 @@ fn check_incompatible_options_for_ci_rustc(
3141
3145
"Target specific config for '{host_str}' is not present for CI-rustc"
3142
3146
) ) ?;
3143
3147
3144
- err ! ( current_cfg. profiler, ci_cfg. profiler, "build" ) ;
3148
+ let profiler = & ci_cfg. profiler ;
3149
+ err ! ( current_cfg. profiler, profiler, "build" ) ;
3145
3150
}
3146
3151
}
3147
3152
0 commit comments