@@ -37,7 +37,7 @@ use rls_vfs::Vfs;
37
37
38
38
use self :: rustc:: session:: config:: Input ;
39
39
use self :: rustc:: session:: Session ;
40
- use self :: rustc_driver:: run_compiler;
40
+ use self :: rustc_driver:: { run_compiler, Compilation } ;
41
41
use self :: rustc_interface:: interface;
42
42
use self :: rustc_save_analysis as save;
43
43
use self :: rustc_save_analysis:: CallbackHandler ;
@@ -155,18 +155,18 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
155
155
config. opts . debugging_opts . save_analysis = true ;
156
156
}
157
157
158
- fn after_parsing ( & mut self , _compiler : & interface:: Compiler ) -> bool {
158
+ fn after_parsing ( & mut self , _compiler : & interface:: Compiler ) -> Compilation {
159
159
#[ cfg( feature = "clippy" ) ]
160
160
{
161
161
if self . clippy_preference != ClippyPreference :: Off {
162
162
clippy_after_parse_callback ( _compiler) ;
163
163
}
164
164
}
165
- // Continue execution
166
- true
165
+
166
+ Compilation :: Continue
167
167
}
168
168
169
- fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> bool {
169
+ fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> Compilation {
170
170
let sess = compiler. session ( ) ;
171
171
let input = compiler. input ( ) ;
172
172
let crate_name = compiler. crate_name ( ) . unwrap ( ) . peek ( ) . clone ( ) ;
@@ -228,7 +228,7 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
228
228
) ;
229
229
} ) ;
230
230
231
- true
231
+ Compilation :: Continue
232
232
}
233
233
}
234
234
0 commit comments