[][src]Trait rustc_driver::Callbacks

pub trait Callbacks {
    fn config(&mut self, _config: &mut Config) { ... }
fn after_parsing(&mut self, _compiler: &Compiler) -> bool { ... }
fn after_analysis(&mut self, _compiler: &Compiler) -> bool { ... } }
⚙️ 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.

Provided methods

fn config(&mut self, _config: &mut Config)

⚙️ 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.

Called before creating the compiler instance

fn after_parsing(&mut self, _compiler: &Compiler) -> bool

⚙️ 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.

Called after parsing and returns true to continue execution

fn after_analysis(&mut self, _compiler: &Compiler) -> bool

⚙️ 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.

Called after analysis and returns true to continue execution

Loading content...

Implementors

impl Callbacks for DefaultCallbacks[src]

impl Callbacks for TimePassesCallbacks[src]

Loading content...