Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)

This commit is contained in:
Simon Sapin 2019-03-26 15:12:55 +01:00
parent c9b5b8fad3
commit 389e69bafe
7 changed files with 17 additions and 13 deletions

View file

@ -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"))