Module rustc_driver::driver[][src]

🔬 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?

Structs

CompileController [
Experimental
]

CompileController is used to customize compilation, it allows compilation to be stopped and/or to call arbitrary code at various points in compilation. It also allows for various flags to be set to influence what information gets collected during compilation.

CompileState [
Experimental
]

State that is passed to a callback. What state is available depends on when during compilation the callback is made. See the various constructor methods (state_*) in the impl to see which data is provided for any given entry point.

ExpansionResult [
Experimental
]
InnerExpansionResult [
Experimental
]
PhaseController [
Experimental
]

Functions

build_output_filenames [
Experimental
]
check_output [
Experimental
]
collect_crate_types [
Experimental
]
compile_input [
Experimental
]
compute_crate_disambiguator [
Experimental
]
count_nodes [
Experimental
]
default_provide [
Experimental
]
default_provide_extern [
Experimental
]
escape_dep_filename [
Experimental
]
generated_output_paths [
Experimental
]
output_conflicts_with_dir [
Experimental
]
output_contains_path [
Experimental
]
phase_1_parse_input [
Experimental
]
phase_2_configure_and_expand [
Experimental
]

Run the "early phases" of the compiler: initial cfg processing, loading compiler plugins (including those from addl_plugins), syntax expansion, secondary cfg expansion, synthesis of a test harness if one is to be provided, injection of a dependency on the standard library and prelude, and name resolution.

phase_2_configure_and_expand_inner [
Experimental
]

Same as phase_2_configure_and_expand, but doesn't let you keep the resolver around

phase_3_run_analysis_passes [
Experimental
]

Run the resolution, typechecking, region checking and other miscellaneous analysis passes on the crate. Return various structures carrying the results of the analysis.

phase_4_codegen [
Experimental
]

Run the codegen backend, after which the AST and analysis can be discarded.

source_name [
Experimental
]
spawn_thread_pool [
Experimental
]
write_out_deps [
Experimental
]