about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-20 08:58:44 +0000
committerbors <bors@rust-lang.org>2024-06-20 08:58:44 +0000
commit1d0d439168ce4efcfabbceb6ad756aa044da7423 (patch)
tree0bacedd24ba59ebee584a11d9ad9d56724da30b4 /src/tools/rust-analyzer
parente8717758b810a58fb574a8bafddba3648e9882bb (diff)
parent2f4e555407e54c57ea277a87609434304fc4c520 (diff)
downloadrust-1d0d439168ce4efcfabbceb6ad756aa044da7423.tar.gz
rust-1d0d439168ce4efcfabbceb6ad756aa044da7423.zip
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
Diffstat (limited to 'src/tools/rust-analyzer')
-rw-r--r--src/tools/rust-analyzer/crates/flycheck/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/flycheck/src/lib.rs b/src/tools/rust-analyzer/crates/flycheck/src/lib.rs
index 36be5143475..4584400e66f 100644
--- a/src/tools/rust-analyzer/crates/flycheck/src/lib.rs
+++ b/src/tools/rust-analyzer/crates/flycheck/src/lib.rs
@@ -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;
         }