Update ui test suite to nightly-2021-10-07

This commit is contained in:
David Tolnay 2021-10-07 00:15:44 -04:00
parent f1df6c7416
commit da8a42c3f8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 49 additions and 23 deletions

View File

@ -26,6 +26,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly - uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- run: cargo test - run: cargo test
- run: cargo update -Z minimal-versions - run: cargo update -Z minimal-versions
- run: cargo build - run: cargo build

2
rust-toolchain.toml Normal file
View File

@ -0,0 +1,2 @@
[toolchain]
components = ["rust-src"]

View File

@ -1,25 +1,47 @@
error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
--> $DIR/not-repeatable.rs:7:13 --> $DIR/tests/ui/not-repeatable.rs:7:13
| |
3 | struct Ipv4Addr; 3 | struct Ipv4Addr;
| ---------------- | ----------------
| | | |
| method `quote_into_iter` not found for this | method `quote_into_iter` not found for this
| doesn't satisfy `Ipv4Addr: Iterator` | doesn't satisfy `Ipv4Addr: Iterator`
| doesn't satisfy `Ipv4Addr: ToTokens` | doesn't satisfy `Ipv4Addr: ToTokens`
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepIteratorExt` | doesn't satisfy `Ipv4Addr: quote::__private::ext::RepIteratorExt`
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepToTokensExt` | doesn't satisfy `Ipv4Addr: quote::__private::ext::RepToTokensExt`
... ...
7 | let _ = quote! { #(#ip)* }; 7 | let _ = quote! { #(#ip)* };
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds | ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
| |
= note: the following trait bounds were not satisfied: = note: the following trait bounds were not satisfied:
`Ipv4Addr: Iterator` `Ipv4Addr: Iterator`
which is required by `Ipv4Addr: quote::__private::ext::RepIteratorExt` which is required by `Ipv4Addr: quote::__private::ext::RepIteratorExt`
`&Ipv4Addr: Iterator` `&Ipv4Addr: Iterator`
which is required by `&Ipv4Addr: quote::__private::ext::RepIteratorExt` which is required by `&Ipv4Addr: quote::__private::ext::RepIteratorExt`
`Ipv4Addr: ToTokens` `Ipv4Addr: ToTokens`
which is required by `Ipv4Addr: quote::__private::ext::RepToTokensExt` which is required by `Ipv4Addr: quote::__private::ext::RepToTokensExt`
`&mut Ipv4Addr: Iterator` `&mut Ipv4Addr: Iterator`
which is required by `&mut Ipv4Addr: quote::__private::ext::RepIteratorExt` which is required by `&mut Ipv4Addr: quote::__private::ext::RepIteratorExt`
= note: this error originates in the macro `$crate::quote_bind_into_iter` (in Nightly builds, run with -Z macro-backtrace for more info) note: the following traits must be implemented
--> $RUST/core/src/iter/traits/iterator.rs
|
| / pub trait Iterator {
| | /// The type of the elements being iterated over.
| | #[stable(feature = "rust1", since = "1.0.0")]
| | type Item;
... |
| | }
| | }
| |__^
|
::: $DIR/src/to_tokens.rs:12:1
|
12 | / pub trait ToTokens {
13 | | /// Write `self` to the given `TokenStream`.
14 | | ///
15 | | /// The token append methods provided by the [`TokenStreamExt`] extension
... |
76 | | }
77 | | }
| |_^
= note: this error originates in the macro `$crate::quote_bind_into_iter` (in Nightly builds, run with -Z macro-backtrace for more info)