Stream: t-compiler/wg-mir-opt

Topic: cycle error in inlining


oli (Nov 22 2019 at 15:13, on Zulip):

wait we handle the cycle error?

oli (Nov 22 2019 at 15:13, on Zulip):

that seems odd, I thought we could not recover from cycles

oli (Nov 22 2019 at 15:14, on Zulip):

:rofl: ah no, it's this trick: https://github.com/rust-lang/rust/blob/eaac45a9a9e6d457a03ed354dacde990fe8c14ac/src/librustc_mir/transform/inline.rs#L104

Wesley Wiser (Nov 22 2019 at 15:15, on Zulip):

Yeah, you're right. It used to do something else https://github.com/rust-lang/rust/commit/82ec72391f36579b5bc8f04c3cb55cf06020fca1#diff-04789deb41c6e9576b3942e6a92e5551L101

Wesley Wiser (Nov 22 2019 at 15:16, on Zulip):

tcx.try_optimized_mir()

Last update: Dec 12 2019 at 00:50UTC