rust/compiler/rustc_pattern_analysis/src
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
..
constructor.rs Improve the WitnessPat: Debug impl 2024-03-19 02:22:43 +01:00
errors.rs Rename RustcMatchCheckCtxt -> RustcPatCtxt 2024-03-13 14:07:44 +01:00
lib.rs Add a crate-custom test harness 2024-03-19 02:22:43 +01:00
lints.rs Rename RustcMatchCheckCtxt -> RustcPatCtxt 2024-03-13 14:07:44 +01:00
pat.rs Improve the WitnessPat: Debug impl 2024-03-19 02:22:43 +01:00
pat_column.rs Rename TypeCx -> PatCx 2024-03-13 13:56:38 +01:00
rustc.rs Rollup merge of #122644 - Nadrieril:complexity-tests, r=compiler-errors 2024-03-21 17:46:48 +01:00
usefulness.rs Report arm intersections 2024-03-19 02:20:36 +01:00