@@ -8,6 +8,7 @@ extern crate log;
8
8
extern crate rustc;
9
9
extern crate rustc_driver;
10
10
extern crate rustc_errors;
11
+ extern crate rustc_trans_utils;
11
12
extern crate semverver;
12
13
extern crate syntax;
13
14
@@ -20,6 +21,8 @@ use rustc::session::config::{Input, ErrorOutputType};
20
21
21
22
use rustc_driver:: { driver, CompilerCalls , RustcDefaultCalls , Compilation } ;
22
23
24
+ use rustc_trans_utils:: trans_crate:: TransCrate ;
25
+
23
26
use std:: path:: PathBuf ;
24
27
use std:: process:: Command ;
25
28
@@ -111,6 +114,7 @@ impl<'a> CompilerCalls<'a> for SemVerVerCompilerCalls {
111
114
}
112
115
113
116
fn late_callback ( & mut self ,
117
+ trans_crate : & TransCrate ,
114
118
matches : & getopts:: Matches ,
115
119
sess : & Session ,
116
120
cstore : & CrateStore ,
@@ -120,7 +124,7 @@ impl<'a> CompilerCalls<'a> for SemVerVerCompilerCalls {
120
124
-> Compilation {
121
125
debug ! ( "running rust-semverver late_callback" ) ;
122
126
self . default
123
- . late_callback ( matches, sess, cstore, input, odir, ofile)
127
+ . late_callback ( trans_crate , matches, sess, cstore, input, odir, ofile)
124
128
}
125
129
126
130
fn build_controller ( & mut self ,
0 commit comments