Skip to content

Commit 92b41ee

Browse files
committed
Rename in preparation for moving the async printing out of CoroutineSource
1 parent af8a998 commit 92b41ee

7 files changed

+8
-8
lines changed

compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ impl CoroutineSource {
15681568
match self {
15691569
CoroutineSource::Block => "`async` block",
15701570
CoroutineSource::Closure => "`async` closure body",
1571-
CoroutineSource::Fn => "`async fn` body",
1571+
CoroutineSource::Fn => "`async` fn body",
15721572
}
15731573
}
15741574
}

tests/ui/async-await/async-await-let-else.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ LL | is_send(foo2(Some(true)));
3030
| required by a bound introduced by this call
3131
|
3232
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
33-
note: required because it's used within this `async fn` body
33+
note: required because it's used within this `async` fn body
3434
--> $DIR/async-await-let-else.rs:24:29
3535
|
3636
LL | async fn bar2<T>(_: T) -> ! {
@@ -39,7 +39,7 @@ LL | | panic!()
3939
LL | | }
4040
| |_^
4141
= note: required because it captures the following types: `impl Future<Output = !>`
42-
note: required because it's used within this `async fn` body
42+
note: required because it's used within this `async` fn body
4343
--> $DIR/async-await-let-else.rs:18:32
4444
|
4545
LL | async fn foo2(x: Option<bool>) {

tests/ui/async-await/issue-68112.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ LL | require_send(send_fut);
4545
= help: the trait `Sync` is not implemented for `RefCell<i32>`
4646
= note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead
4747
= note: required for `Arc<RefCell<i32>>` to implement `Send`
48-
note: required because it's used within this `async fn` body
48+
note: required because it's used within this `async` fn body
4949
--> $DIR/issue-68112.rs:47:31
5050
|
5151
LL | async fn ready2<T>(t: T) -> T {

tests/ui/async-await/issue-70935-complex-spans.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ note: required because it's used within this closure
1818
|
1919
LL | baz(|| async {
2020
| ^^
21-
note: required because it's used within this `async fn` body
21+
note: required because it's used within this `async` fn body
2222
--> $DIR/issue-70935-complex-spans.rs:12:67
2323
|
2424
LL | async fn baz<T>(_c: impl FnMut() -> T) where T: Future<Output=()> {

tests/ui/async-await/issues/issue-67893.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | pub async fn run() {
1313
|
1414
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
1515
= note: required because it captures the following types: `Arc<Mutex<()>>`, `MutexGuard<'_, ()>`, `impl Future<Output = ()>`
16-
note: required because it's used within this `async fn` body
16+
note: required because it's used within this `async` fn body
1717
--> $DIR/auxiliary/issue_67893.rs:9:20
1818
|
1919
LL | pub async fn run() {

tests/ui/async-await/partial-drop-partial-reinit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl Drop for NotSend {
2626
impl !Send for NotSend {}
2727

2828
async fn foo() {
29-
//~^ NOTE used within this `async fn` body
29+
//~^ NOTE used within this `async` fn body
3030
//~| NOTE within this `impl Future
3131
let mut x = (NotSend {},);
3232
drop(x.0);

tests/ui/async-await/partial-drop-partial-reinit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | async fn foo() {
1212
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `NotSend`
1313
= note: required because it appears within the type `(NotSend,)`
1414
= note: required because it captures the following types: `(NotSend,)`, `impl Future<Output = ()>`
15-
note: required because it's used within this `async fn` body
15+
note: required because it's used within this `async` fn body
1616
--> $DIR/partial-drop-partial-reinit.rs:28:16
1717
|
1818
LL | async fn foo() {

0 commit comments

Comments
 (0)