diff --git a/tests/source/immovable_generators.rs b/tests/source/immovable_generators.rs index c57a1e14483..3b94af0c96c 100644 --- a/tests/source/immovable_generators.rs +++ b/tests/source/immovable_generators.rs @@ -1,4 +1,4 @@ -#![feature(generators)] +#![feature(coroutines)] unsafe fn foo() { let mut ga = static || { diff --git a/tests/target/immovable_generators.rs b/tests/target/immovable_generators.rs index 0bf7a2d91ba..f52cfa00f97 100644 --- a/tests/target/immovable_generators.rs +++ b/tests/target/immovable_generators.rs @@ -1,4 +1,4 @@ -#![feature(generators)] +#![feature(coroutines)] unsafe fn foo() { let mut ga = static || { diff --git a/tests/target/issue_4110.rs b/tests/target/issue_4110.rs index d3734e90b7f..ea8fa3b73d2 100644 --- a/tests/target/issue_4110.rs +++ b/tests/target/issue_4110.rs @@ -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,