@@ -848,9 +848,13 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
848848 ls: bool = ( false , parse_bool, [ UNTRACKED ] ,
849849 "list the symbols defined by a library crate" ) ,
850850 save_analysis: bool = ( false , parse_bool, [ UNTRACKED ] ,
851- "write syntax and type analysis (in JSON format) information in addition to normal output" ) ,
851+ "write syntax and type analysis (in JSON format) information, \
852+ addition to normal output") ,
852853 save_analysis_csv: bool = ( false , parse_bool, [ UNTRACKED ] ,
853- "write syntax and type analysis (in CSV format) information in addition to normal output" ) ,
854+ "write syntax and type analysis (in CSV format) information, in addition to normal output" ) ,
855+ save_analysis_api: bool = ( false , parse_bool, [ UNTRACKED ] ,
856+ "write syntax and type analysis information for opaque libraries (in JSON format), \
857+ in addition to normal output") ,
854858 print_move_fragments: bool = ( false , parse_bool, [ UNTRACKED ] ,
855859 "print out move-fragment data for every fn" ) ,
856860 flowgraph_print_loans: bool = ( false , parse_bool, [ UNTRACKED ] ,
@@ -2359,6 +2363,8 @@ mod tests {
23592363 assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
23602364 opts. debugging_opts . save_analysis_csv = true ;
23612365 assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
2366+ opts. debugging_opts . save_analysis_api = true ;
2367+ assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
23622368 opts. debugging_opts . print_move_fragments = true ;
23632369 assert_eq ! ( reference. dep_tracking_hash( ) , opts. dep_tracking_hash( ) ) ;
23642370 opts. debugging_opts . flowgraph_print_loans = true ;
0 commit comments