about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorWilfred Hughes <wilfred@meta.com>2024-05-08 16:38:06 -0700
committerWilfred Hughes <wilfred@meta.com>2024-05-08 16:53:30 -0700
commita3ed9fe95506529494895f71321c5332583ad2ba (patch)
tree128d5e79c2e42e0e644270a5448657fc14adab42 /tests/codegen/patchable-function-entry
parent24ef42aafc03cf1bf4298a0fec1ca313979169d7 (diff)
downloadrust-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/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions