]> git.lizzy.rs Git - rust.git/commit
Reduce the chance of accidentally calling functions in CTFE
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Fri, 28 Jul 2017 07:52:19 +0000 (09:52 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 1 Aug 2017 07:56:21 +0000 (09:56 +0200)
commite5799a6af35f5c0a257ff375498c5237e4a5466b
treee755fedbe343bde53aafaf5e0ca6882f226d42b1
parent728bb878acb374d313482cac41a2aa3a60af2a84
Reduce the chance of accidentally calling functions in CTFE

previously miri had a check for const fn and other cases that
CTFE requires. Instead the function call is completely
processed inside the machine. This allows CTFE to have full
control over what is called and miri to not have useless
CTFE-checks in normal mode.
Cargo.toml
miri/fn_call.rs [new file with mode: 0644]
miri/lib.rs
src/librustc_mir/interpret/const_eval.rs
src/librustc_mir/interpret/machine.rs
src/librustc_mir/interpret/terminator/mod.rs