rust/compiler/rustc_mir/src
bors e655fb6221 Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasper
Implement (but don't use) valtree and refactor in preparation of use

This PR does not cause any functional change. It refactors various things that are needed to make valtrees possible. This refactoring got big enough that I decided I'd want it reviewed as a PR instead of trying to make one huge PR with all the changes.

cc `@rust-lang/wg-const-eval` on the following commits:

* 2027184 implement valtree
* eeecea9 fallible Scalar -> ScalarInt
* 042f663 ScalarInt convenience methods

cc `@eddyb` on ef04a6d

cc `@rust-lang/wg-mir-opt` for cf1700c (`mir::Constant` can now represent either a `ConstValue` or a `ty::Const`, and it is totally possible to have two different representations for the same value)
2021-03-16 22:42:56 +00:00
..
borrow_check Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasper 2021-03-16 22:42:56 +00:00
const_eval Update compiler/rustc_mir/src/const_eval/mod.rs 2021-03-16 18:26:09 +01:00
dataflow Clean up todos 2021-03-09 19:31:31 +00:00
interpret s/ConstantSource/ConstantKind/ 2021-03-15 12:06:52 +00:00
monomorphize Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00
transform Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasper 2021-03-16 22:42:56 +00:00
util s/ConstantSource/ConstantKind/ 2021-03-15 12:06:52 +00:00
lib.rs Implement valtree 2021-03-12 12:16:14 +00:00
shim.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00