1
Fork 0

Add Attribute::meta_kind

This commit is contained in:
Jakub Beránek 2021-12-26 16:47:08 +01:00
parent f8abed9ed4
commit 047275a682
No known key found for this signature in database
GPG key ID: DBC553E540C2F619
4 changed files with 32 additions and 11 deletions

View file

@ -484,7 +484,7 @@ pub(crate) fn check_attr_crate_type(
return;
}
if let ast::MetaItemKind::NameValue(spanned) = a.meta().unwrap().kind {
if let ast::MetaItemKind::NameValue(spanned) = a.meta_kind().unwrap() {
let span = spanned.span;
let lev_candidate = find_best_match_for_name(
&CRATE_TYPES.iter().map(|(k, _)| *k).collect::<Vec<_>>(),