about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-31 15:36:33 +0200
committerGitHub <noreply@github.com>2024-07-31 15:36:33 +0200
commit031093f24bbf8860b9bea0204932517b6ae38d5d (patch)
treef3db074d7b9945217d9ef7803e724b973bec60ac /compiler/rustc_codegen_llvm/src
parent06b837231ae674baa3e442b5c436a0d987b591d8 (diff)
parentdd5a8d77142562250c4780b0b8b228a0c557498e (diff)
downloadrust-031093f24bbf8860b9bea0204932517b6ae38d5d.tar.gz
rust-031093f24bbf8860b9bea0204932517b6ae38d5d.zip
Rollup merge of #128430 - Zalathar:print-pat, r=Nadrieril
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.

r? `@Nadrieril`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions