Update ui test suite to nightly-2021-10-07
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Tolnay · committed by David Tolnay · parent 6ae2d16 · Browse files · 3 files·+42 added−19 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+42 added−19 removed
- tests:+39 added−19 removed
- other:+3 added−0 removed
Provenance
- Commit
369af51- Tree
0f2c331- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
6ae2d16
3 files changed+42 added−19 removed
modified:.github/workflows/ci.yml+1 added
16 unmodified lines17181920212223242550 unmodified lines16 unmodified lines - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{matrix.rust}} components: rust-src - run: cargo test - run: cargo check --no-default-features - run: cargo check --features backtrace
50 unmodified linesmodified:tests/ui/no-impl.stderr+39 added-19 removed
1 error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied2- --> $DIR/no-impl.rs:7:133- |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:133+ |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`10 ...11-7 | let _ = anyhow!(Error);12- | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds13- |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 bounds13+ |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 implemented22+ --> $RUST/core/src/convert/mod.rs23+ |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.rs32+ |33+ | / pub trait Display {34+ | | /// Formats the value using the given formatter.35+ | | ///36+ | | /// # Examples37+... |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)added:rust-toolchain.toml+2 added
12[toolchain]components = ["rust-src"]