about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-18 07:38:32 +0000
committerbors <bors@rust-lang.org>2024-04-18 07:38:32 +0000
commit062e1b9b81542680afde1aa47fa5316ac5133461 (patch)
treefe9115d2f550701e1475f99c2c2ec8e48b8107cb /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parent46702ffc1a02a2ac153f1d1ce619ec917af8f3a6 (diff)
parentbd133eecdaed3bc72f35bd87e72bd540a666e84d (diff)
downloadrust-062e1b9b81542680afde1aa47fa5316ac5133461.tar.gz
rust-062e1b9b81542680afde1aa47fa5316ac5133461.zip
Auto merge of #17093 - Wilfred:vfs_ignore_symlink_cycles, r=Veykril
fix: VFS should not walk circular symlinks

As of #6246, rust-analyzer follows symlinks. This can introduce an infinite loop if symlinks point to parent directories.

Considering that #6246 was added in 2020 without many bug reports, this is clearly a rare occurrence. However, I am observing rust-analyzer hang on projects that have symlinks of the form:

```
test/a_symlink -> ../../
```

Ignore symlinks that only point to the parent directories, as this is more robust but still allows typical symlink usage patterns.
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions