aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-03-26 15:12:55 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-03-26 15:12:55 +0100
commit389e69bafeb24d9d0b7153080970f1744b4854ae (patch)
treefbcfa9a8e59dd72c1862be75584d5df85a632447 /components/script_plugins
parentc9b5b8fad342c73790ec8348b7b6ab5f2129d223 (diff)
downloadservo-389e69bafeb24d9d0b7153080970f1744b4854ae.tar.gz
servo-389e69bafeb24d9d0b7153080970f1744b4854ae.zip
Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)
Diffstat (limited to 'components/script_plugins')
-rw-r--r--components/script_plugins/unrooted_must_root.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs
index c55fcebe405..4babfe49f3a 100644
--- a/components/script_plugins/unrooted_must_root.rs
+++ b/components/script_plugins/unrooted_must_root.rs
@@ -141,7 +141,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
let ref map = cx.tcx.hir();
if map
- .expect_item_by_hir_id(map.get_parent_item(var.node.data.hir_id()))
+ .expect_item_by_hir_id(map.get_parent_item(var.node.id))
.attrs
.iter()
.all(|a| !a.check_name("must_root"))