Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03)

This commit is contained in:
Josh Matthews 2019-06-24 11:11:42 -04:00 committed by Simon Sapin
parent a2b76b0169
commit 43a75011be
7 changed files with 14 additions and 6 deletions

View file

@ -151,7 +151,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
_gen: &'tcx hir::Generics,
id: HirId,
) {
let item = match cx.tcx.hir().get_by_hir_id(id) {
let item = match cx.tcx.hir().get(id) {
hir::Node::Item(item) => item,
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
};