diff options
| author | bors <bors@rust-lang.org> | 2024-06-20 08:58:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-20 08:58:44 +0000 |
| commit | 1d0d439168ce4efcfabbceb6ad756aa044da7423 (patch) | |
| tree | 0bacedd24ba59ebee584a11d9ad9d56724da30b4 /src/tools/rust-analyzer | |
| parent | e8717758b810a58fb574a8bafddba3648e9882bb (diff) | |
| parent | 2f4e555407e54c57ea277a87609434304fc4c520 (diff) | |
| download | rust-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.rs | 1 |
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; } |
