Crate rustc_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?

The Rust compiler.

Note

This API is completely unstable and subject to change.

Modules

driver [
Experimental
]
pretty [
Experimental
]

The various pretty print routines.

profile [
Experimental
]
target_features [
Experimental
]

Structs

RustcDefaultCalls [
Experimental
]

Enums

Compilation [
Experimental
]

Traits

CompilerCalls [
Experimental
]

Functions

abort_on_err [
Experimental
]
diagnostics_registry [
Experimental
]
enable_save_analysis [
Experimental
]
get_trans [
Experimental
]
handle_options [
Experimental
]

Process command line options. Emits messages as appropriate. If compilation should continue, returns a getopts::Matches object parsed from args, otherwise returns None.

in_rustc_thread [
Experimental
]

Runs f in a suitable thread for running rustc; returns a Result with either the return value of f or -- if a panic occurs -- the panic value.

init_rustc_env_logger [
Experimental
]

This allows tools to enable rust logging without having to magically match rustc's log crate version

main [
Experimental
]
monitor [
Experimental
]

Run a procedure which will detect panics in the compiler and print nicer error messages rather than just failing the test.

run [
Experimental
]
run_compiler [
Experimental
]
version [
Experimental
]

Prints version information