s/generator/coroutine/
This commit is contained in:
parent
f867858755
commit
1b9dd4b4ad
@ -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…
Reference in New Issue
Block a user