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
I'm getting compilation errors when trying to run cargo test on a clean checkout (current master a2fed13):
~/3rdparty/io-uring:master ✓ $ cargo test
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:685:9
|
685 | assert_eq!(cb.flags, AsyncCancelFlags::ANY);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
cargo build works fine.
Full compilation error below:
~/3rdparty/io-uring:master ✓ $ cargo test
Compiling io-uring v0.7.0 (/home/seph/3rdparty/io-uring)
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:685:9
|
685 | assert_eq!(cb.flags, AsyncCancelFlags::ANY);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:688:9
|
688 | assert_eq!(cb.flags, AsyncCancelFlags::empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:692:9
|
692 | assert_eq!(cb.flags, AsyncCancelFlags::ALL);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:695:9
|
695 | assert_eq!(cb.flags, AsyncCancelFlags::FD);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:699:9
|
699 | assert_eq!(cb.flags, AsyncCancelFlags::FD | AsyncCancelFlags::ALL);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:702:9
|
702 | assert_eq!(cb.flags, AsyncCancelFlags::FD | AsyncCancelFlags::FD_FIXED);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
error[E0369]: binary operation `==` cannot be applied to type `types::AsyncCancelFlags`
--> src/types.rs:706:9
|
706 | / assert_eq!(
707 | | cb.flags,
708 | | AsyncCancelFlags::FD | AsyncCancelFlags::FD_FIXED | AsyncCancelFlags::ALL
709 | | );
| | ^
| |_________|
| |_________types::AsyncCancelFlags
| types::AsyncCancelFlags
|
note: an implementation of `PartialEq` might be missing for `types::AsyncCancelFlags`
--> src/types.rs:113:1
|
113 | / bitflags! {
114 | | /// Options for [`AsyncCancel`](super::AsyncCancel) and
115 | | /// [`Submitter::register_sync_cancel`](super::Submitter::register_sync_cancel).
116 | | #[derive(Debug, Clone, Copy)]
... |
142 | | }
143 | | }
| |_^ must implement `PartialEq`
= note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `types::AsyncCancelFlags` with `#[derive(PartialEq)]`
--> /home/seph/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.6.0/src/public.rs:17:9
|
17 + #[derive(PartialEq)]
18 | $vis struct $PublicBitFlags(<$PublicBitFlags as $crate::__private::PublicFlags>::Internal);
|
For more information about this error, try `rustc --explain E0369`.
error: could not compile `io-uring` (lib test) due to 7 previous errors
I'm getting compilation errors when trying to run
cargo test
on a clean checkout (current master a2fed13):cargo build
works fine.Full compilation error below:
The text was updated successfully, but these errors were encountered: