@@ -510,7 +510,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
510
510
"debug info emission level, 0 = no debug info, 1 = line tables only, \
511
511
2 = full debug info with variable and type information") ,
512
512
opt_level: Option <usize > = ( None , parse_opt_uint,
513
- "Optimize with possible levels 0-3" ) ,
513
+ "optimize with possible levels 0-3" ) ,
514
514
debug_assertions: Option <bool > = ( None , parse_opt_bool,
515
515
"explicitly enable the cfg(debug_assertions) directive" ) ,
516
516
}
@@ -527,6 +527,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
527
527
"count where LLVM instrs originate" ) ,
528
528
time_llvm_passes: bool = ( false , parse_bool,
529
529
"measure time of each LLVM pass" ) ,
530
+ input_stats: bool = ( false , parse_bool,
531
+ "gather statistics about the input" ) ,
530
532
trans_stats: bool = ( false , parse_bool,
531
533
"gather trans statistics" ) ,
532
534
asm_comments: bool = ( false , parse_bool,
@@ -544,56 +546,56 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
544
546
meta_stats: bool = ( false , parse_bool,
545
547
"gather metadata statistics" ) ,
546
548
print_link_args: bool = ( false , parse_bool,
547
- "Print the arguments passed to the linker" ) ,
549
+ "print the arguments passed to the linker" ) ,
548
550
gc: bool = ( false , parse_bool,
549
- "Garbage collect shared data (experimental)" ) ,
551
+ "garbage collect shared data (experimental)" ) ,
550
552
print_llvm_passes: bool = ( false , parse_bool,
551
- "Prints the llvm optimization passes being run" ) ,
553
+ "prints the llvm optimization passes being run" ) ,
552
554
ast_json: bool = ( false , parse_bool,
553
- "Print the AST as JSON and halt" ) ,
555
+ "print the AST as JSON and halt" ) ,
554
556
ast_json_noexpand: bool = ( false , parse_bool,
555
- "Print the pre-expansion AST as JSON and halt" ) ,
557
+ "print the pre-expansion AST as JSON and halt" ) ,
556
558
ls: bool = ( false , parse_bool,
557
- "List the symbols defined by a library crate" ) ,
559
+ "list the symbols defined by a library crate" ) ,
558
560
save_analysis: bool = ( false , parse_bool,
559
- "Write syntax and type analysis information in addition to normal output" ) ,
561
+ "write syntax and type analysis information in addition to normal output" ) ,
560
562
print_move_fragments: bool = ( false , parse_bool,
561
- "Print out move-fragment data for every fn" ) ,
563
+ "print out move-fragment data for every fn" ) ,
562
564
flowgraph_print_loans: bool = ( false , parse_bool,
563
- "Include loan analysis data in --unpretty flowgraph output" ) ,
565
+ "include loan analysis data in --unpretty flowgraph output" ) ,
564
566
flowgraph_print_moves: bool = ( false , parse_bool,
565
- "Include move analysis data in --unpretty flowgraph output" ) ,
567
+ "include move analysis data in --unpretty flowgraph output" ) ,
566
568
flowgraph_print_assigns: bool = ( false , parse_bool,
567
- "Include assignment analysis data in --unpretty flowgraph output" ) ,
569
+ "include assignment analysis data in --unpretty flowgraph output" ) ,
568
570
flowgraph_print_all: bool = ( false , parse_bool,
569
- "Include all dataflow analysis data in --unpretty flowgraph output" ) ,
571
+ "include all dataflow analysis data in --unpretty flowgraph output" ) ,
570
572
print_region_graph: bool = ( false , parse_bool,
571
- "Prints region inference graph. \
573
+ "prints region inference graph. \
572
574
Use with RUST_REGION_GRAPH=help for more info") ,
573
575
parse_only: bool = ( false , parse_bool,
574
- "Parse only; do not compile, assemble, or link" ) ,
576
+ "parse only; do not compile, assemble, or link" ) ,
575
577
no_trans: bool = ( false , parse_bool,
576
- "Run all passes except translation; no output" ) ,
578
+ "run all passes except translation; no output" ) ,
577
579
treat_err_as_bug: bool = ( false , parse_bool,
578
- "Treat all errors that occur as bugs" ) ,
580
+ "treat all errors that occur as bugs" ) ,
579
581
no_analysis: bool = ( false , parse_bool,
580
- "Parse and expand the source, but run no analysis" ) ,
582
+ "parse and expand the source, but run no analysis" ) ,
581
583
extra_plugins: Vec <String > = ( Vec :: new( ) , parse_list,
582
584
"load extra plugins" ) ,
583
585
unstable_options: bool = ( false , parse_bool,
584
- "Adds unstable command line options to rustc interface" ) ,
586
+ "adds unstable command line options to rustc interface" ) ,
585
587
print_enum_sizes: bool = ( false , parse_bool,
586
- "Print the size of enums and their variants" ) ,
588
+ "print the size of enums and their variants" ) ,
587
589
force_overflow_checks: Option <bool > = ( None , parse_opt_bool,
588
- "Force overflow checks on or off" ) ,
590
+ "force overflow checks on or off" ) ,
589
591
force_dropflag_checks: Option <bool > = ( None , parse_opt_bool,
590
- "Force drop flag checks on or off" ) ,
592
+ "force drop flag checks on or off" ) ,
591
593
trace_macros: bool = ( false , parse_bool,
592
- "For every macro invocation, print its name and arguments" ) ,
594
+ "for every macro invocation, print its name and arguments" ) ,
593
595
enable_nonzeroing_move_hints: bool = ( false , parse_bool,
594
- "Force nonzeroing move optimization on" ) ,
596
+ "force nonzeroing move optimization on" ) ,
595
597
keep_mtwt_tables: bool = ( false , parse_bool,
596
- "Don 't clear the resolution tables after analysis" ) ,
598
+ "don 't clear the resolution tables after analysis" ) ,
597
599
}
598
600
599
601
pub fn default_lib_output ( ) -> CrateType {
0 commit comments