Skip to content

Commit 63ea13a

Browse files
committed
fix miri-rustc-tests
1 parent 28e814a commit 63ea13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri-rustc-tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
4646
struct Visitor<'tcx>(TyCtxt<'tcx>);
4747
impl<'tcx, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'tcx> {
4848
fn visit_item(&mut self, i: &'hir hir::Item) {
49-
if let hir::ItemKind::Fn(.., body_id) = i.node {
49+
if let hir::ItemKind::Fn(.., body_id) = i.kind {
5050
if i.attrs.iter().any(|attr| attr.check_name(syntax::symbol::sym::test)) {
5151
let config = MiriConfig {
5252
validate: true,

0 commit comments

Comments
 (0)