Skip to content

Commit 2b25bd9

Browse files
committed
Update ui test suite to nightly-2023-05-05
1 parent 72ee0b3 commit 2b25bd9

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

tests/ui/test-not-send.stderr

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
| ^^^^
1018
note: 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+
| ^^^^
2646
note: required by a bound in `requires_send`
2747
--> test-not-send.rs:4:25
2848
|

0 commit comments

Comments
 (0)