diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-11-12 20:15:14 +0800 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-11-12 20:15:14 +0800 |
| commit | 66557270419400a2d104833f3ff6dd6a55210543 (patch) | |
| tree | 631b73a25e051c4f6f4829de554add92f50374e4 /compiler/rustc_resolve/src | |
| parent | e4c23daeb461ac02413eb36c8cefcc5530638a05 (diff) | |
| download | rust-66557270419400a2d104833f3ff6dd6a55210543.tar.gz rust-66557270419400a2d104833f3ff6dd6a55210543.zip | |
rustc_feature: Convert `BuiltinAttribute` from tuple to a struct
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
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)), ); } } |
