Improve span label
This commit is contained in:
parent
a40ec13262
commit
db0a5a1056
7 changed files with 24 additions and 16 deletions
|
|
@ -2,7 +2,7 @@ error: future cannot be sent between threads safely
|
|||
--> $DIR/issue-64130-4-async-move.rs:15:17
|
||||
|
|
||||
LL | pub fn foo() -> impl Future + Send {
|
||||
| ^^^^^^^^^^^^^^^^^^ future returned by `foo` is not `Send`
|
||||
| ^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
|
||||
...
|
||||
LL | / async move {
|
||||
LL | | match client.status() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn spawn<T: Send>(_: T) {}
|
|||
| ---- required by this bound in `spawn`
|
||||
...
|
||||
LL | spawn(async {
|
||||
| ^^^^^ future is not `Send`
|
||||
| ^^^^^ future created by async block is not `Send`
|
||||
|
|
||||
= help: within `impl std::future::Future`, the trait `std::marker::Send` is not implemented for `*mut ()`
|
||||
note: future is not `Send` as this value is used across an await
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn require_send(_: impl Send) {}
|
|||
| ------------ ---- required by this bound in `require_send`
|
||||
...
|
||||
LL | require_send(send_fut);
|
||||
| ^^^^^^^^^^^^ future returned by `test1` is not `Send`
|
||||
| ^^^^^^^^^^^^ future created by async block is not `Send`
|
||||
|
|
||||
= help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>`
|
||||
note: future is not `Send` as this value is used across an await
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn assert_send<T: Send>(_: T) {}
|
|||
| ---- required by this bound in `assert_send`
|
||||
...
|
||||
LL | assert_send(async {
|
||||
| ^^^^^^^^^^^ future returned by `main` is not `Send`
|
||||
| ^^^^^^^^^^^ future created by async block is not `Send`
|
||||
|
|
||||
= help: within `impl std::future::Future`, the trait `std::marker::Send` is not implemented for `*const u8`
|
||||
note: future is not `Send` as this value is used across an await
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn require_send(_: impl Send) {}
|
|||
| ------------ ---- required by this bound in `require_send`
|
||||
...
|
||||
LL | require_send(send_gen);
|
||||
| ^^^^^^^^^^^^ future returned by `test1` is not `Send`
|
||||
| ^^^^^^^^^^^^ generator is not `Send`
|
||||
|
|
||||
= help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>`
|
||||
note: future is not `Send` as this value is used across an yield
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ LL | fn assert_sync<T: Sync>(_: T) {}
|
|||
| ---- required by this bound in `main::assert_sync`
|
||||
...
|
||||
LL | assert_sync(|| {
|
||||
| ^^^^^^^^^^^ future returned by `main` is not `Sync`
|
||||
| ^^^^^^^^^^^ generator is not `Sync`
|
||||
|
|
||||
= help: within `[generator@$DIR/not-send-sync.rs:9:17: 13:6 {std::cell::Cell<i32>, ()}]`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
|
||||
note: future is not `Sync` as this value is used across an yield
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue