Possible regression in 1.12.0-beta.1

Is this the right place to post this?

https://travis-ci.org/rust-lang/book/jobs/153889563

   Compiling typemap v0.3.3
error[E0308]: mismatched types
   --> /home/travis/.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/travis/.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: failed to compile `mdbook v0.0.14 (https://github.com/azerupi/mdBook.git#8f8893ba)`, intermediate artifacts can be found at `/tmp/cargo-install.mO0iH0IXgP4L`
Caused by:
  Could not compile `vec_map`.

It works fine on stable and nightly: https://travis-ci.org/rust-lang/book/builds/153889561

This is a known issue and has been fixed on nightly. It has been nominated so I assume it will be brought up at the next libs meeting (and possibly backported to beta).

https://github.com/rust-lang/rust/issues/35721

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.