diff options
| author | David Wood <david.wood2@arm.com> | 2024-12-10 12:07:20 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-01-10 18:37:55 +0000 |
| commit | 90066c0df3a564db756d9f7bd20a565f4675e267 (patch) | |
| tree | a69b01c3c7a7867839b945c778cea58da4252398 /compiler/rustc_mir_transform | |
| parent | e4bae91be11c81b8c68a7bb521dfa17ccef3fc24 (diff) | |
| download | rust-90066c0df3a564db756d9f7bd20a565f4675e267.tar.gz rust-90066c0df3a564db756d9f7bd20a565f4675e267.zip | |
inline: remove unnecessary promoted check
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index a98901a6688..1f390200381 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -332,10 +332,6 @@ impl<'tcx> Inliner<'tcx> for NormalInliner<'tcx> { } fn check_caller_mir_body(&self, body: &Body<'tcx>) -> bool { - if body.source.promoted.is_some() { - return false; - } - // Avoid inlining into coroutines, since their `optimized_mir` is used for layout computation, // which can create a cycle, even when no attempt is made to inline the function in the other // direction. |
