rustc_codegen_ssa::target_features

Function check_target_feature_trait_unsafe

Source
pub(crate) fn check_target_feature_trait_unsafe(
    tcx: TyCtxt<'_>,
    id: LocalDefId,
    attr_span: Span,
)
Expand description

Checks the function annotated with #[target_feature] is not a safe trait method implementation, reporting an error if it is.