about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-23 08:35:00 +0000
committerbors <bors@rust-lang.org>2017-04-23 08:35:00 +0000
commit23de823e93dc19ef1b9cb65b48860a892cd6ff18 (patch)
tree9b91c1c746a4f520ae69502e0dde070ba23fd9f5 /src/rustllvm/RustWrapper.cpp
parenta94124488ae0dba1a8a4552a4724cddf9d266e2f (diff)
parent8054377f8f4dfaf766bcff40e7a720c90c5e33be (diff)
downloadrust-23de823e93dc19ef1b9cb65b48860a892cd6ff18.tar.gz
rust-23de823e93dc19ef1b9cb65b48860a892cd6ff18.zip
Auto merge of #41408 - eddyb:poly-const-eval, r=arielb1
rustc: generalize monomorphic_const_eval to polymorphic constants.

With the addition of `Substs` to the query key, we can now evaluate *and cache* polymorphic constants.

Fixes #23898 by replacing the crippled explicit-discriminant-only local-crate-only `lookup_variant_by_id` with `ConstVal::Variant` which can describe variants irrespective of their discriminant.

Fixes #41394 by fixing #23898 (for the original testcase) and by not looping past the first discriminant.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions