Skip to content

Commit 911aedf

Browse files
authored
Merge pull request #410 from RalfJung/rustup
fix for latest rust nightly
2 parents f18fc27 + 72756b7 commit 911aedf

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

rustc_tests/Cargo.lock

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustc_tests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>) {
9090
struct Visitor<'a, 'tcx: 'a>(TyCtxt<'a, 'tcx, 'tcx>, &'a CompileState<'a, 'tcx>);
9191
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
9292
fn visit_item(&mut self, i: &'hir hir::Item) {
93-
if let hir::Item_::ItemFn(.., body_id) = i.node {
93+
if let hir::ItemKind::Fn(.., body_id) = i.node {
9494
if i.attrs.iter().any(|attr| attr.name() == "test") {
9595
let did = self.0.hir.body_owner_def_id(body_id);
9696
println!("running test: {}", self.0.def_path_debug_str(did));

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)