rust/compiler/rustc_pattern_analysis/src
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
..
rustc Remove print::Pat entirely, replacing it with String 2024-08-11 20:25:03 +10:00
constructor.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Encapsulate the printing of WitnessPat 2024-07-29 14:56:50 +10:00
lib.rs Rollup merge of #128536 - Zalathar:print-cleanup, r=Nadrieril 2024-08-11 07:51:50 +02:00
lints.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
pat.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
pat_column.rs Rename TypeCx -> PatCx 2024-03-13 13:56:38 +01:00
rustc.rs Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril 2024-08-15 18:44:16 -07:00
usefulness.rs Stabilize min_exhaustive_patterns 2024-08-10 12:07:17 +02:00