Skip to content

Commit

Permalink
fix rustc_tests build
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 14, 2017
1 parent 7ec04cb commit ca0f063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rustc_tests/src/main.rs
Expand Up @@ -13,6 +13,7 @@ use std::io;


use rustc::session::Session;
use rustc::middle::cstore::CrateStore;
use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
use rustc_driver::driver::{CompileState, CompileController};
use rustc::session::config::{self, Input, ErrorOutputType};
Expand Down Expand Up @@ -52,11 +53,12 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
&mut self,
matches: &getopts::Matches,
sess: &Session,
cstore: &CrateStore,
input: &Input,
odir: &Option<PathBuf>,
ofile: &Option<PathBuf>
) -> Compilation {
self.default.late_callback(matches, sess, input, odir, ofile)
self.default.late_callback(matches, sess, cstore, input, odir, ofile)
}
fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> CompileController<'a> {
let mut control = self.default.build_controller(sess, matches);
Expand Down

0 comments on commit ca0f063

Please sign in to comment.