]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #60428 - wesleywiser:refactor_const_eval, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 1 May 2019 23:09:28 +0000 (01:09 +0200)
committerGitHub <noreply@github.com>
Wed, 1 May 2019 23:09:28 +0000 (01:09 +0200)
commit12bf98155249783583a91863c5dccf9e346f1226
tree64974234cd5d3dceca6ff8a47f736b4711deb3b5
parenta7cbd92d133b97cef7cdeeb2ba15c38db872e552
parenteadf48e796cc6913d064b683a8d4708ce8d447cc
Rollup merge of #60428 - wesleywiser:refactor_const_eval, r=oli-obk

Refactor `eval_body_using_ecx` so that it doesn't need to query for MIR

This is the first step toward removing the `mir` field of `ConstPropagator` which will eventually allow us to actually const propagate in MIR.

r? @oli-obk
src/librustc_mir/const_eval.rs
src/librustc_mir/transform/const_prop.rs