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 { diff --git a/rust-toolchain b/rust-toolchain index 19e67729bc3..9930cb8e58d 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2022-10-13 +nightly-2022-11-20