Skip to content

Commit 294436d

Browse files
Make all tests in async dir build-pass, adjust implements-fnmut test to begin ICEing during codegen
1 parent d1b7355 commit 294436d

5 files changed

+11
-7
lines changed

tests/ui/async-await/async-closures/constrained-but-no-upvars-yet.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ edition: 2021
2-
//@ check-pass
2+
//@ build-pass
33
//@ revisions: current next
44
//@ ignore-compare-mode-next-solver (explicit revisions)
55
//@[next] compile-flags: -Znext-solver

tests/ui/async-await/async-closures/force-move-due-to-actually-fnonce.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ aux-build:block-on.rs
22
//@ edition:2021
3-
//@ check-pass
3+
//@ build-pass
44

55
#![feature(async_closure)]
66

tests/ui/async-await/async-closures/force-move-due-to-inferred-kind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ aux-build:block-on.rs
22
//@ edition:2021
3-
//@ check-pass
3+
//@ build-pass
44

55
#![feature(async_closure)]
66

tests/ui/async-await/async-closures/implements-fnmut.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ check-pass
1+
//@ build-pass
22
//@ edition: 2021
33

44
// Demonstrates that an async closure may implement `FnMut` (not just `async FnMut`!)
@@ -9,9 +9,13 @@
99

1010
#![feature(async_closure)]
1111

12-
fn main() {}
12+
fn main() {
13+
hello(&Ty);
14+
}
1315

14-
fn needs_fn_mut<T>(x: impl FnMut() -> T) {}
16+
fn needs_fn_mut<T>(mut x: impl FnMut() -> T) {
17+
x();
18+
}
1519

1620
fn hello(x: &Ty) {
1721
needs_fn_mut(async || { x.hello(); });

tests/ui/async-await/async-closures/signature-deduction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ check-pass
1+
//@ build-pass
22
//@ edition: 2021
33

44
#![feature(async_closure)]

0 commit comments

Comments
 (0)