rust/compiler/rustc_middle
bors 8800ec1665 Auto merge of #144591 - RalfJung:pattern-valtrees, r=BoxyUwU
Patterns: represent constants as valtrees

Const patterns are always valtrees now. Let's represent that in the types. We use `ty::Value` for this since it nicely packages value and type, and has some convenient methods.

Cc `@Nadrieril` `@BoxyUwU`
2025-08-15 05:49:54 +00:00
..
2025-07-31 14:19:27 +02:00

For more information about how rustc works, see the rustc dev guide.