diff options
author | Josh Matthews <josh@joshmatthews.net> | 2021-12-02 17:05:19 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-12-02 17:05:19 -0500 |
commit | 898f66bcd009187a4173cbcf8f566f2594cb7c57 (patch) | |
tree | eb95cf2b3924b5d14bb11aae1dc7532f740ea7f4 /components/script_plugins/lib.rs | |
parent | e46d952efdf8c3c0a10cec35c22636d750347c56 (diff) | |
download | servo-898f66bcd009187a4173cbcf8f566f2594cb7c57.tar.gz servo-898f66bcd009187a4173cbcf8f566f2594cb7c57.zip |
Update rustc.
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r-- | components/script_plugins/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index ed4afc96f8f..11d3b70609d 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -233,7 +233,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)); + let parent_item = map.expect_item(map.get_parent_item(var.id).expect_owner()); let attrs = cx.tcx.hir().attrs(parent_item.hir_id()); if !has_lint_attr(&self.symbols, &attrs, self.symbols.must_root) { match var.data { |