Skip to content

Commit 4a5e83c

Browse files
committed
fix tidy
1 parent 0d1b832 commit 4a5e83c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: compiler/rustc_passes/src/check_attr.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ impl CheckAttrVisitor<'_> {
146146
| sym::stable
147147
| sym::rustc_allowed_through_unstable_modules
148148
| sym::rustc_promotable => self.check_stability_promotable(&attr, span, target),
149-
sym::link_ordinal => {
150-
self.check_link_ordinal(&attr, span, target)
151-
},
149+
sym::link_ordinal => self.check_link_ordinal(&attr, span, target),
152150
_ => true,
153151
};
154152
is_valid &= attr_is_valid;

Diff for: compiler/rustc_passes/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ pub struct ConstTrait {
555555
#[error(passes::link_ordinal)]
556556
pub struct LinkOrdinal {
557557
#[primary_span]
558-
pub attr_span: Span
558+
pub attr_span: Span,
559559
}
560560

561561
#[derive(SessionDiagnostic)]

0 commit comments

Comments
 (0)