-
Notifications
You must be signed in to change notification settings - Fork 292
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
Hashbrown fails to compile if 0.14.x and 0.15.x are in the same project, only one with the nightly feature #564
Comments
The problem appears to be that
Feature unification makes the requirement "When this feature is enabled your library MUST enable unstable |
I'm not sure there's anything actionable we can do on hashbrown's side... |
|
Summary: Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so that it compiles (see rust-lang/hashbrown#564) This wouldn't really be a problem if we correctly copied the internally used versions of Rust libraries, but we miss crate versions in most cases so sometimes skew causes problems like this. Disable broken sendstream test Fix #219 Test Plan: Export to PR Differential Revision: D64256300
Summary: Pull Request resolved: #264 Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so that it compiles (see rust-lang/hashbrown#564) This wouldn't really be a problem if we correctly copied the internally used versions of Rust libraries, but we miss crate versions in most cases so sometimes skew causes problems like this. Disable broken sendstream test Fix #219 Test Plan: Export to PR Differential Revision: D64256300
Summary: Pull Request resolved: #264 Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so that it compiles (see rust-lang/hashbrown#564) This wouldn't really be a problem if we correctly copied the internally used versions of Rust libraries, but we miss crate versions in most cases so sometimes skew causes problems like this. Disable broken sendstream test Fix #219 Test Plan: Export to PR Differential Revision: D64256300
Summary: Pull Request resolved: #264 Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so that it compiles (see rust-lang/hashbrown#564) This wouldn't really be a problem if we correctly copied the internally used versions of Rust libraries, but we miss crate versions in most cases so sometimes skew causes problems like this. Disable broken sendstream test Fix #219 Test Plan: Export to PR Differential Revision: D64256300
Summary: Pull Request resolved: #264 Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so that it compiles (see rust-lang/hashbrown#564) This wouldn't really be a problem if we correctly copied the internally used versions of Rust libraries, but we miss crate versions in most cases so sometimes skew causes problems like this. Disable broken sendstream test Fix #219 Test Plan: Export to PR Reviewed By: justintrudell Differential Revision: D64256300 fbshipit-source-id: 2d9965e3065dd9e8632a65b606d2b1210014777c
I just ran into this because of dependencies of my dependencies using hasbrown 14 but my code having 15. I think the best action for hashbrown here is to document this so it comes up in search easily. The error message was confusing but thankfully searching the issue tracker for "allocator_api" brought me here. |
seems to be the same or similar as #483 |
If a project (most likely indirectly through dependencies) depends on both version 0.14.x and 0.15.x of hashbrown, and only one of the two dependencies has the
nightly
feature flag set, the project will fail to compile due to using theallocator_api
without enabling the unstable feature for it:This can be reproduced by making a clean new project and adding the following two lines to
Cargo.toml
:If it's just one of the two the project compiles fine, regardless of the
nightly
feature flag. If neither or both have thenightly
feature flag everything compiles fine as well. However if one has thenightly
feature flag and the other does not, the project doesn't compile.The text was updated successfully, but these errors were encountered: