]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33541 - eddyb:promote-only-temps, r=arielb1
authorbors <bors@rust-lang.org>
Fri, 13 May 2016 10:10:46 +0000 (03:10 -0700)
committerbors <bors@rust-lang.org>
Fri, 13 May 2016 10:10:46 +0000 (03:10 -0700)
mir: don't attempt to promote Unpromotable constant temps.

Fixes #33537. This was a non-problem in regular functions, but we also promote in `const fn`s.
There we always qualify temps so you can't depend on `Unpromotable` temps being `NOT_CONST`.

1  2 
src/librustc_mir/transform/qualify_consts.rs