about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-07-30 22:44:02 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-07-31 16:03:27 +1000
commitdd5a8d77142562250c4780b0b8b228a0c557498e (patch)
tree14c0970093f327d8d4d34a11497e082a10161a83 /compiler/rustc_pattern_analysis/src/errors.rs
parenta9ea85e04422345020be7dfb7e655c911d458e6c (diff)
downloadrust-dd5a8d77142562250c4780b0b8b228a0c557498e.tar.gz
rust-dd5a8d77142562250c4780b0b8b228a0c557498e.zip
Use a separate pattern type for `rustc_pattern_analysis` diagnostics
The pattern-analysis code needs to print patterns, as part of its user-visible
diagnostics. But it never actually tries to print "real" patterns! Instead, it
only ever prints synthetic patterns that it has reconstructed from its own
internal represenations.

We can therefore simultaneously remove two obstacles to changing `thir::Pat`,
by having the pattern-analysis code use its own dedicated type for building
printable patterns, and then making `thir::Pat` not printable at all.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions