rust/compiler/rustc_middle/src
Zalathar dd5a8d7714 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.
2024-07-31 16:03:27 +10:00
..
dep_graph Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
hooks Reformat use declarations. 2024-07-29 08:26:52 +10:00
infer Reformat use declarations. 2024-07-29 08:26:52 +10:00
middle Reformat use declarations. 2024-07-29 08:26:52 +10:00
mir Rollup merge of #128277 - RalfJung:offset_from_wildcard, r=oli-obk 2024-07-29 11:42:34 +02:00
query Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
thir Track mutability of deref patterns 2024-04-20 15:59:54 +02:00
traits Reformat use declarations. 2024-07-29 08:26:52 +10:00
ty Reformat use declarations. 2024-07-29 08:26:52 +10:00
util Reformat use declarations. 2024-07-29 08:26:52 +10:00
arena.rs Uplift PredefinedOpaquesData 2024-06-18 10:40:30 -04:00
error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Rollup merge of #125505 - aDotInTheVoid:middle-idl, r=pnkfelix 2024-06-05 18:21:09 +02:00
lint.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
macros.rs lift_to_tcx -> lift_to_interner 2024-07-17 10:46:10 -04:00
metadata.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Use a separate pattern type for rustc_pattern_analysis diagnostics 2024-07-31 16:03:27 +10:00
values.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00