about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/diagnostics.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-11-12 20:15:14 +0800
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-11-12 20:15:14 +0800
commit66557270419400a2d104833f3ff6dd6a55210543 (patch)
tree631b73a25e051c4f6f4829de554add92f50374e4 /compiler/rustc_resolve/src/diagnostics.rs
parente4c23daeb461ac02413eb36c8cefcc5530638a05 (diff)
downloadrust-66557270419400a2d104833f3ff6dd6a55210543.tar.gz
rust-66557270419400a2d104833f3ff6dd6a55210543.zip
rustc_feature: Convert `BuiltinAttribute` from tuple to a struct
Diffstat (limited to 'compiler/rustc_resolve/src/diagnostics.rs')
-rw-r--r--compiler/rustc_resolve/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs
index 094a5ed7bfb..c46a18e5103 100644
--- a/compiler/rustc_resolve/src/diagnostics.rs
+++ b/compiler/rustc_resolve/src/diagnostics.rs
@@ -731,7 +731,7 @@ impl<'a> Resolver<'a> {
                         suggestions.extend(
                             BUILTIN_ATTRIBUTES
                                 .iter()
-                                .map(|(name, ..)| TypoSuggestion::typo_from_res(*name, res)),
+                                .map(|attr| TypoSuggestion::typo_from_res(attr.name, res)),
                         );
                     }
                 }