aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2022-11-21 00:59:32 -0500
committerJosh Matthews <josh@joshmatthews.net>2022-11-21 00:59:32 -0500
commit801dfeff172b62cb6641d9f55503b79c8adc3fd9 (patch)
tree485106cfa2781a96228d71bac7ceb5d1e5de0358 /components/script_plugins/lib.rs
parent0847d2b316c8adb97128d434fb95ec730cb76e8e (diff)
downloadservo-801dfeff172b62cb6641d9f55503b79c8adc3fd9.tar.gz
servo-801dfeff172b62cb6641d9f55503b79c8adc3fd9.zip
Update to latest nightly.
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index 396a63dca8a..b1e1844ad71 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -232,7 +232,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
/// must be #[unrooted_must_root_lint::must_root] themselves
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant) {
let ref map = cx.tcx.hir();
- let parent_item = map.expect_item(map.get_parent_item(var.id).def_id);
+ let parent_item = map.expect_item(map.get_parent_item(var.hir_id).def_id);
let attrs = cx.tcx.hir().attrs(parent_item.hir_id());
if !has_lint_attr(&self.symbols, &attrs, self.symbols.must_root) {
match var.data {