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