]> git.lizzy.rs Git - rust.git/commit
[MIR] Reintroduce the unit temporary
authorSimonas Kazlauskas <git@kazlauskas.me>
Fri, 15 Jan 2016 22:36:32 +0000 (00:36 +0200)
committerSimonas Kazlauskas <git@kazlauskas.me>
Tue, 19 Jan 2016 20:53:34 +0000 (22:53 +0200)
commitf9f6e3ad109a70428df197343c54f8a3f421a361
treef3b01331368ea1e7df519f80fbaa83d6cfd264be
parent1f4e317e45349eb2d3c853e96bfd24dd574b36d1
[MIR] Reintroduce the unit temporary

An attempt to make loop body destination be optional, author implemented a pretty self contained
change and deemed it to be (much) uglier than the alternative of just keeping the unit temporary.
Having the temporary created lazily also has a nice property of not figuring in the MIR of
functions which do not use loops of any sort.
src/librustc_mir/build/expr/into.rs
src/librustc_mir/build/mod.rs
src/librustc_mir/build/scope.rs
src/librustc_mir/hair/cx/mod.rs