]> git.lizzy.rs Git - rust.git/commit
Change MIR building to fill in the resume place
authorJonas Schievink <jonasschievink@gmail.com>
Sat, 25 Jan 2020 01:31:32 +0000 (02:31 +0100)
committerJonas Schievink <jonasschievink@gmail.com>
Sun, 2 Feb 2020 12:20:57 +0000 (13:20 +0100)
commit3c069a066e50598ef230ba71ed5c5bcf596beb90
tree038799d9e6fd26623ad07cf97c09707094ada128
parentf2c1468965a7af5887d353adf77427344327be0d
Change MIR building to fill in the resume place

This changes `Yield` from `as_rvalue` to `into` lowering, which could
have a possible performance impact. I could imagine special-casing
some resume types here to use a simpler lowering for them, but it's
unclear if that makes sense at this stage.
src/librustc_mir_build/build/expr/as_rvalue.rs
src/librustc_mir_build/build/expr/category.rs
src/librustc_mir_build/build/expr/into.rs
src/librustc_mir_build/build/mod.rs