inline: remove unnecessary promoted check
This commit is contained in:
parent
e4bae91be1
commit
90066c0df3
1 changed files with 0 additions and 4 deletions
|
@ -332,10 +332,6 @@ impl<'tcx> Inliner<'tcx> for NormalInliner<'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_caller_mir_body(&self, body: &Body<'tcx>) -> bool {
|
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,
|
// 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
|
// which can create a cycle, even when no attempt is made to inline the function in the other
|
||||||
// direction.
|
// direction.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue