Crate rustc_driver [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

The Rust compiler.

Note

This API is completely unstable and subject to change.

Modules

driver [
Experimental
]
pretty [
Experimental
]

The various pretty print routines.

target_features [
Experimental
]

Structs

RustcDefaultCalls [
Experimental
]

Enums

Compilation [
Experimental
]

Traits

CompilerCalls [
Experimental
]

Functions

abort_on_err [
Experimental
]
commit_date_str [
Experimental
]

Returns the "commit date" of HEAD of the Git repo from which rustc was built as a static string.

commit_hash_str [
Experimental
]

Returns the full SHA1 hash of HEAD of the Git repo from which rustc was built.

diagnostics_registry [
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.

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.

release_str [
Experimental
]

Returns a version string such as "0.12.0-dev".

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

Prints version information