Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr authored and Xanewok committed Jul 21, 2019
1 parent 8a31087 commit a49464e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,18 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
config.opts.debugging_opts.save_analysis = true;
}

fn after_parsing(&mut self, _compiler: &interface::Compiler) -> bool {
fn after_parsing(&mut self, _compiler: &interface::Compiler) -> rustc_driver::Compilation {
#[cfg(feature = "clippy")]
{
if self.clippy_preference != ClippyPreference::Off {
clippy_after_parse_callback(_compiler);
}
}
// Continue execution
true
rustc_driver::Compilation::Continue
}

fn after_analysis(&mut self, compiler: &interface::Compiler) -> bool {
fn after_analysis(&mut self, compiler: &interface::Compiler) -> rustc_driver::Compilation {
let sess = compiler.session();
let input = compiler.input();
let crate_name = compiler.crate_name().unwrap().peek().clone();
Expand Down Expand Up @@ -228,7 +228,7 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
);
});

true
rustc_driver::Compilation::Continue
}
}

Expand Down

0 comments on commit a49464e

Please sign in to comment.