Skip to content

Commit

Permalink
Ui test changes for trybuild 1.0.49
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 8, 2021
1 parent 2cf5d1a commit 0253a0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ path = "compiletest.rs"

[dev-dependencies]
proc-macro2 = { path = "../.." }
trybuild = { version = "1.0", features = ["diff"] }
trybuild = { version = "1.0.49", features = ["diff"] }
8 changes: 4 additions & 4 deletions tests/ui/test-not-send.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: `proc_macro::Span` cannot be sent between threads safely
--> $DIR/test-not-send.rs:5:5
--> test-not-send.rs:5:5
|
5 | requires_send::<Span>();
| ^^^^^^^^^^^^^^^^^^^^^ `proc_macro::Span` cannot be sent between threads safely
Expand All @@ -8,13 +8,13 @@ error[E0277]: `proc_macro::Span` cannot be sent between threads safely
= note: required because it appears within the type `proc_macro2::imp::Span`
= note: required because it appears within the type `Span`
note: required by a bound in `requires_send`
--> $DIR/test-not-send.rs:4:25
--> test-not-send.rs:4:25
|
4 | fn requires_send<T: Send>() {}
| ^^^^ required by this bound in `requires_send`

error[E0277]: `Rc<()>` cannot be sent between threads safely
--> $DIR/test-not-send.rs:5:5
--> test-not-send.rs:5:5
|
5 | requires_send::<Span>();
| ^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
Expand All @@ -24,7 +24,7 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
= note: required because it appears within the type `PhantomData<proc_macro2::marker::ProcMacroAutoTraits>`
= note: required because it appears within the type `Span`
note: required by a bound in `requires_send`
--> $DIR/test-not-send.rs:4:25
--> test-not-send.rs:4:25
|
4 | fn requires_send<T: Send>() {}
| ^^^^ required by this bound in `requires_send`

0 comments on commit 0253a0b

Please sign in to comment.