We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfcb853 commit c9f3793Copy full SHA for c9f3793
compiler/rustc_mir_transform/src/inline.rs
@@ -332,10 +332,6 @@ impl<'tcx> Inliner<'tcx> for NormalInliner<'tcx> {
332
}
333
334
fn check_caller_mir_body(&self, body: &Body<'tcx>) -> bool {
335
- if body.source.promoted.is_some() {
336
- return false;
337
- }
338
-
339
// Avoid inlining into coroutines, since their `optimized_mir` is used for layout computation,
340
// which can create a cycle, even when no attempt is made to inline the function in the other
341
// direction.
0 commit comments