s/generator/coroutine/
This commit is contained in:
parent
60956837cf
commit
e96ce20b34
468 changed files with 2201 additions and 2197 deletions
|
@ -79,10 +79,10 @@ fn inline<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) -> bool {
|
|||
if body.source.promoted.is_some() {
|
||||
return false;
|
||||
}
|
||||
// Avoid inlining into generators, 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
|
||||
// direction.
|
||||
if body.generator.is_some() {
|
||||
if body.coroutine.is_some() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue