Skip to content

Commit 3f277e1

Browse files
committed
s/async fn/async fn/
1 parent 5fea1d2 commit 3f277e1

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/librustc/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ impl fmt::Display for AsyncGeneratorKind {
14041404
f.write_str(match self {
14051405
AsyncGeneratorKind::Block => "`async` block",
14061406
AsyncGeneratorKind::Closure => "`async` closure body",
1407-
AsyncGeneratorKind::Fn => "`async` fn body",
1407+
AsyncGeneratorKind::Fn => "`async fn` body",
14081408
})
14091409
}
14101410
}

src/test/ui/async-await/async-error-span.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn get_future() -> impl Future<Output = ()> {
99
}
1010

1111
async fn foo() {
12-
let a; //~ ERROR type inside `async` fn body must be known in this context
12+
let a; //~ ERROR type inside `async fn` body must be known in this context
1313
get_future().await;
1414
}
1515

src/test/ui/async-await/async-error-span.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0698]: type inside `async` fn body must be known in this context
1+
error[E0698]: type inside `async fn` body must be known in this context
22
--> $DIR/async-error-span.rs:12:9
33
|
44
LL | let a;
55
| ^ cannot infer type
66
|
7-
note: the type is part of the `async` fn body because of this `await`
7+
note: the type is part of the `async fn` body because of this `await`
88
--> $DIR/async-error-span.rs:13:5
99
|
1010
LL | get_future().await;

src/test/ui/async-await/unresolved_type_param.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ async fn bar<T>() -> () {}
77

88
async fn foo() {
99
bar().await;
10-
//~^ ERROR type inside `async` fn body must be known in this context
10+
//~^ ERROR type inside `async fn` body must be known in this context
1111
//~| NOTE cannot infer type for `T`
12-
//~| NOTE the type is part of the `async` fn body because of this `await`
12+
//~| NOTE the type is part of the `async fn` body because of this `await`
1313
//~| NOTE in this expansion of desugaring of `await`
1414
}
1515
fn main() {}

src/test/ui/async-await/unresolved_type_param.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0698]: type inside `async` fn body must be known in this context
1+
error[E0698]: type inside `async fn` body must be known in this context
22
--> $DIR/unresolved_type_param.rs:9:5
33
|
44
LL | bar().await;
55
| ^^^ cannot infer type for `T`
66
|
7-
note: the type is part of the `async` fn body because of this `await`
7+
note: the type is part of the `async fn` body because of this `await`
88
--> $DIR/unresolved_type_param.rs:9:5
99
|
1010
LL | bar().await;

0 commit comments

Comments
 (0)