Crate rustc_driverUnstable[stability] [-] [+] [src]

The Rust compiler.

Note

This API is completely unstable and subject to change.

Modules

diagnostic
driver
pretty

The various pretty print routines.

Structs

RustcDefaultCalls

Enums

Compilation

Traits

CompilerCalls

Functions

build_date_str
commit_date_str

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

commit_hash_str

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

diagnostics_registry
handle_options

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

main
monitor

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

release_str

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

run
run_compiler
version

Prints version information and returns None on success or an error message on panic.