about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-09-15 21:19:57 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-09-27 16:41:04 +0200
commitc3a6c963e5f18677a3680e6066a2b9a5b90dfd21 (patch)
treec6b24788a88a5c88a3d656d5c65b9e7f55141d6b /tests/debuginfo/enum-thinlto.rs
parent2b61be297568015de5d038f31a304c7a69679bc7 (diff)
downloadrust-c3a6c963e5f18677a3680e6066a2b9a5b90dfd21.tar.gz
rust-c3a6c963e5f18677a3680e6066a2b9a5b90dfd21.zip
Amalgamate file changes for the same file ids in process_changes
When receiving multiple change events for a single file id where the
last change is a delete the server panics, as it tries to access the
file contents of a deleted file. This occurs due to the VFS changes and
the in memory file contents being updated immediately, while
`process_changes` processes the events afterwards in sequence which no
longer works as it will only observe the final file contents. By
folding these events together, we will no longer try to process these
intermediate changes, as they aren't relevant anyways.

Potentially fixes https://github.com/rust-lang/rust-analyzer/issues/13236
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions