]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #62322 - wesleywiser:promoted_query, r=oli-obk
authorbors <bors@rust-lang.org>
Tue, 16 Jul 2019 12:19:35 +0000 (12:19 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 Jul 2019 12:19:35 +0000 (12:19 +0000)
commitd36b7f69448f7390fa9dfde75d58b914365acdab
tree777dfd3b160a9529f230dc7a5e0a6b117ecde730
parent02785dabad07d19b8c76a7f86763801d5d3497ff
parent57c98d3392405705e17cc87dee350c16aeb24b4f
Auto merge of #62322 - wesleywiser:promoted_query, r=oli-obk

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

r? @spastorino but feel free to hand it off to somebody else
src/librustc/query/mod.rs
src/librustc_mir/const_eval.rs
src/librustc_mir/transform/mod.rs