rust/compiler/rustc_pattern_analysis
Matthias Krüger 8d12621181
Rollup merge of #122644 - Nadrieril:complexity-tests, r=compiler-errors
pattern analysis: add a custom test harness

There are two features of the pattern analysis code that are hard to test: the newly-added pattern complexity limit, and the computation of arm intersections. This PR adds some crate-specific tests for that, including an unmaintainable but pretty macro to help construct patterns.

r? `````@compiler-errors`````
2024-03-21 17:46:48 +01:00
..
src Rollup merge of #122644 - Nadrieril:complexity-tests, r=compiler-errors 2024-03-21 17:46:48 +01:00
tests Add a crate-custom test harness 2024-03-19 02:22:43 +01:00
Cargo.toml Add a crate-custom test harness 2024-03-19 02:22:43 +01:00
messages.ftl Lint small gaps between ranges 2024-03-09 01:14:22 +01:00