Skip to content

Commit 38f9b79

Browse files
committed
fixing seperate empty arm and doc comment
1 parent 9157950 commit 38f9b79

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎compiler/rustc_attr_parsing/src/attributes/stability.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub(crate) fn parse_stability<S: Stage>(
367367
}
368368
}
369369

370-
// Read the content of a `unstable`/`rustc_const_unstable`/`rustc_default_body_unstable`
370+
/// Read the content of a `unstable`/`rustc_const_unstable`/`rustc_default_body_unstable`
371371
/// attribute, and return the feature name and its stability information.
372372
pub(crate) fn parse_unstability<S: Stage>(
373373
cx: &AcceptContext<'_, '_, S>,

‎compiler/rustc_passes/src/check_attr.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)