rust/compiler
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
..
2024-08-11 04:16:53 +02:00
2024-08-13 23:18:31 +02:00
2024-08-13 13:40:05 -07:00
2024-08-09 14:33:25 +10:00
2024-08-09 14:33:25 +10:00
2024-08-14 14:18:17 -04:00
2024-08-10 12:07:17 +02:00