@@ -148,10 +148,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
148148 Attribute :: Parsed ( AttributeKind :: ProcMacroDerive { .. } ) => {
149149 self . check_proc_macro ( hir_id, target, ProcMacroKind :: Derive )
150150 }
151- Attribute :: Parsed (
152- AttributeKind :: Stability { .. }
153- | AttributeKind :: RustcConstStability { .. } ,
154- ) => { }
155151 Attribute :: Parsed ( AttributeKind :: Inline ( InlineAttr :: Force { .. } , ..) ) => { } // handled separately below
156152 Attribute :: Parsed ( AttributeKind :: Inline ( kind, attr_span) ) => {
157153 self . check_inline ( hir_id, * attr_span, kind, target)
@@ -297,6 +293,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
297293 | AttributeKind :: RustcCoherenceIsCore ( ..)
298294 | AttributeKind :: RustcCoinductive ( ..)
299295 | AttributeKind :: RustcConfusables { .. }
296+ | AttributeKind :: RustcConstStability { .. }
300297 | AttributeKind :: RustcConstStableIndirect
301298 | AttributeKind :: RustcConversionSuggestion
302299 | AttributeKind :: RustcDeallocator
@@ -369,6 +366,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
369366 | AttributeKind :: RustcTrivialFieldReads
370367 | AttributeKind :: RustcUnsafeSpecializationMarker ( ..)
371368 | AttributeKind :: ShouldPanic { .. }
369+ | AttributeKind :: Stability { .. }
372370 | AttributeKind :: TestRunner ( ..)
373371 | AttributeKind :: ThreadLocal
374372 | AttributeKind :: TypeLengthLimit { .. }
0 commit comments