rust/compiler/rustc_pattern_analysis
Jubilee 5858329f1a
Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril
Remove `print::Pat` from the printing of `WitnessPat`

After the preliminary work done in #128536, we can now get rid of `print::Pat` entirely.

- First, we introduce a variant `PatKind::Print(String)`.
- Then we incrementally remove each other variant of `PatKind`, by having the relevant code produce `PatKind::Print` instead.
- Once `PatKind::Print` is the only remaining variant, it becomes easy to remove `print::Pat` and replace it with `String`.

There is more cleanup that I have in mind, but this seemed like a natural stopping point for one PR.

r? ```@Nadrieril```
2024-08-15 18:44:16 -07:00
..
src Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril 2024-08-15 18:44:16 -07:00
tests Stabilize min_exhaustive_patterns 2024-08-10 12:07:17 +02:00
Cargo.toml bump tracing-tree to 0.3 2024-03-30 17:39:43 +03:00
messages.ftl Lint small gaps between ranges 2024-03-09 01:14:22 +01:00