Skip to content

Support indirect descriptors in all drivers. #505

Support indirect descriptors in all drivers.

Support indirect descriptors in all drivers. #505

GitHub Actions / clippy failed Jun 5, 2024 in 0s

clippy

7 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 7
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 284 in src/device/socket/vsock.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/socket/vsock.rs:284:42
    |
284 |             negotiated_features.contains(Features::RING_INDIRECT_DESC),
    |                                          ^^^^^^^^
    |                                          |
    |                                          use of undeclared type `Features`
    |                                          help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 278 in src/device/socket/vsock.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/socket/vsock.rs:278:42
    |
278 |             negotiated_features.contains(Features::RING_INDIRECT_DESC),
    |                                          ^^^^^^^^
    |                                          |
    |                                          use of undeclared type `Features`
    |                                          help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 272 in src/device/socket/vsock.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/socket/vsock.rs:272:42
    |
272 |             negotiated_features.contains(Features::RING_INDIRECT_DESC),
    |                                          ^^^^^^^^
    |                                          |
    |                                          use of undeclared type `Features`
    |                                          help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 24 in src/device/socket/vsock.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/socket/vsock.rs:24:67
    |
24  | const SUPPORTED_FEATURES: Feature = Feature::RING_EVENT_IDX.union(Features::RING_INDIRECT_DESC);
    |                                                                   ^^^^^^^^
    |                                                                   |
    |                                                                   use of undeclared type `Features`
    |                                                                   help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 212 in src/device/input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/input.rs:212:67
    |
212 | const SUPPORTED_FEATURES: Feature = Feature::RING_EVENT_IDX.union(Features::RING_INDIRECT_DESC);
    |                                                                   ^^^^^^^^
    |                                                                   |
    |                                                                   use of undeclared type `Features`
    |                                                                   help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 44 in src/device/input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/input.rs:44:42
    |
44  |             negotiated_features.contains(Features::RING_INDIRECT_DESC),
    |                                          ^^^^^^^^
    |                                          |
    |                                          use of undeclared type `Features`
    |                                          help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)

Check failure on line 38 in src/device/input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Features`

error[E0433]: failed to resolve: use of undeclared type `Features`
   --> src/device/input.rs:38:42
    |
38  |             negotiated_features.contains(Features::RING_INDIRECT_DESC),
    |                                          ^^^^^^^^
    |                                          |
    |                                          use of undeclared type `Features`
    |                                          help: a struct with a similar name exists: `Feature`
    |
note: these structs exist but are inaccessible
   --> src/device/console.rs:229:1
    |
229 | / bitflags! {
230 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
231 | |     struct Features: u64 {
232 | |         const SIZE                  = 1 << 0;
...   |
251 | |     }
252 | | }
    | |_^ `crate::device::console::Features`: not accessible
    |
   ::: src/device/net/mod.rs:21:1
    |
21  | / bitflags! {
22  | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
23  | |     struct Features: u64 {
24  | |         /// Device handles packets with partial checksum.
...   |
80  | |     }
81  | | }
    | |_^ `crate::device::net::Features`: not accessible
    |
   ::: src/device/gpu.rs:314:1
    |
314 | / bitflags! {
315 | |     #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]
316 | |     struct Features: u64 {
317 | |         /// virgl 3D mode is supported.
...   |
337 | |     }
338 | | }
    | |_^ `crate::device::gpu::Features`: not accessible
    = 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)