Skip to content
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

compile error with nightly rustc #18

Closed
silvio opened this issue Aug 16, 2016 · 4 comments
Closed

compile error with nightly rustc #18

silvio opened this issue Aug 16, 2016 · 4 comments

Comments

@silvio
Copy link

silvio commented Aug 16, 2016

Hi, I have a compile problem with rustc nightly: rustc 1.12.0-nightly (197be89f3 2016-08-15).

error[E0308]: mismatched types
   --> /home/sfr/.cargo/registry/src/github.com-1ecc6299db9ec823/vec_map-0.6.0/src/lib.rs:952:84
    |
952 |     fn into_iter_covariant<'a, T>(iter: IntoIter<&'static T>) -> IntoIter<&'a T> { iter }
    |                                                                                    ^^^^ lifetime mismatch
    |
    = note: expected type `IntoIter<&'a T>`
    = note:    found type `IntoIter<&'static T>`
note: the lifetime 'a as defined on the block at 952:81...
   --> /home/sfr/.cargo/registry/src/github.com-1ecc6299db9ec823/vec_map-0.6.0/src/lib.rs:952:82
    |
952 |     fn into_iter_covariant<'a, T>(iter: IntoIter<&'static T>) -> IntoIter<&'a T> { iter }
    |                                                                                  ^^^^^^^^
    = note: ...does not necessarily outlive the static lifetime

error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: Could not compile `vec_map`.
@apasel422
Copy link
Contributor

Thanks for the report, which uncovered a bug that was introduced into the standard library. Hopefully it'll be fixed for tomorrow's nightly.

@tarcieri
Copy link

I'm now seeing the same breakage on the beta channel? https://travis-ci.org/cryptosphere/ithos/builds/153177895

@apasel422
Copy link
Contributor

Yes, the original problem made it into beta, and the fix hasn't been backported yet. This is not a bug in vec-map.

@silvio
Copy link
Author

silvio commented Aug 18, 2016

In rustc 1.13.0-nightly (aef6971ca 2016-08-17) fixed now.

@silvio silvio closed this as completed Aug 18, 2016
tarcieri added a commit to tarcieri/ithos that referenced this issue Aug 21, 2016
The vec_map crate breaks the build due to a regression that managed to get into
the beta channel.

See:

contain-rs/vec-map#18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants