@@ -5,8 +5,16 @@ error[E0277]: `proc_macro::Span` cannot be sent between threads safely
55 | ^^^^ `proc_macro::Span` cannot be sent between threads safely
66 |
77 = help: within `Span`, the trait `Send` is not implemented for `proc_macro::Span`
8- = note: required because it appears within the type `Span`
9- = note: required because it appears within the type `Span`
8+ note: required because it appears within the type `Span`
9+ --> $WORKSPACE/src/wrapper.rs
10+ |
11+ | pub(crate) enum Span {
12+ | ^^^^
13+ note: required because it appears within the type `Span`
14+ --> $WORKSPACE/src/lib.rs
15+ |
16+ | pub struct Span {
17+ | ^^^^
1018note: required by a bound in `requires_send`
1119 --> test-not-send.rs:4:25
1220 |
@@ -20,9 +28,21 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
2028 | ^^^^ `Rc<()>` cannot be sent between threads safely
2129 |
2230 = help: within `Span`, the trait `Send` is not implemented for `Rc<()>`
23- = note: required because it appears within the type `ProcMacroAutoTraits`
24- = note: required because it appears within the type `PhantomData<ProcMacroAutoTraits>`
25- = note: required because it appears within the type `Span`
31+ note: required because it appears within the type `ProcMacroAutoTraits`
32+ --> $WORKSPACE/src/marker.rs
33+ |
34+ | pub(crate) struct ProcMacroAutoTraits(Rc<()>);
35+ | ^^^^^^^^^^^^^^^^^^^
36+ note: required because it appears within the type `PhantomData<ProcMacroAutoTraits>`
37+ --> $RUST/core/src/marker.rs
38+ |
39+ | pub struct PhantomData<T: ?Sized>;
40+ | ^^^^^^^^^^^
41+ note: required because it appears within the type `Span`
42+ --> $WORKSPACE/src/lib.rs
43+ |
44+ | pub struct Span {
45+ | ^^^^
2646note: required by a bound in `requires_send`
2747 --> test-not-send.rs:4:25
2848 |
0 commit comments