Skip to content

Commit da261aa

Browse files
committed
inline: remove unnecessary promoted check
1 parent f7640c9 commit da261aa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/rustc_mir_transform/src/inline.rs

-4
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,6 @@ impl<'tcx> Inliner<'tcx> for NormalInliner<'tcx> {
332332
}
333333

334334
fn check_caller_mir_body(&self, body: &Body<'tcx>) -> bool {
335-
if body.source.promoted.is_some() {
336-
return false;
337-
}
338-
339335
// Avoid inlining into coroutines, since their `optimized_mir` is used for layout computation,
340336
// which can create a cycle, even when no attempt is made to inline the function in the other
341337
// direction.

0 commit comments

Comments
 (0)