mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-03 21:59:07 +00:00
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`