diff options
| author | yukang <moorekang@gmail.com> | 2022-08-03 12:19:21 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2022-08-03 12:19:21 +0800 |
| commit | 4a5e83c939706e208d09eda477f3e4785ed6de02 (patch) | |
| tree | 23f0f902825972af4f44b42326100daaa3af4da8 /compiler | |
| parent | 0d1b832667e4e9cb0d44eefb5218a0545b42483b (diff) | |
| download | rust-4a5e83c939706e208d09eda477f3e4785ed6de02.tar.gz rust-4a5e83c939706e208d09eda477f3e4785ed6de02.zip | |
fix tidy
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_passes/src/errors.rs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index bbf6c72ef36..9fee28a4035 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -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; diff --git a/compiler/rustc_passes/src/errors.rs b/compiler/rustc_passes/src/errors.rs index 6cb53ab3284..cd465380867 100644 --- a/compiler/rustc_passes/src/errors.rs +++ b/compiler/rustc_passes/src/errors.rs @@ -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)] |
