@@ -183,9 +183,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
183
183
| [ sym:: rustc_must_implement_one_of, ..]
184
184
| [ sym:: rustc_deny_explicit_impl, ..]
185
185
| [ 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
- }
189
186
[ sym:: collapse_debuginfo, ..] => self . check_collapse_debuginfo ( attr, span, target) ,
190
187
[ sym:: must_not_suspend, ..] => self . check_must_not_suspend ( attr, span, target) ,
191
188
[ sym:: must_use, ..] => self . check_must_use ( hir_id, attr, target) ,
@@ -561,27 +558,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
561
558
}
562
559
}
563
560
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
-
585
561
/// Debugging aid for `object_lifetime_default` query.
586
562
fn check_object_lifetime_default ( & self , hir_id : HirId ) {
587
563
let tcx = self . tcx ;
0 commit comments