Crate rustc_driverExperimental[stability] [-]  [+] [src]

The Rust compiler.

Note

This API is completely unstable and subject to change.

Modules

diagnostic
driver
pretty

The various pretty print routines.

Functions

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.

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.

list_metadata
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
version

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