Skip to content

Fails to compile on voidlinux #34

@auronandace

Description

@auronandace

Here are the errors:

error[E0599]: the method `get` exists for reference `&Cell<libpulse_binding::mainloop::events::io::FlagSet>`, but its trait bounds were not satisfied
   --> /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-tokio-0.1.1/src/lib.rs:294:31
    |
294 |                       if events.get().contains(IoEventFlagSet::INPUT) {
    |                                 ^^^
    |
   ::: /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-binding-2.30.1/src/mainloop/events/io.rs:24:1
    |
24  | / bitflags! {
25  | |     /// IO event flag set.
26  | |     #[repr(transparent)]
27  | |     pub struct FlagSet: u32 {
...   |
39  | | }
    | |_- doesn't satisfy `_: Copy`
    |
    = note: the following trait bounds were not satisfied:
            `libpulse_binding::mainloop::events::io::FlagSet: Copy`

error[E0599]: the method `get` exists for reference `&Cell<libpulse_binding::mainloop::events::io::FlagSet>`, but its trait bounds were not satisfied
   --> /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-tokio-0.1.1/src/lib.rs:304:31
    |
304 |                       if events.get().contains(IoEventFlagSet::OUTPUT) {
    |                                 ^^^
    |
   ::: /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-binding-2.30.1/src/mainloop/events/io.rs:24:1
    |
24  | / bitflags! {
25  | |     /// IO event flag set.
26  | |     #[repr(transparent)]
27  | |     pub struct FlagSet: u32 {
...   |
39  | | }
    | |_- doesn't satisfy `_: Copy`
    |
    = note: the following trait bounds were not satisfied:
            `libpulse_binding::mainloop::events::io::FlagSet: Copy`

error[E0369]: binary operation `==` cannot be applied to type `libpulse_binding::mainloop::events::io::FlagSet`
   --> /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-tokio-0.1.1/src/lib.rs:314:30
    |
314 |                     if ready == IoEventFlagSet::NULL {
    |                        ----- ^^ -------------------- libpulse_binding::mainloop::events::io::FlagSet
    |                        |
    |                        libpulse_binding::mainloop::events::io::FlagSet
    |
note: the foreign item type `libpulse_binding::mainloop::events::io::FlagSet` doesn't implement `PartialEq`
   --> /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-binding-2.30.1/src/mainloop/events/io.rs:24:1
    |
24  | / bitflags! {
25  | |     /// IO event flag set.
26  | |     #[repr(transparent)]
27  | |     pub struct FlagSet: u32 {
...   |
39  | | }
    | |_^ not implement `PartialEq`
    = note: this error originates in the macro `$crate::__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the method `get` exists for reference `&Cell<libpulse_binding::mainloop::events::io::FlagSet>`, but its trait bounds were not satisfied
   --> /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-tokio-0.1.1/src/lib.rs:325:40
    |
325 |                       let wants = events.get();
    |                                          ^^^
    |
   ::: /home/auronandace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpulse-binding-2.30.1/src/mainloop/events/io.rs:24:1
    |
24  | / bitflags! {
25  | |     /// IO event flag set.
26  | |     #[repr(transparent)]
27  | |     pub struct FlagSet: u32 {
...   |
39  | | }
    | |_- doesn't satisfy `_: Copy`
    |
    = note: the following trait bounds were not satisfied:
            `libpulse_binding::mainloop::events::io::FlagSet: Copy`

Some errors have detailed explanations: E0369, E0599.
For more information about an error, try `rustc --explain E0369`.
error: could not compile `libpulse-tokio` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `i3stat v0.15.0`, intermediate artifacts can be found at `/tmp/cargo-installbpI5qJ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions