[][src]Function rustc_driver::catch_with_exit_code

pub fn catch_with_exit_code(f: impl FnOnce() -> Result<()>) -> i32
⚙️ 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.

Variant of catch_fatal_errors for the interface::Result return type that also computes the exit code.