You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use static_assertions::const_assert;fnmain(){const_assert!(false != true);}
until any other crate in my dependency graph enables static_assertions' "nightly" feature. Then it breaks my crate's formerly working code. This is not good behavior for a cargo feature. Code that works without a feature must also work with the feature, otherwise you end up with libraries that work in isolation but can't be combined together in one dependency graph.
The text was updated successfully, but these errors were encountered:
🤦♂️ wow I had never considered this, thank you for letting me know. I suppose the only real solution is to remove the const _ bit until it becomes stabilized in 1.37 (rust-lang/rust#61347).
This code works:
until any other crate in my dependency graph enables static_assertions' "nightly" feature. Then it breaks my crate's formerly working code. This is not good behavior for a cargo feature. Code that works without a feature must also work with the feature, otherwise you end up with libraries that work in isolation but can't be combined together in one dependency graph.
The text was updated successfully, but these errors were encountered: