Skip to content

Commit 369af51

Browse files
committed
Update ui test suite to nightly-2021-10-07
1 parent 6ae2d16 commit 369af51

File tree

3 files changed

+42
-19
lines changed

3 files changed

+42
-19
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: dtolnay/rust-toolchain@master
1919
with:
2020
toolchain: ${{matrix.rust}}
21+
components: rust-src
2122
- run: cargo test
2223
- run: cargo check --no-default-features
2324
- run: cargo check --features backtrace

rust-toolchain.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
components = ["rust-src"]

tests/ui/no-impl.stderr

+39-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
11
error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied
2-
--> $DIR/no-impl.rs:7:13
3-
|
4-
4 | struct Error;
5-
| -------------
6-
| |
7-
| doesn't satisfy `Error: Into<anyhow::Error>`
8-
| doesn't satisfy `Error: anyhow::private::kind::TraitKind`
9-
| doesn't satisfy `Error: std::fmt::Display`
2+
--> $DIR/tests/ui/no-impl.rs:7:13
3+
|
4+
4 | struct Error;
5+
| -------------
6+
| |
7+
| doesn't satisfy `Error: Into<anyhow::Error>`
8+
| doesn't satisfy `Error: anyhow::private::kind::TraitKind`
9+
| doesn't satisfy `Error: std::fmt::Display`
1010
...
11-
7 | let _ = anyhow!(Error);
12-
| ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
13-
|
14-
= note: the following trait bounds were not satisfied:
15-
`Error: Into<anyhow::Error>`
16-
which is required by `Error: anyhow::private::kind::TraitKind`
17-
`Error: std::fmt::Display`
18-
which is required by `&Error: anyhow::private::kind::AdhocKind`
19-
`&Error: Into<anyhow::Error>`
20-
which is required by `&Error: anyhow::private::kind::TraitKind`
21-
= note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)
11+
7 | let _ = anyhow!(Error);
12+
| ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
13+
|
14+
= note: the following trait bounds were not satisfied:
15+
`Error: Into<anyhow::Error>`
16+
which is required by `Error: anyhow::private::kind::TraitKind`
17+
`Error: std::fmt::Display`
18+
which is required by `&Error: anyhow::private::kind::AdhocKind`
19+
`&Error: Into<anyhow::Error>`
20+
which is required by `&Error: anyhow::private::kind::TraitKind`
21+
note: the following traits must be implemented
22+
--> $RUST/core/src/convert/mod.rs
23+
|
24+
| / pub trait Into<T>: Sized {
25+
| | /// Performs the conversion.
26+
| | #[stable(feature = "rust1", since = "1.0.0")]
27+
| | fn into(self) -> T;
28+
| | }
29+
| |_^
30+
|
31+
::: $RUST/core/src/fmt/mod.rs
32+
|
33+
| / pub trait Display {
34+
| | /// Formats the value using the given formatter.
35+
| | ///
36+
| | /// # Examples
37+
... |
38+
| | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
39+
| | }
40+
| |_^
41+
= note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)