Upgrade to rustc 1.37.0-nightly (04a3dd8a8 2019-06-18)

This commit is contained in:
Simon Sapin 2019-06-19 15:45:57 +02:00
parent 97ad913dc2
commit 112f1ddeba
3 changed files with 4 additions and 10 deletions

View file

@ -192,10 +192,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WebIdlPass {
let item = match cx.tcx.hir().get_by_hir_id(id) {
hir::Node::Item(item) => item,
_ => cx
.tcx
.hir()
.expect_item_by_hir_id(cx.tcx.hir().get_parent_item(id)),
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
};
let parent_name = def.fields().iter().next().map(|field| {