aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryvt <i@yvt.jp>2022-10-12 12:45:41 +0900
committeryvt <i@yvt.jp>2022-10-16 19:19:12 +0900
commit3fd4fd0388612942fedd3bef745085ac45d3b73c (patch)
tree6e4b7959f22b874d4c85939392e02d7a4ccf58ef
parent52ebde8e162523e993bfccc11a0a60d91cc1ee67 (diff)
downloadservo-3fd4fd0388612942fedd3bef745085ac45d3b73c.tar.gz
servo-3fd4fd0388612942fedd3bef745085ac45d3b73c.zip
fix(script_plguins): `rustc_ast::ast::AttrKind::Normal` fields are now boxed
<https://github.com/rust-lang/rust/pull/100441>
-rw-r--r--components/script_plugins/lib.rs8
1 files 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
)
})
}