1
Fork 0

rustc_feature: Convert BuiltinAttribute from tuple to a struct

This commit is contained in:
Vadim Petrochenkov 2021-11-12 20:15:14 +08:00
parent e4c23daeb4
commit 6655727041
6 changed files with 62 additions and 44 deletions

View file

@ -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)),
);
}
}