[][src]Crate rustc_driver

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

The Rust compiler.

Note

This API is completely unstable and subject to change.

Re-exports

pub extern crate getopts;
pub extern crate rustc_plugin_impl as plugin;

Modules

argsInternal
prettyInternal

The various pretty-printing routines.

Structs

DEFAULT_HOOKInternal
DefaultCallbacksInternal
RustcDefaultCallsInternal

CompilerCalls instance for a regular rustc build.

TimePassesCallbacksInternal

Enums

CompilationInternal

Constants

BUG_REPORT_URLInternal
EXIT_FAILUREInternal

Exit status code used for compilation failures and invalid flags.

EXIT_SUCCESSInternal

Exit status code used for successful compilation and help output.

ICE_REPORT_COMPILER_FLAGSInternal
ICE_REPORT_COMPILER_FLAGS_EXCLUDEInternal
ICE_REPORT_COMPILER_FLAGS_STRIP_VALUEInternal

Traits

CallbacksInternal

Functions

abort_on_errInternal
catch_fatal_errorsInternal

Runs a closure and catches unwinds triggered by fatal errors.

commit_date_strInternal

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

commit_hash_strInternal

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

describe_codegen_flagsInternal
describe_debug_flagsInternal
describe_lintsInternal
extra_compiler_flagsInternal

Gets a list of extra command-line flags provided by the user, as strings.

handle_explainInternal
handle_optionsInternal

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

init_rustc_env_loggerInternal

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

install_ice_hookInternal

Installs a panic hook that will print the ICE message on unexpected panics.

mainInternal
make_inputInternal
make_outputInternal
parse_crate_attrsInternal
parse_prettyInternal
print_flag_listInternal
print_wall_helpInternal
release_strInternal

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

report_iceInternal

Prints the ICE message, including backtrace and query stack.

run_compilerInternal
set_sigpipe_handlerInternal
show_content_with_pagerInternal
source_nameInternal
stdout_isattyInternal
usageInternal
versionInternal

Prints version information