Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

rustup https://github.com/rust-lang/rust/pull/62679/ #1517

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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