@@ -2221,7 +2221,6 @@ fn collect_print_requests(
22212221 cg : & mut CodegenOptions ,
22222222 dopts : & mut DebuggingOptions ,
22232223 matches : & getopts:: Matches ,
2224- is_unstable_enabled : bool ,
22252224 error_format : ErrorOutputType ,
22262225) -> Vec < PrintRequest > {
22272226 let mut prints = Vec :: < PrintRequest > :: new ( ) ;
@@ -2263,7 +2262,7 @@ fn collect_print_requests(
22632262 "tls-models" => PrintRequest :: TlsModels ,
22642263 "native-static-libs" => PrintRequest :: NativeStaticLibs ,
22652264 "target-spec-json" => {
2266- if is_unstable_enabled {
2265+ if dopts . unstable_options {
22672266 PrintRequest :: TargetSpec
22682267 } else {
22692268 early_error (
@@ -2427,7 +2426,6 @@ fn parse_externs(
24272426 matches : & getopts:: Matches ,
24282427 debugging_opts : & DebuggingOptions ,
24292428 error_format : ErrorOutputType ,
2430- is_unstable_enabled : bool ,
24312429) -> Externs {
24322430 if matches. opt_present ( "extern-private" ) && !debugging_opts. unstable_options {
24332431 early_error (
@@ -2533,12 +2531,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
25332531 ) ;
25342532 }
25352533
2536- let is_unstable_enabled = nightly_options:: is_unstable_enabled ( matches) ;
25372534 let prints = collect_print_requests (
25382535 & mut cg,
25392536 & mut debugging_opts,
25402537 matches,
2541- is_unstable_enabled,
25422538 error_format,
25432539 ) ;
25442540
@@ -2571,7 +2567,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
25712567 ) ;
25722568 }
25732569
2574- let externs = parse_externs ( matches, & debugging_opts, error_format, is_unstable_enabled ) ;
2570+ let externs = parse_externs ( matches, & debugging_opts, error_format) ;
25752571
25762572 let crate_name = matches. opt_str ( "crate-name" ) ;
25772573
0 commit comments