|
// Cannot inline generators which haven't been transformed yet |
|
if callee_body.yield_ty.is_some() { |
|
debug!(" yield ty present - not inlining"); |
|
return false; |
|
} |
The generator is always transformed, as only the output of optimized_mir is passed to should_inline.
rust/src/librustc_mir/transform/inline.rs
Lines 218 to 222 in abf2e00
The generator is always transformed, as only the output of
optimized_miris passed toshould_inline.