Skip to content

Commit e365ae2

Browse files
committed
Fixed build with the newest nightly.
1 parent bbcc100 commit e365ae2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bin/rust_semverver.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ extern crate log;
88
extern crate rustc;
99
extern crate rustc_driver;
1010
extern crate rustc_errors;
11+
extern crate rustc_trans_utils;
1112
extern crate semverver;
1213
extern crate syntax;
1314

@@ -20,6 +21,8 @@ use rustc::session::config::{Input, ErrorOutputType};
2021

2122
use rustc_driver::{driver, CompilerCalls, RustcDefaultCalls, Compilation};
2223

24+
use rustc_trans_utils::trans_crate::TransCrate;
25+
2326
use std::path::PathBuf;
2427
use std::process::Command;
2528

@@ -111,6 +114,7 @@ impl<'a> CompilerCalls<'a> for SemVerVerCompilerCalls {
111114
}
112115

113116
fn late_callback(&mut self,
117+
trans_crate: &TransCrate,
114118
matches: &getopts::Matches,
115119
sess: &Session,
116120
cstore: &CrateStore,
@@ -120,7 +124,7 @@ impl<'a> CompilerCalls<'a> for SemVerVerCompilerCalls {
120124
-> Compilation {
121125
debug!("running rust-semverver late_callback");
122126
self.default
123-
.late_callback(matches, sess, cstore, input, odir, ofile)
127+
.late_callback(trans_crate, matches, sess, cstore, input, odir, ofile)
124128
}
125129

126130
fn build_controller(&mut self,

0 commit comments

Comments
 (0)