@@ -2221,7 +2221,6 @@ fn collect_print_requests(
2221
2221
cg : & mut CodegenOptions ,
2222
2222
dopts : & mut DebuggingOptions ,
2223
2223
matches : & getopts:: Matches ,
2224
- is_unstable_enabled : bool ,
2225
2224
error_format : ErrorOutputType ,
2226
2225
) -> Vec < PrintRequest > {
2227
2226
let mut prints = Vec :: < PrintRequest > :: new ( ) ;
@@ -2263,7 +2262,7 @@ fn collect_print_requests(
2263
2262
"tls-models" => PrintRequest :: TlsModels ,
2264
2263
"native-static-libs" => PrintRequest :: NativeStaticLibs ,
2265
2264
"target-spec-json" => {
2266
- if is_unstable_enabled {
2265
+ if dopts . unstable_options {
2267
2266
PrintRequest :: TargetSpec
2268
2267
} else {
2269
2268
early_error (
@@ -2427,7 +2426,6 @@ fn parse_externs(
2427
2426
matches : & getopts:: Matches ,
2428
2427
debugging_opts : & DebuggingOptions ,
2429
2428
error_format : ErrorOutputType ,
2430
- is_unstable_enabled : bool ,
2431
2429
) -> Externs {
2432
2430
if matches. opt_present ( "extern-private" ) && !debugging_opts. unstable_options {
2433
2431
early_error (
@@ -2533,12 +2531,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
2533
2531
) ;
2534
2532
}
2535
2533
2536
- let is_unstable_enabled = nightly_options:: is_unstable_enabled ( matches) ;
2537
2534
let prints = collect_print_requests (
2538
2535
& mut cg,
2539
2536
& mut debugging_opts,
2540
2537
matches,
2541
- is_unstable_enabled,
2542
2538
error_format,
2543
2539
) ;
2544
2540
@@ -2571,7 +2567,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
2571
2567
) ;
2572
2568
}
2573
2569
2574
- let externs = parse_externs ( matches, & debugging_opts, error_format, is_unstable_enabled ) ;
2570
+ let externs = parse_externs ( matches, & debugging_opts, error_format) ;
2575
2571
2576
2572
let crate_name = matches. opt_str ( "crate-name" ) ;
2577
2573
0 commit comments