From 3fd4fd0388612942fedd3bef745085ac45d3b73c Mon Sep 17 00:00:00 2001 From: yvt Date: Wed, 12 Oct 2022 12:45:41 +0900 Subject: [PATCH] fix(script_plguins): `rustc_ast::ast::AttrKind::Normal` fields are now boxed --- components/script_plugins/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 5ff11efd1bd..bad98739450 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -83,10 +83,10 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool { attrs.iter().any(|attr| { matches!( &attr.kind, - AttrKind::Normal(attr_item, _) - if attr_item.path.segments.len() == 2 && - attr_item.path.segments[0].ident.name == sym.unrooted_must_root_lint && - attr_item.path.segments[1].ident.name == name + AttrKind::Normal(normal) + if normal.item.path.segments.len() == 2 && + normal.item.path.segments[0].ident.name == sym.unrooted_must_root_lint && + normal.item.path.segments[1].ident.name == name ) }) }