]> git.lizzy.rs Git - rust.git/commit
Auto merge of #66866 - oli-obk:const_fn_memoization, r=RalfJung
authorbors <bors@rust-lang.org>
Wed, 4 Dec 2019 17:48:19 +0000 (17:48 +0000)
committerbors <bors@rust-lang.org>
Wed, 4 Dec 2019 17:48:19 +0000 (17:48 +0000)
commit6d77e45f01079fe3d40180b3e256e414ab379f63
tree6ebdc54c14baad74166c12baf04a690d8f197f4f
parentc4f130493564b23e78628af25201e7e2260849f6
parentaf8f1416e1bc004c15f2cb305bbc26e0af5478e1
Auto merge of #66866 - oli-obk:const_fn_memoization, r=RalfJung

Only memoize const fn calls during const eval

Miri and other engines may want to execute the function in order to detect UB inside of them.

r? @RalfJung
src/librustc_mir/const_eval.rs
src/librustc_mir/interpret/machine.rs
src/librustc_mir/interpret/terminator.rs
src/librustc_mir/transform/const_prop.rs