Skip to content

Commit

Permalink
Auto merge of #17461 - Veykril:drop-flycheck-recv, r=Veykril
Browse files Browse the repository at this point in the history
fix: Fix flycheck panicking when cancelled

Fixes rust-lang/rust-analyzer#17445
  • Loading branch information
bors committed Jun 20, 2024
2 parents e871775 + 2f4e555 commit 1d0d439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/rust-analyzer/crates/flycheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ impl FlycheckActor {
"did cancel flycheck"
);
command_handle.cancel();
self.command_receiver.take();
self.report_progress(Progress::DidCancel);
self.status = FlycheckStatus::Finished;
}
Expand Down

0 comments on commit 1d0d439

Please sign in to comment.