Skip to content

Commit

Permalink
Fix not rechecking API usage after automatic edit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlattimore committed Sep 19, 2023
1 parent 28aed77 commit e85a694
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ impl Checker {
rpc::Request::RustcComplete(info) => {
self.record_crate_paths(info)?;
if let Some(link_info) = self.get_link_info(info) {
return self.check_linker_invocation(&link_info, check_state);
let problems = self.check_linker_invocation(&link_info, check_state)?;
if !problems.is_empty() {
// Since we found some problems, add our LinkInfo back so that if we fix the
// problems via the UI we can recheck once we have fixes.
self.outstanding_linker_invocations.push(link_info);
}
return Ok(problems);
}

Ok(ProblemList::default())
Expand Down

0 comments on commit e85a694

Please sign in to comment.