@@ -182,9 +182,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
182
182
| [ sym:: rustc_must_implement_one_of, ..]
183
183
| [ sym:: rustc_deny_explicit_impl, ..]
184
184
| [ sym:: const_trait, ..] => self . check_must_be_applied_to_trait ( attr, span, target) ,
185
- [ sym:: cmse_nonsecure_entry, ..] => {
186
- self . check_cmse_nonsecure_entry ( hir_id, attr, span, target)
187
- }
188
185
[ sym:: collapse_debuginfo, ..] => self . check_collapse_debuginfo ( attr, span, target) ,
189
186
[ sym:: must_not_suspend, ..] => self . check_must_not_suspend ( attr, span, target) ,
190
187
[ sym:: must_use, ..] => self . check_must_use ( hir_id, attr, target) ,
@@ -556,27 +553,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
556
553
}
557
554
}
558
555
559
- /// Checks if `#[cmse_nonsecure_entry]` is applied to a function definition.
560
- fn check_cmse_nonsecure_entry (
561
- & self ,
562
- hir_id : HirId ,
563
- attr : & Attribute ,
564
- span : Span ,
565
- target : Target ,
566
- ) {
567
- match target {
568
- Target :: Fn
569
- | Target :: Method ( MethodKind :: Trait { body : true } | MethodKind :: Inherent ) => { }
570
- _ => {
571
- self . dcx ( ) . emit_err ( errors:: AttrShouldBeAppliedToFn {
572
- attr_span : attr. span ,
573
- defn_span : span,
574
- on_crate : hir_id == CRATE_HIR_ID ,
575
- } ) ;
576
- }
577
- }
578
- }
579
-
580
556
/// Debugging aid for `object_lifetime_default` query.
581
557
fn check_object_lifetime_default ( & self , hir_id : HirId ) {
582
558
let tcx = self . tcx ;
0 commit comments