From f9a8d2618e0f6e7f8070a6b367bcdf101df75481 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 16 Jul 2018 22:26:32 +0200 Subject: [PATCH] fix for latest rust nightly --- src/bin/miri.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/miri.rs b/src/bin/miri.rs index 51c53b4af27..29e2e50d5d6 100644 --- a/src/bin/miri.rs +++ b/src/bin/miri.rs @@ -112,7 +112,7 @@ struct Visitor<'a, 'tcx: 'a>( ); impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> { fn visit_item(&mut self, i: &'hir hir::Item) { - if let hir::Item_::ItemFn(.., body_id) = i.node { + if let hir::ItemKind::Fn(.., body_id) = i.node { if i.attrs.iter().any(|attr| { attr.name() == "test" })