]> git.lizzy.rs Git - rust.git/commit
Add a query to get the `promoted`s for a `mir::Body`
authorWesley Wiser <wwiser@gmail.com>
Wed, 3 Jul 2019 00:50:27 +0000 (20:50 -0400)
committerWesley Wiser <wwiser@gmail.com>
Wed, 3 Jul 2019 00:52:58 +0000 (20:52 -0400)
commit57c98d3392405705e17cc87dee350c16aeb24b4f
tree23db80061066a53e44a94ba52c48b5095b835ae3
parent0beb2ba16a08dfa01569b5f4644da315dc4c806c
Add a query to get the `promoted`s for a `mir::Body`

This is a builidng block toward removing a lot of duplicated code
between miri and the cosnt-propagator pass.

See this thread for more info:
https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661
src/librustc/query/mod.rs
src/librustc_mir/const_eval.rs
src/librustc_mir/transform/mod.rs
src/librustc_mir/util/pretty.rs