@@ -188,9 +188,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
188188 | [ sym:: rustc_must_implement_one_of, ..]
189189 | [ sym:: rustc_deny_explicit_impl, ..]
190190 | [ sym:: const_trait, ..] => self . check_must_be_applied_to_trait ( attr, span, target) ,
191- [ sym:: cmse_nonsecure_entry, ..] => {
192- self . check_cmse_nonsecure_entry ( hir_id, attr, span, target)
193- }
194191 [ sym:: collapse_debuginfo, ..] => self . check_collapse_debuginfo ( attr, span, target) ,
195192 [ sym:: must_not_suspend, ..] => self . check_must_not_suspend ( attr, span, target) ,
196193 [ sym:: must_use, ..] => self . check_must_use ( hir_id, attr, target) ,
@@ -563,27 +560,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
563560 }
564561 }
565562
566- /// Checks if `#[cmse_nonsecure_entry]` is applied to a function definition.
567- fn check_cmse_nonsecure_entry (
568- & self ,
569- hir_id : HirId ,
570- attr : & Attribute ,
571- span : Span ,
572- target : Target ,
573- ) {
574- match target {
575- Target :: Fn
576- | Target :: Method ( MethodKind :: Trait { body : true } | MethodKind :: Inherent ) => { }
577- _ => {
578- self . dcx ( ) . emit_err ( errors:: AttrShouldBeAppliedToFn {
579- attr_span : attr. span ,
580- defn_span : span,
581- on_crate : hir_id == CRATE_HIR_ID ,
582- } ) ;
583- }
584- }
585- }
586-
587563 /// Debugging aid for `object_lifetime_default` query.
588564 fn check_object_lifetime_default ( & self , hir_id : HirId ) {
589565 let tcx = self . tcx ;
0 commit comments