diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-03-03 14:07:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 14:07:43 +0100 |
| commit | 7d8f74f8b233c5de4b3356afe57eeeb789ca146c (patch) | |
| tree | 2e750b3a1f51dd4bda16471bded12b2ab9c97750 /compiler/rustc_codegen_gcc | |
| parent | 10902058a979aaea1fcb3576d84b93ba97e3b977 (diff) | |
| parent | f04c5c51120eabf969c75381ee6151b4539313f4 (diff) | |
| download | rust-7d8f74f8b233c5de4b3356afe57eeeb789ca146c.tar.gz rust-7d8f74f8b233c5de4b3356afe57eeeb789ca146c.zip | |
Rollup merge of #121917 - GuillaumeGomez:pattern-complexity_limit.rs, r=Nadrieril
Add new `pattern_complexity` attribute to add possibility to limit and check recursion in pattern matching Needed for https://github.com/rust-lang/rust-analyzer/issues/9528. This PR adds a new attribute only available when running rust testsuite called `pattern_complexity` which allows to set the maximum recursion for the pattern matching. It is quite useful to ensure the complexity doesn't grow, like in `tests/ui/pattern/usefulness/issue-118437-exponential-time-on-diagonal-match.rs`. r? `@Nadrieril`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
