rustc_driver - Rust (original) (raw)
Crate rustc_driver
Modules§
The various pretty-printing routines.
Macros§
Prints version information
Structs§
Enums§
Whether to stop or continue compilation.
Constants§
Exit status code used for compilation failures and invalid flags.
Exit status code used for successful compilation and help output.
Statics§
Raw content of Fluent resource for this crate, generated by fluent_messages
macro, imported by rustc_driver
to include all crates’ resources in one bundle.
Traits§
Functions§
Runs a closure and catches unwinds triggered by fatal errors.
Variant of catch_fatal_errors
for the interface::Result
return type that also computes the exit code.
Show help for flag categories shared between rustdoc and rustc.
Write to stdout lint command options, together with a list of all available lints
Process command line options. Emits messages as appropriate. If compilation should continue, returns a getopts::Matches object parsed from args, otherwise returns None
.
This allows tools to enable rust logging without having to magically match rustc’s tracing crate version. In contrast to init_rustc_env_logger
it allows you to choose the values directly rather than having to set an environment variable.
This allows tools to enable rust logging without having to magically match rustc’s tracing crate version.
Install our usual ctrlc
handler, which sets rustc_const_eval::CTRL_C_RECEIVED. Making this handler optional lets tools can install a different handler, if they wish.
Installs a panic hook that will print the ICE message on unexpected panics.
This is the primary entry point for rustc.