Skip to content

Commit

Permalink
tests: Update ui test output to nightly-2024-11-02
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 2, 2024
1 parent bac5eb3 commit 0b800e4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions tests/ui/pin_project/invalid-bounds.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: no rules expected the token `:`
error: no rules expected `:`
--> tests/ui/pin_project/invalid-bounds.rs:6:33
|
6 | struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
Expand All @@ -10,7 +10,7 @@ note: while trying to match `>`
| >)?
| ^

error: no rules expected the token `:`
error: no rules expected `:`
--> tests/ui/pin_project/invalid-bounds.rs:12:33
|
12 | struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
Expand Down Expand Up @@ -274,7 +274,7 @@ help: you might have meant to end the type parameters here
| $(: $generics_bound>)?
| +

error: no rules expected the token `Sized`
error: no rules expected `Sized`
--> tests/ui/pin_project/invalid-bounds.rs:36:34
|
36 | struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
Expand All @@ -286,7 +286,7 @@ note: while trying to match meta-variable `$generics_lifetime_bound:lifetime`
| $(: $generics_lifetime_bound:lifetime)?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: no rules expected the token `:`
error: no rules expected `:`
--> tests/ui/pin_project/invalid-bounds.rs:44:20
|
44 | T: 'static : Sized //~ ERROR no rules expected the token `:`
Expand All @@ -298,7 +298,7 @@ note: while trying to match `{`
| {
| ^

error: no rules expected the token `:`
error: no rules expected `:`
--> tests/ui/pin_project/invalid-bounds.rs:53:20
|
53 | T: 'static : ?Sized //~ ERROR no rules expected the token `:`
Expand Down Expand Up @@ -517,7 +517,7 @@ error: expected `{` after struct name, found `:`
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `Sized`
error: no rules expected `Sized`
--> tests/ui/pin_project/invalid-bounds.rs:89:21
|
89 | T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/pin_project/invalid.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: no rules expected the token `(`
error: no rules expected `(`
--> tests/ui/pin_project/invalid.rs:7:14
|
7 | #[pin()] //~ ERROR no rules expected the token `(`
Expand All @@ -10,7 +10,7 @@ note: while trying to match `]`
| $(#[$pin:ident])?
| ^

error: no rules expected the token `(`
error: no rules expected `(`
--> tests/ui/pin_project/invalid.rs:7:14
|
7 | #[pin()] //~ ERROR no rules expected the token `(`
Expand All @@ -22,7 +22,7 @@ note: while trying to match `]`
| $(#[$pin:ident])?
| ^

error: no rules expected the token `#`
error: no rules expected `#`
--> tests/ui/pin_project/invalid.rs:22:9
|
22 | #[pin] //~ ERROR no rules expected the token `#`
Expand All @@ -34,7 +34,7 @@ note: while trying to match meta-variable `$field_vis:vis`
| $field_vis:vis $field:ident: $field_ty:ty
| ^^^^^^^^^^^^^^

error: no rules expected the token `#`
error: no rules expected `#`
--> tests/ui/pin_project/invalid.rs:22:9
|
22 | #[pin] //~ ERROR no rules expected the token `#`
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/pin_project/overlapping_unpin_struct.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned
--> tests/ui/pin_project/overlapping_unpin_struct.rs:21:16
|
21 | is_unpin::<Foo<PhantomPinned>>(); //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^ within `_::__Origin<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Foo<PhantomPinned>: Unpin`
| ^^^^^^^^^^^^^^^^^^ within `_::__Origin<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned`
|
= note: consider using the `pin!` macro
consider using `Box::pin` if you need to access the pinned value outside of the current scope
Expand Down
20 changes: 10 additions & 10 deletions tests/ui/pin_project/unsupported.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: no rules expected the token `}`
error: no rules expected `}`
--> tests/ui/pin_project/unsupported.rs:5:1
|
5 | / pin_project! {
Expand All @@ -13,7 +13,7 @@ note: while trying to match meta-variable `$field_vis:vis`
| ^^^^^^^^^^^^^^
= note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `}`
error: no rules expected `}`
--> tests/ui/pin_project/unsupported.rs:5:1
|
5 | / pin_project! {
Expand All @@ -28,7 +28,7 @@ note: while trying to match meta-variable `$field_vis:vis`
| ^^^^^^^^^^^^^^
= note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `(`
error: no rules expected `(`
--> tests/ui/pin_project/unsupported.rs:10:19
|
10 | struct Struct2(); //~ ERROR no rules expected the token `(`
Expand All @@ -40,7 +40,7 @@ note: while trying to match `{`
| {
| ^

error: no rules expected the token `;`
error: no rules expected `;`
--> tests/ui/pin_project/unsupported.rs:14:19
|
14 | struct Struct3; //~ ERROR no rules expected the token `;`
Expand All @@ -52,7 +52,7 @@ note: while trying to match `{`
| {
| ^

error: no rules expected the token `(`
error: no rules expected `(`
--> tests/ui/pin_project/unsupported.rs:19:10
|
19 | A(u8)
Expand All @@ -64,7 +64,7 @@ note: while trying to match `}`
| }
| ^

error: no rules expected the token `(`
error: no rules expected `(`
--> tests/ui/pin_project/unsupported.rs:19:10
|
19 | A(u8)
Expand All @@ -76,7 +76,7 @@ note: while trying to match `}`
| }
| ^

error: no rules expected the token `union`
error: no rules expected identifier `union`
--> tests/ui/pin_project/unsupported.rs:23:1
|
23 | / pin_project! {
Expand All @@ -86,14 +86,14 @@ error: no rules expected the token `union`
27 | | }
| |_^ no rules expected this token in macro call
|
note: while trying to match `struct`
note: while trying to match keyword `struct`
--> src/lib.rs
|
| [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
| ^^^^^^
= note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `union`
error: no rules expected identifier `union`
--> tests/ui/pin_project/unsupported.rs:23:1
|
23 | / pin_project! {
Expand All @@ -103,7 +103,7 @@ error: no rules expected the token `union`
27 | | }
| |_^ no rules expected this token in macro call
|
note: while trying to match `struct`
note: while trying to match keyword `struct`
--> src/lib.rs
|
| [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
Expand Down

0 comments on commit 0b800e4

Please sign in to comment.