@@ -105,6 +105,7 @@ pub struct Options {
105105 pub prints : Vec < PrintRequest > ,
106106 pub cg : CodegenOptions ,
107107 pub color : ColorConfig ,
108+ pub show_span : Option < String > ,
108109 pub externs : HashMap < String , Vec < String > > ,
109110 pub crate_name : Option < String > ,
110111 /// An optional name to use as the crate for std during std injection,
@@ -211,6 +212,7 @@ pub fn basic_options() -> Options {
211212 prints : Vec :: new ( ) ,
212213 cg : basic_codegen_options ( ) ,
213214 color : Auto ,
215+ show_span : None ,
214216 externs : HashMap :: new ( ) ,
215217 crate_name : None ,
216218 alt_std_name : None ,
@@ -259,7 +261,6 @@ debugging_opts! {
259261 BORROWCK_STATS ,
260262 NO_LANDING_PADS ,
261263 DEBUG_LLVM ,
262- SHOW_SPAN ,
263264 COUNT_TYPE_SIZES ,
264265 META_STATS ,
265266 GC ,
@@ -298,7 +299,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
298299 ( "no-landing-pads" , "omit landing pads for unwinding" ,
299300 NO_LANDING_PADS ) ,
300301 ( "debug-llvm" , "enable debug output from LLVM" , DEBUG_LLVM ) ,
301- ( "show-span" , "show spans for compiler debugging" , SHOW_SPAN ) ,
302302 ( "count-type-sizes" , "count the sizes of aggregate types" ,
303303 COUNT_TYPE_SIZES ) ,
304304 ( "meta-stats" , "gather metadata statistics" , META_STATS ) ,
@@ -820,6 +820,7 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
820820 `flowgraph=<nodeid>` (graphviz formatted flowgraph for node), or
821821 `everybody_loops` (all function bodies replaced with `loop {}`)." ,
822822 "TYPE" ) ,
823+ opt:: opt_u ( "" , "show-span" , "Show spans for compiler debugging" , "expr|pat|ty" ) ,
823824 opt:: flagopt ( "" , "dep-info" ,
824825 "Output dependency info to <filename> after compiling, \
825826 in a format suitable for use by Makefiles", "FILENAME" ) ,
@@ -1122,6 +1123,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
11221123 prints : prints,
11231124 cg : cg,
11241125 color : color,
1126+ show_span : None ,
11251127 externs : externs,
11261128 crate_name : crate_name,
11271129 alt_std_name : None ,
0 commit comments