s/generator/coroutine/
This commit is contained in:
parent
8ac561afef
commit
0f739816c9
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
#![feature(generators)]
|
||||
#![feature(coroutines)]
|
||||
|
||||
unsafe fn foo() {
|
||||
let mut ga = static || {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(generators)]
|
||||
#![feature(coroutines)]
|
||||
|
||||
unsafe fn foo() {
|
||||
let mut ga = static || {
|
||||
|
|
|
@ -12,7 +12,7 @@ fn bindings() {
|
|||
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(
|
||||
borrow_spans,
|
||||
borrow_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue