Rename in preparation for moving the `async` printing out of `CoroutineSource`

This commit is contained in:
Oli Scherer 2023-10-25 16:26:36 +00:00
parent af8a998b1e
commit 92b41eeee6
7 changed files with 8 additions and 8 deletions

View File

@ -1568,7 +1568,7 @@ impl CoroutineSource {
match self { match self {
CoroutineSource::Block => "`async` block", CoroutineSource::Block => "`async` block",
CoroutineSource::Closure => "`async` closure body", CoroutineSource::Closure => "`async` closure body",
CoroutineSource::Fn => "`async fn` body", CoroutineSource::Fn => "`async` fn body",
} }
} }
} }

View File

@ -30,7 +30,7 @@ LL | is_send(foo2(Some(true)));
| required by a bound introduced by this call | required by a bound introduced by this call
| |
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>` = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
note: required because it's used within this `async fn` body note: required because it's used within this `async` fn body
--> $DIR/async-await-let-else.rs:24:29 --> $DIR/async-await-let-else.rs:24:29
| |
LL | async fn bar2<T>(_: T) -> ! { LL | async fn bar2<T>(_: T) -> ! {
@ -39,7 +39,7 @@ LL | | panic!()
LL | | } LL | | }
| |_^ | |_^
= note: required because it captures the following types: `impl Future<Output = !>` = note: required because it captures the following types: `impl Future<Output = !>`
note: required because it's used within this `async fn` body note: required because it's used within this `async` fn body
--> $DIR/async-await-let-else.rs:18:32 --> $DIR/async-await-let-else.rs:18:32
| |
LL | async fn foo2(x: Option<bool>) { LL | async fn foo2(x: Option<bool>) {

View File

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

View File

@ -18,7 +18,7 @@ note: required because it's used within this closure
| |
LL | baz(|| async { LL | baz(|| async {
| ^^ | ^^
note: required because it's used within this `async fn` body note: required because it's used within this `async` fn body
--> $DIR/issue-70935-complex-spans.rs:12:67 --> $DIR/issue-70935-complex-spans.rs:12:67
| |
LL | async fn baz<T>(_c: impl FnMut() -> T) where T: Future<Output=()> { LL | async fn baz<T>(_c: impl FnMut() -> T) where T: Future<Output=()> {

View File

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

View File

@ -26,7 +26,7 @@ impl Drop for NotSend {
impl !Send for NotSend {} impl !Send for NotSend {}
async fn foo() { async fn foo() {
//~^ NOTE used within this `async fn` body //~^ NOTE used within this `async` fn body
//~| NOTE within this `impl Future //~| NOTE within this `impl Future
let mut x = (NotSend {},); let mut x = (NotSend {},);
drop(x.0); drop(x.0);

View File

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