@@ -132,7 +132,6 @@ pub struct Options {
132
132
pub prints : Vec < PrintRequest > ,
133
133
pub cg : CodegenOptions ,
134
134
pub color : ColorConfig ,
135
- pub show_span : Option < String > ,
136
135
pub externs : HashMap < String , Vec < String > > ,
137
136
pub crate_name : Option < String > ,
138
137
/// An optional name to use as the crate for std during std injection,
@@ -243,7 +242,6 @@ pub fn basic_options() -> Options {
243
242
prints : Vec :: new ( ) ,
244
243
cg : basic_codegen_options ( ) ,
245
244
color : ColorConfig :: Auto ,
246
- show_span : None ,
247
245
externs : HashMap :: new ( ) ,
248
246
crate_name : None ,
249
247
alt_std_name : None ,
@@ -634,6 +632,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
634
632
"don't clear the resolution tables after analysis" ) ,
635
633
keep_ast: bool = ( false , parse_bool,
636
634
"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)" ) ,
637
637
}
638
638
639
639
pub fn default_lib_output ( ) -> CrateType {
@@ -882,7 +882,6 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
882
882
`hir` (the HIR), `hir,identified`, or
883
883
`hir,typed` (HIR with types for each node)." ,
884
884
"TYPE" ) ,
885
- opt:: opt_u ( "" , "show-span" , "Show spans for compiler debugging" , "expr|pat|ty" ) ,
886
885
] ) ;
887
886
opts
888
887
}
@@ -1123,7 +1122,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
1123
1122
prints : prints,
1124
1123
cg : cg,
1125
1124
color : color,
1126
- show_span : None ,
1127
1125
externs : externs,
1128
1126
crate_name : crate_name,
1129
1127
alt_std_name : None ,
0 commit comments