@@ -188,9 +188,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
188
188
| [ sym:: rustc_must_implement_one_of, ..]
189
189
| [ sym:: rustc_deny_explicit_impl, ..]
190
190
| [ 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
- }
194
191
[ sym:: collapse_debuginfo, ..] => self . check_collapse_debuginfo ( attr, span, target) ,
195
192
[ sym:: must_not_suspend, ..] => self . check_must_not_suspend ( attr, span, target) ,
196
193
[ sym:: must_use, ..] => self . check_must_use ( hir_id, attr, target) ,
@@ -563,27 +560,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
563
560
}
564
561
}
565
562
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
-
587
563
/// Debugging aid for `object_lifetime_default` query.
588
564
fn check_object_lifetime_default ( & self , hir_id : HirId ) {
589
565
let tcx = self . tcx ;
0 commit comments