@@ -16,6 +16,7 @@ extern crate rustc_resolve;
16
16
extern crate rustc_save_analysis;
17
17
extern crate syntax;
18
18
19
+ use self :: rustc:: middle:: cstore:: CrateStore ;
19
20
use self :: rustc:: session:: Session ;
20
21
use self :: rustc:: session:: config:: { self , Input , ErrorOutputType } ;
21
22
use self :: rustc_driver:: { RustcDefaultCalls , run_compiler, run, Compilation , CompilerCalls } ;
@@ -128,11 +129,12 @@ impl<'a> CompilerCalls<'a> for RlsRustcCalls {
128
129
fn late_callback ( & mut self ,
129
130
matches : & getopts:: Matches ,
130
131
sess : & Session ,
132
+ cstore : & CrateStore ,
131
133
input : & Input ,
132
134
odir : & Option < PathBuf > ,
133
135
ofile : & Option < PathBuf > )
134
136
-> Compilation {
135
- self . default_calls . late_callback ( matches, sess, input, odir, ofile)
137
+ self . default_calls . late_callback ( matches, sess, cstore , input, odir, ofile)
136
138
}
137
139
138
140
fn build_controller ( & mut self ,
@@ -145,7 +147,7 @@ impl<'a> CompilerCalls<'a> for RlsRustcCalls {
145
147
146
148
result. after_analysis . callback = Box :: new ( move |state| {
147
149
// There are two ways to move the data from rustc to the RLS, either
148
- // directly or by serialising and deserialising. We only want to do
150
+ // directly or by serialising and deserialising. We only want to do
149
151
// the latter when there are compatibility issues between crates.
150
152
151
153
// This version passes via JSON, it is more easily backwards compatible.
0 commit comments