Constant rustc::session::config::DB_OPTIONS [−][src]
pub const DB_OPTIONS: &'static [(&'static str, DebuggingSetter, Option<&'static str>, &'static str)]=
&[("codegen_backend", dbsetters::codegen_backend, db_type_desc::parse_opt_string, "the backend to use"), ("verbose", dbsetters::verbose, db_type_desc::parse_bool, "in general, enable more debug printouts"), ("span_free_formats", dbsetters::span_free_formats, db_type_desc::parse_bool, "when debug-printing compiler state, do not include spans"), ("identify_regions", dbsetters::identify_regions, db_type_desc::parse_bool, "make unnamed regions display as \'# (where # is some non-ident unique id)"), ("emit_end_regions", dbsetters::emit_end_regions, db_type_desc::parse_bool, "emit EndRegion as part of MIR; enable transforms that solely process EndRegion"), ("borrowck", dbsetters::borrowck, db_type_desc::parse_opt_string, "select which borrowck is used (`ast`, `mir`, or `compare`)"), ("two_phase_borrows", dbsetters::two_phase_borrows, db_type_desc::parse_bool, "use two-phase reserved/active distinction for `&mut` borrows in MIR borrowck"), ("two_phase_beyond_autoref", dbsetters::two_phase_beyond_autoref, db_type_desc::parse_bool, "when using two-phase-borrows, allow two phases even for non-autoref `&mut` borrows"), ("time_passes", dbsetters::time_passes, db_type_desc::parse_bool, "measure time of each rustc pass"), ("count_llvm_insns", dbsetters::count_llvm_insns, db_type_desc::parse_bool, "count where LLVM instrs originate"), ("time_llvm_passes", dbsetters::time_llvm_passes, db_type_desc::parse_bool, "measure time of each LLVM pass"), ("input_stats", dbsetters::input_stats, db_type_desc::parse_bool, "gather statistics about the input"), ("trans_stats", dbsetters::trans_stats, db_type_desc::parse_bool, "gather trans statistics"), ("asm_comments", dbsetters::asm_comments, db_type_desc::parse_bool, "generate comments into the assembly (may change behavior)"), ("no_verify", dbsetters::no_verify, db_type_desc::parse_bool, "skip LLVM verification"), ("borrowck_stats", dbsetters::borrowck_stats, db_type_desc::parse_bool, "gather borrowck statistics"), ("no_landing_pads", dbsetters::no_landing_pads, db_type_desc::parse_bool, "omit landing pads for unwinding"), ("fewer_names", dbsetters::fewer_names, db_type_desc::parse_bool, "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR)"), ("meta_stats", dbsetters::meta_stats, db_type_desc::parse_bool, "gather metadata statistics"), ("print_link_args", dbsetters::print_link_args, db_type_desc::parse_bool, "print the arguments passed to the linker"), ("print_llvm_passes", dbsetters::print_llvm_passes, db_type_desc::parse_bool, "prints the llvm optimization passes being run"), ("ast_json", dbsetters::ast_json, db_type_desc::parse_bool, "print the AST as JSON and halt"), ("query_threads", dbsetters::query_threads, db_type_desc::parse_opt_uint, "execute queries on a thread pool with N threads"), ("ast_json_noexpand", dbsetters::ast_json_noexpand, db_type_desc::parse_bool, "print the pre-expansion AST as JSON and halt"), ("ls", dbsetters::ls, db_type_desc::parse_bool, "list the symbols defined by a library crate"), ("save_analysis", dbsetters::save_analysis, db_type_desc::parse_bool, "write syntax and type analysis (in JSON format) information, in addition to normal output"), ("flowgraph_print_loans", dbsetters::flowgraph_print_loans, db_type_desc::parse_bool, "include loan analysis data in -Z unpretty flowgraph output"), ("flowgraph_print_moves", dbsetters::flowgraph_print_moves, db_type_desc::parse_bool, "include move analysis data in -Z unpretty flowgraph output"), ("flowgraph_print_assigns", dbsetters::flowgraph_print_assigns, db_type_desc::parse_bool, "include assignment analysis data in -Z unpretty flowgraph output"), ("flowgraph_print_all", dbsetters::flowgraph_print_all, db_type_desc::parse_bool, "include all dataflow analysis data in -Z unpretty flowgraph output"), ("print_region_graph", dbsetters::print_region_graph, db_type_desc::parse_bool, "prints region inference graph. Use with RUST_REGION_GRAPH=help for more info"), ("parse_only", dbsetters::parse_only, db_type_desc::parse_bool, "parse only; do not compile, assemble, or link"), ("no_trans", dbsetters::no_trans, db_type_desc::parse_bool, "run all passes except translation; no output"), ("treat_err_as_bug", dbsetters::treat_err_as_bug, db_type_desc::parse_bool, "treat all errors that occur as bugs"), ("external_macro_backtrace", dbsetters::external_macro_backtrace, db_type_desc::parse_bool, "show macro backtraces even for non-local macros"), ("teach", dbsetters::teach, db_type_desc::parse_bool, "show extended diagnostic help"), ("continue_parse_after_error", dbsetters::continue_parse_after_error, db_type_desc::parse_bool, "attempt to recover from parse errors (experimental)"), ("incremental", dbsetters::incremental, db_type_desc::parse_opt_string, "enable incremental compilation (experimental)"), ("incremental_queries", dbsetters::incremental_queries, db_type_desc::parse_bool, "enable incremental compilation support for queries (experimental)"), ("incremental_info", dbsetters::incremental_info, db_type_desc::parse_bool, "print high-level information about incremental reuse (or the lack thereof)"), ("incremental_dump_hash", dbsetters::incremental_dump_hash, db_type_desc::parse_bool, "dump hash information in textual format to stdout"), ("incremental_verify_ich", dbsetters::incremental_verify_ich, db_type_desc::parse_bool, "verify incr. comp. hashes of green query instances"), ("incremental_ignore_spans", dbsetters::incremental_ignore_spans, db_type_desc::parse_bool, "ignore spans during ICH computation -- used for testing"), ("dump_dep_graph", dbsetters::dump_dep_graph, db_type_desc::parse_bool, "dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv)"), ("query_dep_graph", dbsetters::query_dep_graph, db_type_desc::parse_bool, "enable queries of the dependency graph for regression testing"), ("profile_queries", dbsetters::profile_queries, db_type_desc::parse_bool, "trace and profile the queries of the incremental compilation framework"), ("profile_queries_and_keys", dbsetters::profile_queries_and_keys, db_type_desc::parse_bool, "trace and profile the queries and keys of the incremental compilation framework"), ("no_analysis", dbsetters::no_analysis, db_type_desc::parse_bool, "parse and expand the source, but run no analysis"), ("extra_plugins", dbsetters::extra_plugins, db_type_desc::parse_list, "load extra plugins"), ("unstable_options", dbsetters::unstable_options, db_type_desc::parse_bool, "adds unstable command line options to rustc interface"), ("force_overflow_checks", dbsetters::force_overflow_checks, db_type_desc::parse_opt_bool, "force overflow checks on or off"), ("trace_macros", dbsetters::trace_macros, db_type_desc::parse_bool, "for every macro invocation, print its name and arguments"), ("debug_macros", dbsetters::debug_macros, db_type_desc::parse_bool, "emit line numbers debug info inside macros"), ("enable_nonzeroing_move_hints", dbsetters::enable_nonzeroing_move_hints, db_type_desc::parse_bool, "force nonzeroing move optimization on"), ("keep_hygiene_data", dbsetters::keep_hygiene_data, db_type_desc::parse_bool, "don\'t clear the hygiene data after analysis"), ("keep_ast", dbsetters::keep_ast, db_type_desc::parse_bool, "keep the AST after lowering it to HIR"), ("show_span", dbsetters::show_span, db_type_desc::parse_opt_string, "show spans for compiler debugging (expr|pat|ty)"), ("print_type_sizes", dbsetters::print_type_sizes, db_type_desc::parse_bool, "print layout information for each type encountered"), ("print_trans_items", dbsetters::print_trans_items, db_type_desc::parse_opt_string, "print the result of the translation item collection pass"), ("mir_opt_level", dbsetters::mir_opt_level, db_type_desc::parse_uint, "set the MIR optimization level (0-3, default: 1)"), ("mutable_noalias", dbsetters::mutable_noalias, db_type_desc::parse_bool, "emit noalias metadata for mutable references"), ("arg_align_attributes", dbsetters::arg_align_attributes, db_type_desc::parse_bool, "emit align metadata for reference arguments"), ("dump_mir", dbsetters::dump_mir, db_type_desc::parse_opt_string, "dump MIR state at various points in translation"), ("dump_mir_dir", dbsetters::dump_mir_dir, db_type_desc::parse_string, "the directory the MIR is dumped into"), ("dump_mir_graphviz", dbsetters::dump_mir_graphviz, db_type_desc::parse_bool, "in addition to `.mir` files, create graphviz `.dot` files"), ("dump_mir_exclude_pass_number", dbsetters::dump_mir_exclude_pass_number, db_type_desc::parse_bool, "if set, exclude the pass number when dumping MIR (used in tests)"), ("mir_emit_validate", dbsetters::mir_emit_validate, db_type_desc::parse_uint, "emit Validate MIR statements, interpreted e.g. by miri (0: do not emit; 1: if function contains unsafe block, only validate arguments; 2: always emit full validation)"), ("perf_stats", dbsetters::perf_stats, db_type_desc::parse_bool, "print some performance-related statistics"), ("hir_stats", dbsetters::hir_stats, db_type_desc::parse_bool, "print some statistics about AST and HIR"), ("mir_stats", dbsetters::mir_stats, db_type_desc::parse_bool, "print some statistics about MIR"), ("always_encode_mir", dbsetters::always_encode_mir, db_type_desc::parse_bool, "encode MIR of all functions into the crate metadata"), ("osx_rpath_install_name", dbsetters::osx_rpath_install_name, db_type_desc::parse_bool, "pass `-install_name @rpath/...` to the macOS linker"), ("sanitizer", dbsetters::sanitizer, db_type_desc::parse_sanitizer, "Use a sanitizer"), ("linker_flavor", dbsetters::linker_flavor, db_type_desc::parse_linker_flavor, "Linker flavor"), ("fuel", dbsetters::fuel, db_type_desc::parse_optimization_fuel, "set the optimization fuel quota for a crate"), ("print_fuel", dbsetters::print_fuel, db_type_desc::parse_opt_string, "make Rustc print the total optimization fuel used by a crate"), ("force_unstable_if_unmarked", dbsetters::force_unstable_if_unmarked, db_type_desc::parse_bool, "force all crates to be `rustc_private` unstable"), ("pre_link_arg", dbsetters::pre_link_arg, db_type_desc::parse_string_push, "a single extra argument to prepend the linker invocation (can be used several times)"), ("pre_link_args", dbsetters::pre_link_args, db_type_desc::parse_opt_list, "extra arguments to prepend to the linker invocation (space separated)"), ("profile", dbsetters::profile, db_type_desc::parse_bool, "insert profiling code"), ("pgo_gen", dbsetters::pgo_gen, db_type_desc::parse_opt_string, "Generate PGO profile data, to a given file, or to the default location if it\'s empty."), ("pgo_use", dbsetters::pgo_use, db_type_desc::parse_string, "Use PGO profile data from the given profile file."), ("disable_instrumentation_preinliner", dbsetters::disable_instrumentation_preinliner, db_type_desc::parse_bool, "Disable the instrumentation pre-inliner, useful for profiling / PGO."), ("relro_level", dbsetters::relro_level, db_type_desc::parse_relro_level, "choose which RELRO level to use"), ("nll_subminimal_causes", dbsetters::nll_subminimal_causes, db_type_desc::parse_bool, "when tracking region error causes, accept subminimal results for faster execution."), ("nll_facts", dbsetters::nll_facts, db_type_desc::parse_bool, "dump facts from NLL analysis into side files"), ("disable_nll_user_type_assert", dbsetters::disable_nll_user_type_assert, db_type_desc::parse_bool, "disable user provided type assertion in NLL"), ("trans_time_graph", dbsetters::trans_time_graph, db_type_desc::parse_bool, "generate a graphical HTML report of time spent in trans and LLVM"), ("thinlto", dbsetters::thinlto, db_type_desc::parse_opt_bool, "enable ThinLTO when possible"), ("inline_in_all_cgus", dbsetters::inline_in_all_cgus, db_type_desc::parse_opt_bool, "control whether #[inline] functions are in all cgus"), ("tls_model", dbsetters::tls_model, db_type_desc::parse_opt_string, "choose the TLS model to use (rustc --print tls-models for details)"), ("saturating_float_casts", dbsetters::saturating_float_casts, db_type_desc::parse_bool, "make float->int casts UB-free: numbers outside the integer type\'s range are clipped to the max/min integer respectively, and NaN is mapped to 0"), ("lower_128bit_ops", dbsetters::lower_128bit_ops, db_type_desc::parse_opt_bool, "rewrite operators on i128 and u128 into lang item calls (typically provided by compiler-builtins) so translation doesn\'t need to support them,\n overriding the default for the current target"), ("human_readable_cgu_names", dbsetters::human_readable_cgu_names, db_type_desc::parse_bool, "generate human-readable, predictable names for codegen units"), ("dep_info_omit_d_target", dbsetters::dep_info_omit_d_target, db_type_desc::parse_bool, "in dep-info output, omit targets for tracking dependencies of the dep-info files themselves"), ("suggestion_applicability", dbsetters::suggestion_applicability, db_type_desc::parse_bool, "include machine-applicability of suggestions in JSON output"), ("unpretty", dbsetters::unpretty, db_type_desc::parse_unpretty, "Present the input source, unstable (and less-pretty) variants;\n valid types are any of the types for `--pretty`, as well as:\n `flowgraph=<nodeid>` (graphviz formatted flowgraph for node),\n `everybody_loops` (all function bodies replaced with `loop {}`),\n `hir` (the HIR), `hir,identified`, or\n `hir,typed` (HIR with types for each node)."), ("run_dsymutil", dbsetters::run_dsymutil, db_type_desc::parse_opt_bool, "run `dsymutil` and delete intermediate object files"), ("ui_testing", dbsetters::ui_testing, db_type_desc::parse_bool, "format compiler diagnostics in a way that\'s better suitable for UI testing"), ("embed_bitcode", dbsetters::embed_bitcode, db_type_desc::parse_bool, "embed LLVM bitcode in object files"), ("strip_debuginfo_if_disabled", dbsetters::strip_debuginfo_if_disabled, db_type_desc::parse_opt_bool, "tell the linker to strip debuginfo when building without debuginfo enabled."), ("share_generics", dbsetters::share_generics, db_type_desc::parse_opt_bool, "make the current crate share its generic instantiations"), ("chalk", dbsetters::chalk, db_type_desc::parse_bool, "enable the experimental Chalk-based trait solving engine"), ("cross_lang_lto", dbsetters::cross_lang_lto, db_type_desc::parse_bool, "generate build artifacts that are compatible with linker-based LTO.")]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?