Crate rustc_driver

source ·

Modules

  • Infrastructure for compiler plugins.
  • The various pretty-printing routines.

Macros

Structs

Enums

Constants

Statics

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 an env var other than RUSTC_LOG.
  • This allows tools to enable rust logging without having to magically match rustc’s tracing crate version.
  • Installs a panic hook that will print the ICE message on unexpected panics.
  • Prints the ICE message, including query stack, but without backtrace.