TimePassesCallbacks in rustc_driver - Rust (original) (raw)
Struct TimePassesCallbacks
pub struct TimePassesCallbacks {
pub(crate) time_passes: Option<TimePassesFormat>,
}
Called before creating the compiler instance
Called after parsing the crate root. Submodules are not yet parsed when this callback is called. Return value instructs the compiler whether to continue the compilation afterwards (defaults to Compilation::Continue
)
Called after expansion. Return value instructs the compiler whether to continue the compilation afterwards (defaults to Compilation::Continue
)
Called after analysis. Return value instructs the compiler whether to continue the compilation afterwards (defaults to Compilation::Continue
)
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte