@@ -2164,7 +2164,6 @@ fn collect_print_requests(
2164
2164
cg : & mut CodegenOptions ,
2165
2165
dopts : & mut DebuggingOptions ,
2166
2166
matches : & getopts:: Matches ,
2167
- is_unstable_enabled : bool ,
2168
2167
error_format : ErrorOutputType ,
2169
2168
) -> Vec < PrintRequest > {
2170
2169
let mut prints = Vec :: < PrintRequest > :: new ( ) ;
@@ -2206,7 +2205,7 @@ fn collect_print_requests(
2206
2205
"tls-models" => PrintRequest :: TlsModels ,
2207
2206
"native-static-libs" => PrintRequest :: NativeStaticLibs ,
2208
2207
"target-spec-json" => {
2209
- if is_unstable_enabled {
2208
+ if dopts . unstable_options {
2210
2209
PrintRequest :: TargetSpec
2211
2210
} else {
2212
2211
early_error (
@@ -2370,7 +2369,6 @@ fn parse_externs(
2370
2369
matches : & getopts:: Matches ,
2371
2370
debugging_opts : & DebuggingOptions ,
2372
2371
error_format : ErrorOutputType ,
2373
- is_unstable_enabled : bool ,
2374
2372
) -> Externs {
2375
2373
if matches. opt_present ( "extern-private" ) && !debugging_opts. unstable_options {
2376
2374
early_error (
@@ -2476,12 +2474,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
2476
2474
) ;
2477
2475
}
2478
2476
2479
- let is_unstable_enabled = nightly_options:: is_unstable_enabled ( matches) ;
2480
2477
let prints = collect_print_requests (
2481
2478
& mut cg,
2482
2479
& mut debugging_opts,
2483
2480
matches,
2484
- is_unstable_enabled,
2485
2481
error_format,
2486
2482
) ;
2487
2483
@@ -2514,7 +2510,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
2514
2510
) ;
2515
2511
}
2516
2512
2517
- let externs = parse_externs ( matches, & debugging_opts, error_format, is_unstable_enabled ) ;
2513
+ let externs = parse_externs ( matches, & debugging_opts, error_format) ;
2518
2514
2519
2515
let crate_name = matches. opt_str ( "crate-name" ) ;
2520
2516
0 commit comments