Skip to content

Commit 72756b7

Browse files
committed
also fix rustc_tests
1 parent f9a8d26 commit 72756b7

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
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));

0 commit comments

Comments
 (0)