mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
8d12621181
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`````