s/generator/coroutine/
This commit is contained in:
parent
868e513935
commit
d9259fdedd
13 changed files with 20 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue