Auto merge of #17461 - Veykril:drop-flycheck-recv, r=Veykril

fix: Fix flycheck panicking when cancelled

Fixes https://github.com/rust-lang/rust-analyzer/issues/17445
This commit is contained in:
bors 2024-06-20 08:58:44 +00:00
commit 180c2292f9

View file

@ -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;
}