Add Attribute::meta_kind
This commit is contained in:
parent
f8abed9ed4
commit
047275a682
4 changed files with 32 additions and 11 deletions
|
@ -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<_>>(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue