diff options
| author | Wilfred Hughes <wilfred@meta.com> | 2024-05-08 16:38:06 -0700 |
|---|---|---|
| committer | Wilfred Hughes <wilfred@meta.com> | 2024-05-08 16:53:30 -0700 |
| commit | a3ed9fe95506529494895f71321c5332583ad2ba (patch) | |
| tree | 128d5e79c2e42e0e644270a5448657fc14adab42 /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs | |
| parent | 24ef42aafc03cf1bf4298a0fec1ca313979169d7 (diff) | |
| download | rust-a3ed9fe95506529494895f71321c5332583ad2ba.tar.gz rust-a3ed9fe95506529494895f71321c5332583ad2ba.zip | |
fix: Report both IO errors and main_loop errors
If rust-analyzer receives a malformed LSP request, the IO thread terminates with a meaningful error, but then closes the channel. Once the channel has closed, the main_loop also terminates, but it only has RecvError and can't show a meaningful error. As a result, rust-analyzer would incorrectly claim that the client forgot to shutdown. ``` $ buggy_lsp_client | rust-analyzer Error: client exited without proper shutdown sequence ``` Instead, include both error messages when the server shuts down.
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions
