@@ -5,8 +5,16 @@ error[E0277]: `proc_macro::Span` cannot be sent between threads safely
5
5
| ^^^^ `proc_macro::Span` cannot be sent between threads safely
6
6
|
7
7
= 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
+ | ^^^^
10
18
note: required by a bound in `requires_send`
11
19
--> test-not-send.rs:4:25
12
20
|
@@ -20,9 +28,21 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
20
28
| ^^^^ `Rc<()>` cannot be sent between threads safely
21
29
|
22
30
= 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
+ | ^^^^
26
46
note: required by a bound in `requires_send`
27
47
--> test-not-send.rs:4:25
28
48
|
0 commit comments