fn check_for_rustc_errors_attr(tcx: TyCtxt<'_>)
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.
#[rustc_error]