diff options
| author | bors <bors@rust-lang.org> | 2017-04-23 08:35:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-04-23 08:35:00 +0000 |
| commit | 23de823e93dc19ef1b9cb65b48860a892cd6ff18 (patch) | |
| tree | 9b91c1c746a4f520ae69502e0dde070ba23fd9f5 /src/rustllvm/RustWrapper.cpp | |
| parent | a94124488ae0dba1a8a4552a4724cddf9d266e2f (diff) | |
| parent | 8054377f8f4dfaf766bcff40e7a720c90c5e33be (diff) | |
| download | rust-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
