@@ -132,7 +132,6 @@ pub struct Options {
132132 pub prints : Vec < PrintRequest > ,
133133 pub cg : CodegenOptions ,
134134 pub color : ColorConfig ,
135- pub show_span : Option < String > ,
136135 pub externs : HashMap < String , Vec < String > > ,
137136 pub crate_name : Option < String > ,
138137 /// An optional name to use as the crate for std during std injection,
@@ -243,7 +242,6 @@ pub fn basic_options() -> Options {
243242 prints : Vec :: new ( ) ,
244243 cg : basic_codegen_options ( ) ,
245244 color : ColorConfig :: Auto ,
246- show_span : None ,
247245 externs : HashMap :: new ( ) ,
248246 crate_name : None ,
249247 alt_std_name : None ,
@@ -634,6 +632,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
634632 "don't clear the resolution tables after analysis" ) ,
635633 keep_ast: bool = ( false , parse_bool,
636634 "keep the AST after lowering it to HIR" ) ,
635+ show_span: Option <String > = ( None , parse_opt_string,
636+ "show spans for compiler debugging (expr|pat|ty)" ) ,
637637}
638638
639639pub fn default_lib_output ( ) -> CrateType {
@@ -882,7 +882,6 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
882882 `hir` (the HIR), `hir,identified`, or
883883 `hir,typed` (HIR with types for each node)." ,
884884 "TYPE" ) ,
885- opt:: opt_u ( "" , "show-span" , "Show spans for compiler debugging" , "expr|pat|ty" ) ,
886885 ] ) ;
887886 opts
888887}
@@ -1123,7 +1122,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
11231122 prints : prints,
11241123 cg : cg,
11251124 color : color,
1126- show_span : None ,
11271125 externs : externs,
11281126 crate_name : crate_name,
11291127 alt_std_name : None ,
0 commit comments