diff options
| author | Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> | 2025-01-22 22:21:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 22:21:02 +0100 |
| commit | 2eef052f04de27abf16e8acdd4f2fa9b144b8b00 (patch) | |
| tree | 9491d21cc7106667e7ccf3c59e2f0328c7e5435c /compiler/rustc_mir_transform/src/coverage/tests.rs | |
| parent | fa272edebbc769b71165a39dc95a585eb7a3e793 (diff) | |
| download | rust-2eef052f04de27abf16e8acdd4f2fa9b144b8b00.tar.gz rust-2eef052f04de27abf16e8acdd4f2fa9b144b8b00.zip | |
increase `AUTODEREF_RECURSION_LIMIT` to 20
The limit was introduced in https://github.com/rust-lang/rust-analyzer/pull/1408#discussion_r294059044 to avoid infinite cycles but it effectively caps the number of derefs to 10. Types like `ID3D12Device14` from the `windows` crate run into this because it derefs to `ID3D12Device13`, 13 to 12 and so on. Increasing it to 20 is a quick fix; a better cycle detection method would be nicer long term.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions
