@@ -510,7 +510,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
510510 "debug info emission level, 0 = no debug info, 1 = line tables only, \
511511 2 = full debug info with variable and type information") ,
512512 opt_level: Option <usize > = ( None , parse_opt_uint,
513- "Optimize with possible levels 0-3" ) ,
513+ "optimize with possible levels 0-3" ) ,
514514 debug_assertions: Option <bool > = ( None , parse_opt_bool,
515515 "explicitly enable the cfg(debug_assertions) directive" ) ,
516516}
@@ -527,6 +527,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
527527 "count where LLVM instrs originate" ) ,
528528 time_llvm_passes: bool = ( false , parse_bool,
529529 "measure time of each LLVM pass" ) ,
530+ input_stats: bool = ( false , parse_bool,
531+ "gather statistics about the input" ) ,
530532 trans_stats: bool = ( false , parse_bool,
531533 "gather trans statistics" ) ,
532534 asm_comments: bool = ( false , parse_bool,
@@ -544,56 +546,56 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
544546 meta_stats: bool = ( false , parse_bool,
545547 "gather metadata statistics" ) ,
546548 print_link_args: bool = ( false , parse_bool,
547- "Print the arguments passed to the linker" ) ,
549+ "print the arguments passed to the linker" ) ,
548550 gc: bool = ( false , parse_bool,
549- "Garbage collect shared data (experimental)" ) ,
551+ "garbage collect shared data (experimental)" ) ,
550552 print_llvm_passes: bool = ( false , parse_bool,
551- "Prints the llvm optimization passes being run" ) ,
553+ "prints the llvm optimization passes being run" ) ,
552554 ast_json: bool = ( false , parse_bool,
553- "Print the AST as JSON and halt" ) ,
555+ "print the AST as JSON and halt" ) ,
554556 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" ) ,
556558 ls: bool = ( false , parse_bool,
557- "List the symbols defined by a library crate" ) ,
559+ "list the symbols defined by a library crate" ) ,
558560 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" ) ,
560562 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" ) ,
562564 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" ) ,
564566 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" ) ,
566568 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" ) ,
568570 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" ) ,
570572 print_region_graph: bool = ( false , parse_bool,
571- "Prints region inference graph. \
573+ "prints region inference graph. \
572574 Use with RUST_REGION_GRAPH=help for more info") ,
573575 parse_only: bool = ( false , parse_bool,
574- "Parse only; do not compile, assemble, or link" ) ,
576+ "parse only; do not compile, assemble, or link" ) ,
575577 no_trans: bool = ( false , parse_bool,
576- "Run all passes except translation; no output" ) ,
578+ "run all passes except translation; no output" ) ,
577579 treat_err_as_bug: bool = ( false , parse_bool,
578- "Treat all errors that occur as bugs" ) ,
580+ "treat all errors that occur as bugs" ) ,
579581 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" ) ,
581583 extra_plugins: Vec <String > = ( Vec :: new( ) , parse_list,
582584 "load extra plugins" ) ,
583585 unstable_options: bool = ( false , parse_bool,
584- "Adds unstable command line options to rustc interface" ) ,
586+ "adds unstable command line options to rustc interface" ) ,
585587 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" ) ,
587589 force_overflow_checks: Option <bool > = ( None , parse_opt_bool,
588- "Force overflow checks on or off" ) ,
590+ "force overflow checks on or off" ) ,
589591 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" ) ,
591593 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" ) ,
593595 enable_nonzeroing_move_hints: bool = ( false , parse_bool,
594- "Force nonzeroing move optimization on" ) ,
596+ "force nonzeroing move optimization on" ) ,
595597 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" ) ,
597599}
598600
599601pub fn default_lib_output ( ) -> CrateType {
0 commit comments