s/generator/coroutine/

This commit is contained in:
Oli Scherer 2023-10-19 21:46:28 +00:00
parent f867858755
commit 1b9dd4b4ad
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#![feature(generators)] #![feature(coroutines)]
unsafe fn foo() { unsafe fn foo() {
let mut ga = static || { let mut ga = static || {

View File

@ -1,4 +1,4 @@
#![feature(generators)] #![feature(coroutines)]
unsafe fn foo() { unsafe fn foo() {
let mut ga = static || { let mut ga = static || {

View File

@ -12,7 +12,7 @@ fn bindings() {
span, span,
.. ..
}, },
) if borrow_spans.for_generator() | borrow_spans.for_closure() => self ) if borrow_spans.for_coroutine() | borrow_spans.for_closure() => self
.report_escaping_closure_capture( .report_escaping_closure_capture(
borrow_spans, borrow_spans,
borrow_span, borrow_span,