1
Fork 0
This commit is contained in:
yukang 2022-08-03 12:19:21 +08:00
parent 0d1b832667
commit 4a5e83c939
2 changed files with 2 additions and 4 deletions

View file

@ -146,9 +146,7 @@ impl CheckAttrVisitor<'_> {
| sym::stable
| sym::rustc_allowed_through_unstable_modules
| sym::rustc_promotable => self.check_stability_promotable(&attr, span, target),
sym::link_ordinal => {
self.check_link_ordinal(&attr, span, target)
},
sym::link_ordinal => self.check_link_ordinal(&attr, span, target),
_ => true,
};
is_valid &= attr_is_valid;

View file

@ -555,7 +555,7 @@ pub struct ConstTrait {
#[error(passes::link_ordinal)]
pub struct LinkOrdinal {
#[primary_span]
pub attr_span: Span
pub attr_span: Span,
}
#[derive(SessionDiagnostic)]