rustc_interface::passes

Function check_for_rustc_errors_attr

Source
fn check_for_rustc_errors_attr(tcx: TyCtxt<'_>)
Expand description

Check for the #[rustc_error] annotation, which forces an error in codegen. This is used to write UI tests that actually test that compilation succeeds without reporting an error.