Closed
Description
bitflags
version 1.3.1 was recently released. nix
specifies a dependency on bitflags
with version constraint "1.1"
. Without a previously working Cargo.lock
file cargo
is now free to choose bitflags
version 1.3.1 to satisfy nix
's dependency. However, with that bitflags
version, nix
doesn't compile on rustc
version 1.45
. Here is one of the many errors I get:
error[E0658]: `if` is not allowed in a `const fn`
--> src/fcntl.rs:28:1
|
28 | / libc_bitflags! {
29 | | pub struct AtFlags: c_int {
30 | | AT_REMOVEDIR;
31 | | AT_SYMLINK_FOLLOW;
... |
39 | | }
40 | | }
| |_^
|
= note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Since nix
claims to build on rustc-1.41
and upwards, I think this is a bug/misconfiguration.