about summary refs log tree commit diff
path: root/src/rustllvm/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-17 11:17:03 +0000
committerbors <bors@rust-lang.org>2019-03-17 11:17:03 +0000
commit070cebd0aa76702eaaf7c7f340615805f661e937 (patch)
tree4d66a96601fd92b2ddbbb325c9fd9af37014f7db /src/rustllvm/ArchiveWrapper.cpp
parent7cf074a1e655ac07d04d045667278fa1a9970b93 (diff)
parent5cd28066214a4a255bac6655c20bf05cb95730fd (diff)
downloadrust-070cebd0aa76702eaaf7c7f340615805f661e937.tar.gz
rust-070cebd0aa76702eaaf7c7f340615805f661e937.zip
Auto merge of #59178 - oli-obk:lazy_const, r=eddyb
Revert the `LazyConst` PR

The introduction of `LazyConst` did not actually achieve the code simplicity improvements that were the main reason it was introduced. Especially in the presence of const generics, the differences between the "levels of evaluatedness" of a constant become less clear. As it can be seen by the changes in this PR, further simplifications were possible by folding `LazyConst` back into `ConstValue`. We have been able to keep all the advantages gained during the `LazyConst` refactoring (like `const_eval` not returning an interned value, thus making all the `match` code simpler and more performant).

fixes https://github.com/rust-lang/rust/issues/59209

r? @eddyb @varkor
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions