s/generator/coroutine/

This commit is contained in:
Oli Scherer 2023-10-19 21:46:28 +00:00
parent 868e513935
commit d9259fdedd
13 changed files with 20 additions and 20 deletions

View file

@ -306,7 +306,7 @@ fn check_terminator<'tcx>(
},
TerminatorKind::SwitchInt { discr, targets: _ } => check_operand(tcx, discr, span, body),
TerminatorKind::CoroutineDrop | TerminatorKind::Yield { .. } => {
Err((span, "const fn generators are unstable".into()))
Err((span, "const fn coroutines are unstable".into()))
},
TerminatorKind::Call {
func,