Skip to content

Commit f9a8d26

Browse files
committed
fix for latest rust nightly
1 parent f18fc27 commit f9a8d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>, use_start_fn: bo
112112
);
113113
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
114114
fn visit_item(&mut self, i: &'hir hir::Item) {
115-
if let hir::Item_::ItemFn(.., body_id) = i.node {
115+
if let hir::ItemKind::Fn(.., body_id) = i.node {
116116
if i.attrs.iter().any(|attr| {
117117
attr.name() == "test"
118118
})

0 commit comments

Comments
 (0)