1
Fork 0

s/generator/coroutine/

This commit is contained in:
Oli Scherer 2023-10-19 21:46:28 +00:00
parent 8ac561afef
commit 0f739816c9
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,