|
1 |
| -error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely |
| 1 | +error[E0277]: `Arguments<'_>` cannot be sent between threads safely |
2 | 2 | --> $DIR/send-sync.rs:8:10
|
3 | 3 | |
|
4 | 4 | LL | send(format_args!("{:?}", c));
|
5 |
| - | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely |
| 5 | + | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `Arguments<'_>` cannot be sent between threads safely |
6 | 6 | | |
|
7 | 7 | | required by a bound introduced by this call
|
8 | 8 | |
|
9 |
| - = help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`, which is required by `Arguments<'_>: Send` |
10 |
| - = note: required because it appears within the type `&core::fmt::rt::Opaque` |
11 |
| -note: required because it appears within the type `core::fmt::rt::ArgumentType<'_>` |
12 |
| - --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL |
13 |
| -note: required because it appears within the type `core::fmt::rt::Argument<'_>` |
14 |
| - --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL |
15 |
| - = note: required because it appears within the type `[core::fmt::rt::Argument<'_>]` |
16 |
| - = note: required for `&[core::fmt::rt::Argument<'_>]` to implement `Send` |
17 |
| -note: required because it appears within the type `Arguments<'_>` |
18 |
| - --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
| 9 | + = help: the trait `Send` is not implemented for `Arguments<'_>` |
19 | 10 | note: required by a bound in `send`
|
20 | 11 | --> $DIR/send-sync.rs:1:12
|
21 | 12 | |
|
22 | 13 | LL | fn send<T: Send>(_: T) {}
|
23 | 14 | | ^^^^ required by this bound in `send`
|
24 | 15 |
|
25 |
| -error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely |
| 16 | +error[E0277]: `Arguments<'_>` cannot be shared between threads safely |
26 | 17 | --> $DIR/send-sync.rs:9:10
|
27 | 18 | |
|
28 | 19 | LL | sync(format_args!("{:?}", c));
|
29 |
| - | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely |
| 20 | + | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `Arguments<'_>` cannot be shared between threads safely |
30 | 21 | | |
|
31 | 22 | | required by a bound introduced by this call
|
32 | 23 | |
|
33 |
| - = help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`, which is required by `Arguments<'_>: Sync` |
34 |
| - = note: required because it appears within the type `&core::fmt::rt::Opaque` |
35 |
| -note: required because it appears within the type `core::fmt::rt::ArgumentType<'_>` |
36 |
| - --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL |
37 |
| -note: required because it appears within the type `core::fmt::rt::Argument<'_>` |
38 |
| - --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL |
39 |
| - = note: required because it appears within the type `[core::fmt::rt::Argument<'_>]` |
40 |
| - = note: required because it appears within the type `&[core::fmt::rt::Argument<'_>]` |
41 |
| -note: required because it appears within the type `Arguments<'_>` |
42 |
| - --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
| 24 | + = help: the trait `Sync` is not implemented for `Arguments<'_>` |
43 | 25 | note: required by a bound in `sync`
|
44 | 26 | --> $DIR/send-sync.rs:2:12
|
45 | 27 | |
|
|
0 commit comments