[INFO] fetching crate libdrm 0.0.2... [INFO] checking libdrm-0.0.2 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate libdrm 0.0.2 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate libdrm 0.0.2 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libdrm 0.0.2 [INFO] finished tweaking crates.io crate libdrm 0.0.2 [INFO] tweaked toml for crates.io crate libdrm 0.0.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 16 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding drm-sys v0.0.3 (latest: v0.7.0) [INFO] [stderr] Adding error-chain v0.10.0 (latest: v0.12.4) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding miniz_oxide v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding smallvec v0.3.4 (latest: v1.13.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v0.3.4 [INFO] [stderr] Downloaded drm-sys v0.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8f6834347039c8779fb6efcd971ab1e3f6960606f91d205dd23a720229f2dbc [INFO] running `Command { std: "docker" "start" "-a" "d8f6834347039c8779fb6efcd971ab1e3f6960606f91d205dd23a720229f2dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8f6834347039c8779fb6efcd971ab1e3f6960606f91d205dd23a720229f2dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8f6834347039c8779fb6efcd971ab1e3f6960606f91d205dd23a720229f2dbc", kill_on_drop: false }` [INFO] [stdout] d8f6834347039c8779fb6efcd971ab1e3f6960606f91d205dd23a720229f2dbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccc7676af62c3607f136c06c737e6a05f710ff99ee1f8a1e5c9c8cee29740bfc [INFO] running `Command { std: "docker" "start" "-a" "ccc7676af62c3607f136c06c737e6a05f710ff99ee1f8a1e5c9c8cee29740bfc", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling drm-sys v0.0.3 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking smallvec v0.3.4 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Checking error-chain v0.10.0 [INFO] [stderr] Checking libdrm v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `c_char` and `c_void` [INFO] [stdout] --> src/util.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub use libc::{ioctl, c_void, c_char}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/control/mod.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | (self.width) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - (self.width) [INFO] [stdout] 255 + self.width [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/control/mod.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | (self.height) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - (self.height) [INFO] [stdout] 260 + self.height [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `c_char` and `c_void` [INFO] [stdout] --> src/util.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub use libc::{ioctl, c_void, c_char}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/control/mod.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | (self.width) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - (self.width) [INFO] [stdout] 255 + self.width [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/control/mod.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | (self.height) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - (self.height) [INFO] [stdout] 260 + self.height [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/control/mod.rs:630:23 [INFO] [stdout] | [INFO] [stdout] 630 | info: try!(PropertyInfoType::load_from_device(device, raw)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/control/mod.rs:930:24 [INFO] [stdout] | [INFO] [stdout] 930 | let info = try!(PropertyInfo::load_from_device(device, handle.1)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/control/mod.rs:630:23 [INFO] [stdout] | [INFO] [stdout] 630 | info: try!(PropertyInfoType::load_from_device(device, raw)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/control/mod.rs:930:24 [INFO] [stdout] | [INFO] [stdout] 930 | let info = try!(PropertyInfo::load_from_device(device, handle.1)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/result.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | foreign_links { [INFO] [stdout] 3 | | Io(::std::io::Error); [INFO] [stdout] 4 | | } [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `conservative_impl_trait` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(conservative_impl_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/result.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | foreign_links { [INFO] [stdout] 3 | | Io(::std::io::Error); [INFO] [stdout] 4 | | } [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `conservative_impl_trait` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(conservative_impl_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/result.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | foreign_links { [INFO] [stdout] 3 | | Io(::std::io::Error); [INFO] [stdout] 4 | | } [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/result.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | foreign_links { [INFO] [stdout] 3 | | Io(::std::io::Error); [INFO] [stdout] 4 | | } [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/control/mod.rs:371:34 [INFO] [stdout] | [INFO] [stdout] 371 | fn load_properties(&self, device: &T) -> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/control/mod.rs:371:34 [INFO] [stdout] | [INFO] [stdout] 371 | fn load_properties(&self, device: &T) -> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ver`, `name`, `date`, and `desc` are never read [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct DriverInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 29 | ver: (i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | name: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | date: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | desc: Array [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DriverInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct AuthToken(u32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `AuthToken` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SM_SIZE` is never used [INFO] [stdout] --> src/util.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const SM_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ConnectorName` is never used [INFO] [stdout] --> src/control/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type ConnectorName = [i8; DRM_CONNECTOR_NAME_LEN as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DisplayName` is never used [INFO] [stdout] --> src/control/mod.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type DisplayName = [i8; DRM_DISPLAY_INFO_LEN as usize]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ModeName` is never used [INFO] [stdout] --> src/control/mod.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type ModeName = [i8; DRM_DISPLAY_MODE_LEN as usize]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `properties`, `encoders`, and `size` are never read [INFO] [stdout] --> src/control/mod.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub struct ConnectorInfo { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 423 | id: ConnectorId, [INFO] [stdout] 424 | properties: Array, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 425 | modes: Array, [INFO] [stdout] 426 | encoders: Array, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 431 | size: (u32, u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectorInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `crtc_id` is never read [INFO] [stdout] --> src/control/mod.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 435 | pub struct EncoderInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 436 | id: EncoderId, [INFO] [stdout] 437 | crtc_id: CrtcId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncoderInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gamma_length` is never read [INFO] [stdout] --> src/control/mod.rs:449:5 [INFO] [stdout] | [INFO] [stdout] 444 | pub struct CrtcInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 449 | gamma_length: GammaLength [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrtcInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `pitch`, `bpp`, and `depth` are never read [INFO] [stdout] --> src/control/mod.rs:455:5 [INFO] [stdout] | [INFO] [stdout] 453 | pub struct FramebufferInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 454 | id: FramebufferId, [INFO] [stdout] 455 | size: (u32, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 456 | pitch: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 457 | bpp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 458 | // TODO: Handle? [INFO] [stdout] 459 | depth: u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FramebufferInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `crtc_id`, `fb_id`, and `gamma_length` are never read [INFO] [stdout] --> src/control/mod.rs:465:5 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct PlaneInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 464 | id: PlaneId, [INFO] [stdout] 465 | crtc_id: CrtcId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 466 | fb_id: FramebufferId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | gamma_length: GammaLength [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlaneInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mutable`, `pending`, and `info` are never read [INFO] [stdout] --> src/control/mod.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 474 | pub struct PropertyInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 477 | mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 478 | pending: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 479 | info: PropertyInfoType [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PropertyInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/control/mod.rs:894:5 [INFO] [stdout] | [INFO] [stdout] 893 | pub struct ResourcePropertyInfo { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 894 | handle: PropertyHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcePropertyInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/control/buffer.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DumbMapping<'a, T> where T: 'a + AsRawFd + Sized { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 24 | buffer: &'a DumbBuffer<'a, T>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DumbMapping` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Unknown` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:757:13 [INFO] [stdout] | [INFO] [stdout] 757 | DRM_MODE_CONNECTOR_Unknown => ConnectorType::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_UNKNOWN` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Composite` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 762 | DRM_MODE_CONNECTOR_Composite => ConnectorType::Composite, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_COMPOSITE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Component` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:765:13 [INFO] [stdout] | [INFO] [stdout] 765 | DRM_MODE_CONNECTOR_Component => ConnectorType::Component, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_COMPONENT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_9PinDIN` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:766:13 [INFO] [stdout] | [INFO] [stdout] 766 | DRM_MODE_CONNECTOR_9PinDIN => ConnectorType::NinePinDIN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_9_PIN_DIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_DisplayPort` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:767:13 [INFO] [stdout] | [INFO] [stdout] 767 | DRM_MODE_CONNECTOR_DisplayPort => ConnectorType::DisplayPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_DISPLAY_PORT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_eDP` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:771:13 [INFO] [stdout] | [INFO] [stdout] 771 | DRM_MODE_CONNECTOR_eDP => ConnectorType::EmbeddedDisplayPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_E_DP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ver`, `name`, `date`, and `desc` are never read [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct DriverInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 29 | ver: (i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | name: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | date: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | desc: Array [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DriverInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct AuthToken(u32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `AuthToken` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SM_SIZE` is never used [INFO] [stdout] --> src/util.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const SM_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ConnectorName` is never used [INFO] [stdout] --> src/control/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type ConnectorName = [i8; DRM_CONNECTOR_NAME_LEN as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DisplayName` is never used [INFO] [stdout] --> src/control/mod.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type DisplayName = [i8; DRM_DISPLAY_INFO_LEN as usize]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ModeName` is never used [INFO] [stdout] --> src/control/mod.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type ModeName = [i8; DRM_DISPLAY_MODE_LEN as usize]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `properties`, `encoders`, and `size` are never read [INFO] [stdout] --> src/control/mod.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub struct ConnectorInfo { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 423 | id: ConnectorId, [INFO] [stdout] 424 | properties: Array, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 425 | modes: Array, [INFO] [stdout] 426 | encoders: Array, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 431 | size: (u32, u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectorInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `crtc_id` is never read [INFO] [stdout] --> src/control/mod.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 435 | pub struct EncoderInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 436 | id: EncoderId, [INFO] [stdout] 437 | crtc_id: CrtcId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncoderInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gamma_length` is never read [INFO] [stdout] --> src/control/mod.rs:449:5 [INFO] [stdout] | [INFO] [stdout] 444 | pub struct CrtcInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 449 | gamma_length: GammaLength [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrtcInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `pitch`, `bpp`, and `depth` are never read [INFO] [stdout] --> src/control/mod.rs:455:5 [INFO] [stdout] | [INFO] [stdout] 453 | pub struct FramebufferInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 454 | id: FramebufferId, [INFO] [stdout] 455 | size: (u32, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 456 | pitch: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 457 | bpp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 458 | // TODO: Handle? [INFO] [stdout] 459 | depth: u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FramebufferInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `crtc_id`, `fb_id`, and `gamma_length` are never read [INFO] [stdout] --> src/control/mod.rs:465:5 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct PlaneInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 464 | id: PlaneId, [INFO] [stdout] 465 | crtc_id: CrtcId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 466 | fb_id: FramebufferId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | gamma_length: GammaLength [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlaneInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mutable`, `pending`, and `info` are never read [INFO] [stdout] --> src/control/mod.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 474 | pub struct PropertyInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 477 | mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 478 | pending: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 479 | info: PropertyInfoType [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PropertyInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/control/mod.rs:894:5 [INFO] [stdout] | [INFO] [stdout] 893 | pub struct ResourcePropertyInfo { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 894 | handle: PropertyHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcePropertyInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/control/buffer.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DumbMapping<'a, T> where T: 'a + AsRawFd + Sized { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 24 | buffer: &'a DumbBuffer<'a, T>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DumbMapping` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Unknown` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:757:13 [INFO] [stdout] | [INFO] [stdout] 757 | DRM_MODE_CONNECTOR_Unknown => ConnectorType::Unknown, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_UNKNOWN` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Composite` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 762 | DRM_MODE_CONNECTOR_Composite => ConnectorType::Composite, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_COMPOSITE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_Component` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:765:13 [INFO] [stdout] | [INFO] [stdout] 765 | DRM_MODE_CONNECTOR_Component => ConnectorType::Component, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_COMPONENT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_9PinDIN` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:766:13 [INFO] [stdout] | [INFO] [stdout] 766 | DRM_MODE_CONNECTOR_9PinDIN => ConnectorType::NinePinDIN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_9_PIN_DIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_DisplayPort` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:767:13 [INFO] [stdout] | [INFO] [stdout] 767 | DRM_MODE_CONNECTOR_DisplayPort => ConnectorType::DisplayPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_DISPLAY_PORT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant in pattern `DRM_MODE_CONNECTOR_eDP` should have an upper case name [INFO] [stdout] --> src/control/mod.rs:771:13 [INFO] [stdout] | [INFO] [stdout] 771 | DRM_MODE_CONNECTOR_eDP => ConnectorType::EmbeddedDisplayPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `DRM_MODE_CONNECTOR_E_DP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enc` [INFO] [stdout] --> tests/test.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let enc = res.encoders().iter().map(| &id | card.encoder(id).unwrap()).next().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_enc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut data = vec![brightness; dbmap.as_slice().len()]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/test.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | let modes = con.modes().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[libdrm::control::Mode]` does not implement `Clone`, so calling `clone` on `&[libdrm::control::Mode]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | mref.set_crtc(crtc.id(), fb, &cons, (0, 0), Some(m)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 62 | let _ = mref.set_crtc(crtc.id(), fb, &cons, (0, 0), Some(m)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.68s [INFO] running `Command { std: "docker" "inspect" "ccc7676af62c3607f136c06c737e6a05f710ff99ee1f8a1e5c9c8cee29740bfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccc7676af62c3607f136c06c737e6a05f710ff99ee1f8a1e5c9c8cee29740bfc", kill_on_drop: false }` [INFO] [stdout] ccc7676af62c3607f136c06c737e6a05f710ff99ee1f8a1e5c9c8cee29740bfc