Function rustc_driver::catch_with_exit_code

source ·
pub fn catch_with_exit_code(
    f: impl FnOnce() -> Result<(), ErrorGuaranteed>
) -> i32
Expand description

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