Skip to content

Commit 9143a69

Browse files
authored
Merge pull request #386 from mati865/rustup
Rustup
2 parents 9d8945e + d4b98b2 commit 9143a69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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::Item_::ItemFn(.., 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::path::PathBuf;
2525
struct MiriCompilerCalls {
2626
default: Box<RustcDefaultCalls>,
2727
/// Whether to begin interpretation at the start_fn lang item or not
28-
///
28+
///
2929
/// If false, the interpretation begins at the `main` function
3030
start_fn: bool,
3131
}
@@ -115,7 +115,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>, use_start_fn: bo
115115
);
116116
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
117117
fn visit_item(&mut self, i: &'hir hir::Item) {
118-
if let hir::Item_::ItemFn(_, _, _, _, _, body_id) = i.node {
118+
if let hir::Item_::ItemFn(.., body_id) = i.node {
119119
if i.attrs.iter().any(|attr| {
120120
attr.name() == "test"
121121
})

0 commit comments

Comments
 (0)