Skip to content

Commit 10078dd

Browse files
committed
Reenable the rustc tester
1 parent dbadf1e commit 10078dd

File tree

3 files changed

+131
-83
lines changed

3 files changed

+131
-83
lines changed

rustc_tests/Cargo.lock

Lines changed: 127 additions & 76 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: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern crate getopts;
44
extern crate rustc;
55
extern crate rustc_driver;
66
extern crate rustc_errors;
7-
extern crate rustc_trans_utils;
7+
extern crate rustc_codegen_utils;
88
extern crate syntax;
99

1010
use std::path::{PathBuf, Path};
@@ -19,7 +19,7 @@ use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
1919
use rustc_driver::driver::{CompileState, CompileController};
2020
use rustc::session::config::{self, Input, ErrorOutputType};
2121
use rustc::hir::{self, itemlikevisit};
22-
use rustc_trans_utils::trans_crate::TransCrate;
22+
use rustc_codegen_utils::codegen_backend::CodegenBackend;
2323
use rustc::ty::TyCtxt;
2424
use syntax::ast;
2525

@@ -53,7 +53,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
5353
}
5454
fn late_callback(
5555
&mut self,
56-
trans: &TransCrate,
56+
trans: &CodegenBackend,
5757
matches: &getopts::Matches,
5858
sess: &Session,
5959
cstore: &CrateStore,
@@ -104,9 +104,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>) {
104104
state.hir_crate.unwrap().visit_all_item_likes(&mut Visitor(tcx, state));
105105
} else if let Some((entry_node_id, _, _)) = *state.session.entry_fn.borrow() {
106106
let entry_def_id = tcx.hir.local_def_id(entry_node_id);
107-
let start_wrapper = tcx.lang_items().start_fn().and_then(|start_fn|
108-
if tcx.is_mir_available(start_fn) { Some(start_fn) } else { None });
109-
miri::eval_main(tcx, entry_def_id, start_wrapper);
107+
miri::eval_main(tcx, entry_def_id, None);
110108

111109
state.session.abort_if_errors();
112110
} else {

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ pub fn eval_main<'a, 'tcx: 'a>(
265265
}
266266
}
267267
}
268-
::std::process::exit(1);
269268
}
270269
}
271270
}

0 commit comments

Comments
 (0)