@@ -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) ,
@@ -555,27 +552,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
555
552
}
556
553
}
557
554
558
- /// Checks if `#[cmse_nonsecure_entry]` is applied to a function definition.
559
- fn check_cmse_nonsecure_entry (
560
- & self ,
561
- hir_id : HirId ,
562
- attr : & Attribute ,
563
- span : Span ,
564
- target : Target ,
565
- ) {
566
- match target {
567
- Target :: Fn
568
- | Target :: Method ( MethodKind :: Trait { body : true } | MethodKind :: Inherent ) => { }
569
- _ => {
570
- self . dcx ( ) . emit_err ( errors:: AttrShouldBeAppliedToFn {
571
- attr_span : attr. span ,
572
- defn_span : span,
573
- on_crate : hir_id == CRATE_HIR_ID ,
574
- } ) ;
575
- }
576
- }
577
- }
578
-
579
555
/// Debugging aid for `object_lifetime_default` query.
580
556
fn check_object_lifetime_default ( & self , hir_id : HirId ) {
581
557
let tcx = self . tcx ;
0 commit comments