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

could not update anchor cli version 0.27.0 due to compiling enum-iterator-1.4.0 error #2507

Closed
KKQanT opened this issue Jun 1, 2023 · 1 comment
Labels
compile error Issues related to compile errors

Comments

@KKQanT
Copy link

KKQanT commented Jun 1, 2023

Compiling tracing v0.1.37
error[E0658]: use of unstable library feature 'array_from_fn'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:586:18
|
586 | Some(core::array::from_fn(|_| unreachable!()))
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #89379 rust-lang/rust#89379 for more information

error[E0658]: use of unstable library feature 'array_from_fn'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:589:18
|
589 | Some(core::array::from_fn(|_| x.clone()))
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #89379 rust-lang/rust#89379 for more information

error[E0658]: use of unstable library feature 'array_from_fn'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:595:18
|
595 | Some(core::array::from_fn(|_| unreachable!()))
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #89379 rust-lang/rust#89379 for more information

error[E0658]: use of unstable library feature 'array_from_fn'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:598:18
|
598 | Some(core::array::from_fn(|_| x.clone()))
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #89379 rust-lang/rust#89379 for more information

error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:454:18
|
454 | (!*self).then_some(true)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/enum-iterator-1.4.0/src/lib.rs:458:17
|
458 | (*self).then_some(false)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile enum-iterator due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile anchor-cli v0.27.0 (https://github.com/coral-xyz/anchor?tag=v0.27.0#3b451447), intermediate artifacts can be found at /tmp/cargo-installtj6n1W

Caused by:
build failed
Error: Failed to install 0.27.0, is it a valid version?

image

@acheroncrypto acheroncrypto added the compile error Issues related to compile errors label Jun 12, 2023
@acheroncrypto
Copy link
Collaborator

This is fixed in 0.28.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile error Issues related to compile errors
Projects
None yet
Development

No branches or pull requests

2 participants