Function rustc_codegen_utils::check_for_rustc_errors_attr [−][src]
pub fn check_for_rustc_errors_attr(tcx: TyCtxt)
🔬 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?
check for the #[rustc_error] annotation, which forces an error in codegen. This is used to write compile-fail tests that actually test that compilation succeeds without reporting an error.