about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2021-12-26 16:47:08 +0100
committerJakub Beránek <berykubik@gmail.com>2021-12-26 16:56:34 +0100
commit047275a68266033b2d7646e5380d8491ec550677 (patch)
treea1476344223e8db5940eec42afa1f9523017fe5a /compiler/rustc_interface/src
parentf8abed9ed48bace6be0087bcd44ed534e239b8d8 (diff)
downloadrust-047275a68266033b2d7646e5380d8491ec550677.tar.gz
rust-047275a68266033b2d7646e5380d8491ec550677.zip
Add Attribute::meta_kind
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
index b04f91634cc..cb51555f5ca 100644
--- a/compiler/rustc_interface/src/util.rs
+++ b/compiler/rustc_interface/src/util.rs
@@ -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<_>>(),