fix tidy
This commit is contained in:
parent
0d1b832667
commit
4a5e83c939
2 changed files with 2 additions and 4 deletions
|
@ -146,9 +146,7 @@ impl CheckAttrVisitor<'_> {
|
||||||
| sym::stable
|
| sym::stable
|
||||||
| sym::rustc_allowed_through_unstable_modules
|
| sym::rustc_allowed_through_unstable_modules
|
||||||
| sym::rustc_promotable => self.check_stability_promotable(&attr, span, target),
|
| sym::rustc_promotable => self.check_stability_promotable(&attr, span, target),
|
||||||
sym::link_ordinal => {
|
sym::link_ordinal => self.check_link_ordinal(&attr, span, target),
|
||||||
self.check_link_ordinal(&attr, span, target)
|
|
||||||
},
|
|
||||||
_ => true,
|
_ => true,
|
||||||
};
|
};
|
||||||
is_valid &= attr_is_valid;
|
is_valid &= attr_is_valid;
|
||||||
|
|
|
@ -555,7 +555,7 @@ pub struct ConstTrait {
|
||||||
#[error(passes::link_ordinal)]
|
#[error(passes::link_ordinal)]
|
||||||
pub struct LinkOrdinal {
|
pub struct LinkOrdinal {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
pub attr_span: Span
|
pub attr_span: Span,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(SessionDiagnostic)]
|
#[derive(SessionDiagnostic)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue