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

Build fails with Rust 1.54.0 #37

Closed
sfragis opened this issue Aug 13, 2021 · 3 comments
Closed

Build fails with Rust 1.54.0 #37

sfragis opened this issue Aug 13, 2021 · 3 comments

Comments

@sfragis
Copy link

sfragis commented Aug 13, 2021

Building rust-cv with Rust 1.54.0 fails due to this error:

   [...]
   Compiling cv-sfm v0.1.0 (/Users/fast/Projects/Personal/rust/rust-cv/cv-sfm)
error[E0658]: use of unstable library feature 'array_map'
    --> cv-sfm/src/lib.rs:1826:27
     |
1826 |         let poses = views.map(|view| {
     |                           ^^^
     |
     = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error[E0658]: use of unstable library feature 'array_map'
    --> cv-sfm/src/lib.rs:1844:23
     |
1844 |                 views.map(|view| {
     |                       ^^^
     |
     = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error[E0658]: use of unstable library feature 'array_map'
  --> cv-sfm/src/export.rs:95:50
   |
95 |             [(1, 1), (1, -1), (-1, -1), (-1, 1)].map(|(up, right)| {
   |                                                  ^^^
   |
   = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `cv-sfm`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

What version of Rust shall I use instead?

@xd009642
Copy link
Member

The CI only runs on nightly, so I'd default to running the latest nightly and then upgrading next time a newer unstable feature appears

@vadixidav
Copy link
Member

Building rust-cv with Rust 1.54.0 fails due to this error:

   [...]
   Compiling cv-sfm v0.1.0 (/Users/fast/Projects/Personal/rust/rust-cv/cv-sfm)
error[E0658]: use of unstable library feature 'array_map'
    --> cv-sfm/src/lib.rs:1826:27
     |
1826 |         let poses = views.map(|view| {
     |                           ^^^
     |
     = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error[E0658]: use of unstable library feature 'array_map'
    --> cv-sfm/src/lib.rs:1844:23
     |
1844 |                 views.map(|view| {
     |                       ^^^
     |
     = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error[E0658]: use of unstable library feature 'array_map'
  --> cv-sfm/src/export.rs:95:50
   |
95 |             [(1, 1), (1, -1), (-1, -1), (-1, 1)].map(|(up, right)| {
   |                                                  ^^^
   |
   = note: see issue #75243 <https://github.com/rust-lang/rust/issues/75243> for more information

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `cv-sfm`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

What version of Rust shall I use instead?

Sorry about that. I actually just changed the CI over to nightly again on main recently. I will be creating another official release of Rust CV once the next version of Rust comes out with the array map feature included, and you will be able to use that official release with Rust stable. I will leave this issue open until that is done.

@sfragis
Copy link
Author

sfragis commented Aug 13, 2021

Thank you, I tried with rust nightly and can confirm code builds (rustc 1.56.0-nightly (0fa319039 2021-08-12)).

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