]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #95976 - b-naber:valtree-constval-conversion, r=oli-obk
authorbors <bors@rust-lang.org>
Thu, 28 Apr 2022 13:18:22 +0000 (13:18 +0000)
committerbors <bors@rust-lang.org>
Thu, 28 Apr 2022 13:18:22 +0000 (13:18 +0000)
Implement Valtree to ConstValue conversion

Once we start to use `ValTree`s in the type system we will need to be able to convert them into `ConstValue` instances, which we want to continue to use after MIR construction.

r? `@oli-obk`

cc `@RalfJung`

1  2 
compiler/rustc_middle/src/query/mod.rs