diff options
| author | bors <bors@rust-lang.org> | 2024-06-13 10:16:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-13 10:16:48 +0000 |
| commit | 66ec9772b54ab19ef2e3b752247215325fe4a404 (patch) | |
| tree | e5f8be86336c8f625d56eb36b4d4ca85e033e841 /tests/ui/patchable-function-entry/patchable-function-entry-attribute.rs | |
| parent | 51ea7e831881446d513e6738fc15a49630ac4a72 (diff) | |
| parent | a29d99de3b7247930d8517dd27243ce4e15e0014 (diff) | |
| download | rust-66ec9772b54ab19ef2e3b752247215325fe4a404.tar.gz rust-66ec9772b54ab19ef2e3b752247215325fe4a404.zip | |
Auto merge of #17412 - davidhewitt:source-loop-cycle-bail, r=Veykril
fix: add a breaker to avoid infinite loops from source root cycles See #17409 This patch prevents infinite looping from cycles by giving up if the number of source roots checked for a config value reaches the total number of source roots. Alternative more precise options include creating a set of all source roots visited and giving up as soon as a cycle is encountered, but I wasn't sure how costly an allocation would be here for performance. Can confirm that locally this fixes the problem for me.
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-attribute.rs')
0 files changed, 0 insertions, 0 deletions
