We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae43326 commit 9bb3d6bCopy full SHA for 9bb3d6b
compiler/rustc_mir/src/transform/inline.rs
@@ -203,12 +203,6 @@ impl Inliner<'tcx> {
203
debug!("should_inline({:?})", callsite);
204
let tcx = self.tcx;
205
206
- // Cannot inline generators which haven't been transformed yet
207
- if callee_body.yield_ty.is_some() {
208
- debug!(" yield ty present - not inlining");
209
- return false;
210
- }
211
-
212
let codegen_fn_attrs = tcx.codegen_fn_attrs(callsite.callee.def_id());
213
214
let self_features = &self.codegen_fn_attrs.target_features;
0 commit comments