Skip to content

bitflags 1.3.0 breaks nix #251

Closed
@taiki-e

Description

#187 breaks nix because it does not respect existing repr attributes.

error[E0692]: transparent struct cannot have other repr hints
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.22.0/src/sys/statvfs.rs:15:12
   |
13 | / libc_bitflags!(
14 | |     /// File system mount Flags
15 | |     #[repr(C)]
   | |            ^
16 | |     #[derive(Default)]
...  |
52 | |     }
53 | | );
   | |__^
   |
   = note: this error originates in the macro `::bitflags::bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0692`.

cc @flier @KodrAus

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions