@@ -605,8 +605,6 @@ macro_rules! options {
605605 pub const parse_bool: Option <& ' static str > = None ;
606606 pub const parse_opt_bool: Option <& ' static str > =
607607 Some ( "one of: `y`, `yes`, `on`, `n`, `no`, or `off`" ) ;
608- pub const parse_all_bool: Option <& ' static str > =
609- Some ( "one of: `y`, `yes`, `on`, `n`, `no`, or `off`" ) ;
610608 pub const parse_string: Option <& ' static str > = Some ( "a string" ) ;
611609 pub const parse_opt_string: Option <& ' static str > = Some ( "a string" ) ;
612610 pub const parse_list: Option <& ' static str > = Some ( "a space-separated list of strings" ) ;
@@ -656,25 +654,6 @@ macro_rules! options {
656654 }
657655 }
658656
659- fn parse_all_bool( slot: & mut bool , v: Option <& str >) -> bool {
660- match v {
661- Some ( s) => {
662- match s {
663- "n" | "no" | "off" => {
664- * slot = false ;
665- }
666- "y" | "yes" | "on" => {
667- * slot = true ;
668- }
669- _ => { return false ; }
670- }
671-
672- true
673- } ,
674- None => { * slot = true ; true }
675- }
676- }
677-
678657 fn parse_opt_string( slot: & mut Option <String >, v: Option <& str >) -> bool {
679658 match v {
680659 Some ( s) => { * slot = Some ( s. to_string( ) ) ; true } ,
@@ -930,8 +909,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
930909 "dump MIR state at various points in translation" ) ,
931910 dump_mir_dir: Option <String > = ( None , parse_opt_string, [ UNTRACKED ] ,
932911 "the directory the MIR is dumped into" ) ,
933- orbit: bool = ( true , parse_all_bool, [ UNTRACKED ] ,
934- "get MIR where it belongs - everywhere; most importantly, in orbit" ) ,
935912}
936913
937914pub fn default_lib_output ( ) -> CrateType {
@@ -1324,15 +1301,7 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches)
13241301 } )
13251302 } ) ;
13261303
1327- let mut debugging_opts = build_debugging_options ( matches, error_format) ;
1328-
1329- // Incremental compilation only works reliably when translation is done via
1330- // MIR, so let's enable -Z orbit if necessary (see #34973).
1331- if debugging_opts. incremental . is_some ( ) && !debugging_opts. orbit {
1332- early_warn ( error_format, "Automatically enabling `-Z orbit` because \
1333- `-Z incremental` was specified") ;
1334- debugging_opts. orbit = true ;
1335- }
1304+ let debugging_opts = build_debugging_options ( matches, error_format) ;
13361305
13371306 let mir_opt_level = debugging_opts. mir_opt_level . unwrap_or ( 1 ) ;
13381307
@@ -2424,8 +2393,6 @@ mod tests {
24242393 assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
24252394 opts. debugging_opts . dump_mir_dir = Some ( String :: from ( "abc" ) ) ;
24262395 assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
2427- opts. debugging_opts . orbit = false ;
2428- assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
24292396
24302397 // Make sure changing a [TRACKED] option changes the hash
24312398 opts = reference. clone ( ) ;
0 commit comments