Skip to content

Commit 8336b84

Browse files
committed
Update ui tests for version 2.0.20
1 parent b1d5db5 commit 8336b84

9 files changed

Lines changed: 34 additions & 34 deletions

tests/ui/no-display.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its
99
|
1010
= note: the following trait bounds were not satisfied:
1111
`NoDisplay: std::fmt::Display`
12-
which is required by `&NoDisplay: thiserror::__private19::AsDisplay<'_>`
12+
which is required by `&NoDisplay: thiserror::__private20::AsDisplay<'_>`
1313
note: the trait `std::fmt::Display` must be implemented
1414
--> $RUST/core/src/fmt/mod.rs
1515
|
1616
| pub trait Display: PointeeSized {
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
= help: items from traits can only be used if the trait is implemented and in scope
1919
= note: the following trait defines an item `as_display`, perhaps you need to implement it:
20-
candidate #1: `thiserror::__private19::AsDisplay`
20+
candidate #1: `thiserror::__private20::AsDisplay`
2121

2222
error[E0277]: the trait bound `NoDisplay: Octal` is not satisfied
2323
--> tests/ui/no-display.rs:13:9

tests/ui/source-enum-not-error.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
22
--> tests/ui/source-enum-not-error.rs:9:14
33
|
44
4 | pub struct NotError;
5-
| ------------------- doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private19::AsDynError<'_>`
5+
| ------------------- doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private20::AsDynError<'_>`
66
...
77
9 | Broken { source: NotError },
88
| ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
1111
`NotError: std::error::Error`
12-
which is required by `NotError: thiserror::__private19::AsDynError<'_>`
12+
which is required by `NotError: thiserror::__private20::AsDynError<'_>`
1313
`&NotError: std::error::Error`
14-
which is required by `&NotError: thiserror::__private19::AsDynError<'_>`
14+
which is required by `&NotError: thiserror::__private20::AsDynError<'_>`
1515
note: the trait `std::error::Error` must be implemented
1616
--> $RUST/core/src/error.rs
1717
|
1818
| pub trait Error: Debug + Display {
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
= help: items from traits can only be used if the trait is implemented and in scope
2121
= note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
22-
candidate #1: `thiserror::__private19::AsDynError`
22+
candidate #1: `thiserror::__private20::AsDynError`

tests/ui/source-enum-unnamed-field-not-error.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
22
--> tests/ui/source-enum-unnamed-field-not-error.rs:9:12
33
|
44
4 | pub struct NotError;
5-
| ------------------- doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private19::AsDynError<'_>`
5+
| ------------------- doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private20::AsDynError<'_>`
66
...
77
9 | Broken(#[source] NotError),
88
| ^^^^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
1111
`NotError: std::error::Error`
12-
which is required by `NotError: thiserror::__private19::AsDynError<'_>`
12+
which is required by `NotError: thiserror::__private20::AsDynError<'_>`
1313
`&NotError: std::error::Error`
14-
which is required by `&NotError: thiserror::__private19::AsDynError<'_>`
14+
which is required by `&NotError: thiserror::__private20::AsDynError<'_>`
1515
note: the trait `std::error::Error` must be implemented
1616
--> $RUST/core/src/error.rs
1717
|
1818
| pub trait Error: Debug + Display {
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
= help: items from traits can only be used if the trait is implemented and in scope
2121
= note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
22-
candidate #1: `thiserror::__private19::AsDynError`
22+
candidate #1: `thiserror::__private20::AsDynError`

tests/ui/source-struct-not-error.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
22
--> tests/ui/source-struct-not-error.rs:9:5
33
|
44
4 | struct NotError;
5-
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private19::AsDynError<'_>`
5+
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private20::AsDynError<'_>`
66
...
77
9 | source: NotError,
88
| ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
1111
`NotError: std::error::Error`
12-
which is required by `NotError: thiserror::__private19::AsDynError<'_>`
12+
which is required by `NotError: thiserror::__private20::AsDynError<'_>`
1313
note: the trait `std::error::Error` must be implemented
1414
--> $RUST/core/src/error.rs
1515
|
1616
| pub trait Error: Debug + Display {
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
= help: items from traits can only be used if the trait is implemented and in scope
1919
= note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
20-
candidate #1: `thiserror::__private19::AsDynError`
20+
candidate #1: `thiserror::__private20::AsDynError`

tests/ui/source-struct-unnamed-field-not-error.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
22
--> tests/ui/source-struct-unnamed-field-not-error.rs:8:24
33
|
44
4 | struct NotError;
5-
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private19::AsDynError<'_>`
5+
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: std::error::Error` or `NotError: thiserror::__private20::AsDynError<'_>`
66
...
77
8 | pub struct ErrorStruct(#[source] NotError);
88
| ^^^^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
1111
`NotError: std::error::Error`
12-
which is required by `NotError: thiserror::__private19::AsDynError<'_>`
12+
which is required by `NotError: thiserror::__private20::AsDynError<'_>`
1313
note: the trait `std::error::Error` must be implemented
1414
--> $RUST/core/src/error.rs
1515
|
1616
| pub trait Error: Debug + Display {
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
= help: items from traits can only be used if the trait is implemented and in scope
1919
= note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it:
20-
candidate #1: `thiserror::__private19::AsDynError`
20+
candidate #1: `thiserror::__private20::AsDynError`

tests/ui/transparent-enum-not-error.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private19::AsDynError<'_>`
10+
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private20::AsDynError<'_>`
1111
|
1212
= note: the following trait bounds were not satisfied:
1313
`String: std::error::Error`
14-
which is required by `String: thiserror::__private19::AsDynError<'_>`
14+
which is required by `String: thiserror::__private20::AsDynError<'_>`
1515
`&String: std::error::Error`
16-
which is required by `&String: thiserror::__private19::AsDynError<'_>`
16+
which is required by `&String: thiserror::__private20::AsDynError<'_>`
1717
`str: Sized`
18-
which is required by `str: thiserror::__private19::AsDynError<'_>`
18+
which is required by `str: thiserror::__private20::AsDynError<'_>`
1919
`str: std::error::Error`
20-
which is required by `str: thiserror::__private19::AsDynError<'_>`
20+
which is required by `str: thiserror::__private20::AsDynError<'_>`

tests/ui/transparent-enum-unnamed-field-not-error.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private19::AsDynError<'_>`
10+
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private20::AsDynError<'_>`
1111
|
1212
= note: the following trait bounds were not satisfied:
1313
`String: std::error::Error`
14-
which is required by `String: thiserror::__private19::AsDynError<'_>`
14+
which is required by `String: thiserror::__private20::AsDynError<'_>`
1515
`&String: std::error::Error`
16-
which is required by `&String: thiserror::__private19::AsDynError<'_>`
16+
which is required by `&String: thiserror::__private20::AsDynError<'_>`
1717
`str: Sized`
18-
which is required by `str: thiserror::__private19::AsDynError<'_>`
18+
which is required by `str: thiserror::__private20::AsDynError<'_>`
1919
`str: std::error::Error`
20-
which is required by `str: thiserror::__private19::AsDynError<'_>`
20+
which is required by `str: thiserror::__private20::AsDynError<'_>`

tests/ui/transparent-struct-not-error.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trai
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private19::AsDynError<'_>`
10+
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private20::AsDynError<'_>`
1111
|
1212
= note: the following trait bounds were not satisfied:
1313
`String: std::error::Error`
14-
which is required by `String: thiserror::__private19::AsDynError<'_>`
14+
which is required by `String: thiserror::__private20::AsDynError<'_>`
1515
`str: Sized`
16-
which is required by `str: thiserror::__private19::AsDynError<'_>`
16+
which is required by `str: thiserror::__private20::AsDynError<'_>`
1717
`str: std::error::Error`
18-
which is required by `str: thiserror::__private19::AsDynError<'_>`
18+
which is required by `str: thiserror::__private20::AsDynError<'_>`

tests/ui/transparent-struct-unnamed-field-not-error.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trai
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private19::AsDynError<'_>`
10+
| ----------------- doesn't satisfy `String: std::error::Error` or `String: thiserror::__private20::AsDynError<'_>`
1111
|
1212
= note: the following trait bounds were not satisfied:
1313
`String: std::error::Error`
14-
which is required by `String: thiserror::__private19::AsDynError<'_>`
14+
which is required by `String: thiserror::__private20::AsDynError<'_>`
1515
`str: Sized`
16-
which is required by `str: thiserror::__private19::AsDynError<'_>`
16+
which is required by `str: thiserror::__private20::AsDynError<'_>`
1717
`str: std::error::Error`
18-
which is required by `str: thiserror::__private19::AsDynError<'_>`
18+
which is required by `str: thiserror::__private20::AsDynError<'_>`

0 commit comments

Comments
 (0)