@@ -183,9 +183,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
183183 | [ sym:: rustc_must_implement_one_of, ..]
184184 | [ sym:: rustc_deny_explicit_impl, ..]
185185 | [ sym:: const_trait, ..] => self . check_must_be_applied_to_trait ( attr, span, target) ,
186- [ sym:: cmse_nonsecure_entry, ..] => {
187- self . check_cmse_nonsecure_entry ( hir_id, attr, span, target)
188- }
189186 [ sym:: collapse_debuginfo, ..] => self . check_collapse_debuginfo ( attr, span, target) ,
190187 [ sym:: must_not_suspend, ..] => self . check_must_not_suspend ( attr, span, target) ,
191188 [ sym:: must_use, ..] => self . check_must_use ( hir_id, attr, target) ,
@@ -561,27 +558,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
561558 }
562559 }
563560
564- /// Checks if `#[cmse_nonsecure_entry]` is applied to a function definition.
565- fn check_cmse_nonsecure_entry (
566- & self ,
567- hir_id : HirId ,
568- attr : & Attribute ,
569- span : Span ,
570- target : Target ,
571- ) {
572- match target {
573- Target :: Fn
574- | Target :: Method ( MethodKind :: Trait { body : true } | MethodKind :: Inherent ) => { }
575- _ => {
576- self . dcx ( ) . emit_err ( errors:: AttrShouldBeAppliedToFn {
577- attr_span : attr. span ,
578- defn_span : span,
579- on_crate : hir_id == CRATE_HIR_ID ,
580- } ) ;
581- }
582- }
583- }
584-
585561 /// Debugging aid for `object_lifetime_default` query.
586562 fn check_object_lifetime_default ( & self , hir_id : HirId ) {
587563 let tcx = self . tcx ;
0 commit comments