Function rustc_driver::monitor [−][src]
pub fn monitor<F: FnOnce() + Send + 'static>(
f: F
) -> Result<(), CompilationFailure>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Run a procedure which will detect panics in the compiler and print nicer error messages rather than just failing the test.
The diagnostic emitter yielded to the procedure should be used for reporting errors of the compiler.