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

lang: Fix use of unstable library feature 'build_hasher_simple_hash_one' #2756

Merged
merged 2 commits into from
Dec 31, 2023

Conversation

acheroncrypto
Copy link
Collaborator

Problem

The new release of ahash uses build_hasher_simple_hash_one which was stabilized in 1.71 but the latest rustc version from the Solana tools is 1.68.0.

Compilation of solana-program crate doesn't work because of the version difference:

[dependencies]
solana-program = "1.17.13"

results in:

error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> src/random_state.rs:463:5
    |
463 | /     fn hash_one<T: Hash>(&self, x: T) -> u64 {
464 | |         RandomState::hash_one(self, x)
465 | |     }
    | |_____^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information
    = help: add `#![feature(build_hasher_simple_hash_one)]` to the crate attributes to enable

Summary of changes

Temporarily fixate ahash version to the latest compatible version until solana-labs/solana#33504 is resolved.

Copy link

vercel bot commented Dec 31, 2023

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added dependencies Pull requests that update a dependency file compile error Issues related to compile errors labels Dec 31, 2023
@acheroncrypto acheroncrypto merged commit 1fc92ab into coral-xyz:master Dec 31, 2023
48 of 49 checks passed
Willmish pushed a commit to Willmish/cantrip that referenced this pull request Feb 14, 2024
Avoid the build_haser_simple_hash_one error introduced in ahash 0.8.7

See similar error/workaround at coral-xyz/anchor#2756

Change-Id: I771f91fb8c5f66a04b93502205f7d6599a0789d5
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 dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant