-
Notifications
You must be signed in to change notification settings - Fork 462
bump quickcheck to 0.5 #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Seems it is not that trivial... |
@ignatenkobrain You're really on top of things! But yeah, there might be some breaking changes that need to be fixed. |
error[E0308]: mismatched types
--> regex-syntax/src/properties.rs:194:51
|
194 | e: Box::new(e),
| ^ expected enum `Expr`, found struct `std::boxed::Box`
|
= note: expected type `Expr`
found type `std::boxed::Box<Expr>`
error[E0271]: type mismatch resolving `<[closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_] as std::ops::FnOnce<(std::boxed::Box<Expr>,)>>::Output == std::boxed::Box<Expr>`
--> regex-syntax/src/properties.rs:192:28
|
192 | .chain(e.clone().shrink()
| ^^^^^ expected enum `Expr`, found struct `std::boxed::Box`
|
= note: expected type `Expr`
found type `std::boxed::Box<Expr>`
= note: required because of the requirements on the impl of `std::iter::Iterator` for `std::iter::Map<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, [closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_]>`
error[E0271]: type mismatch resolving `<std::iter::Chain<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, std::iter::Map<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, [closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_]>> as std::iter::Iterator>::Item == Expr`
--> regex-syntax/src/properties.rs:191:17
|
191 | / Box::new(e.clone().shrink()
192 | | .chain(e.clone().shrink()
193 | | .map(move |e| Group {
194 | | e: Box::new(e),
195 | | i: i.clone(),
196 | | name: name.clone(),
197 | | })))
| |______________________________________^ expected struct `std::boxed::Box`, found enum `Expr`
|
= note: expected type `std::boxed::Box<Expr>`
found type `Expr`
= note: required for the cast to the object type `std::iter::Iterator<Item=Expr>`
error[E0271]: type mismatch resolving `<[closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_] as std::ops::FnOnce<(std::boxed::Box<Expr>,)>>::Output == std::boxed::Box<Expr>`
--> regex-syntax/src/properties.rs:191:17
|
191 | / Box::new(e.clone().shrink()
192 | | .chain(e.clone().shrink()
193 | | .map(move |e| Group {
194 | | e: Box::new(e),
195 | | i: i.clone(),
196 | | name: name.clone(),
197 | | })))
| |______________________________________^ expected enum `Expr`, found struct `std::boxed::Box`
|
= note: expected type `Expr`
found type `std::boxed::Box<Expr>`
= note: required because of the requirements on the impl of `std::iter::Iterator` for `std::iter::Map<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, [closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_]>`
= note: required because of the requirements on the impl of `std::iter::Iterator` for `std::iter::Chain<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, std::iter::Map<std::boxed::Box<std::iter::Iterator<Item=std::boxed::Box<Expr>>>, [closure@regex-syntax/src/properties.rs:193:40: 197:36 i:_, name:_]>>`
= note: required for the cast to the object type `std::iter::Iterator<Item=Expr>`
error: aborting due to 4 previous errors Not entirely sure how to fix it... yet. |
That looks suspicious. I'll try to investigate later today. |
@BurntSushi I give up, have no idea why it doesn't work. |
I'll check it out when I get a chance. Thanks for trying! It is quite interesting that Windows CI passed... |
Just some hint: it started to happen after BurntSushi/quickcheck@6c96290 |
Oh hmm yeah, that's from this PR, which we noted as a breaking change: BurntSushi/quickcheck#154 |
ececd24
to
d0d6c50
Compare
Signed-off-by: Igor Gnatenko <[email protected]>
d0d6c50
to
f2ced64
Compare
@BurntSushi @cuviper wrote patch which I committed. Should work just fine. Also he pointed out that clone() is not necessary and could be replaced by: |
@ignatenkobrain Interesting, thanks for the fix! The extra @bors r+ |
📋 Looks like this PR is still in progress, ignoring approval |
@bors retry |
@bors r=BurntSushi |
@ignatenkobrain: 🔑 Insufficient privileges: Not in reviewers |
C'mon bors! @bors r+ |
📌 Commit f2ced64 has been approved by |
bump quickcheck to 0.5 Signed-off-by: Igor Gnatenko <[email protected]>
@ignatenkobrain Oh interesting. Did bors pick up on the "WIP" in the issue title? Cute. |
☀️ Test successful - status-appveyor, status-travis |
Signed-off-by: Igor Gnatenko [email protected]