Function rustc_typeck::collect::check_target_feature_trait_unsafe[][src]

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.