@@ -1082,6 +1082,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
10821082 "gather borrowck statistics" ) ,
10831083 no_landing_pads: bool = ( false , parse_bool, [ TRACKED ] ,
10841084 "omit landing pads for unwinding" ) ,
1085+ fewer_names: bool = ( false , parse_bool, [ TRACKED ] ,
1086+ "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR)" ) ,
10851087 debug_llvm: bool = ( false , parse_bool, [ UNTRACKED ] ,
10861088 "enable debug output from LLVM" ) ,
10871089 meta_stats: bool = ( false , parse_bool, [ UNTRACKED ] ,
@@ -2813,6 +2815,10 @@ mod tests {
28132815 opts. debugging_opts . no_landing_pads = true ;
28142816 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
28152817
2818+ opts = reference. clone ( ) ;
2819+ opts. debugging_opts . fewer_names = true ;
2820+ assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2821+
28162822 opts = reference. clone ( ) ;
28172823 opts. debugging_opts . no_trans = true ;
28182824 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
0 commit comments