[INFO] fetching crate libdrm 0.0.2... [INFO] checking libdrm-0.0.2 against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [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 e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "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" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddff57ef447f09ab4bbc207cd56c5feb906392faac554af92145bd9bf68ec0e0 [INFO] running `Command { std: "docker" "start" "-a" "ddff57ef447f09ab4bbc207cd56c5feb906392faac554af92145bd9bf68ec0e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddff57ef447f09ab4bbc207cd56c5feb906392faac554af92145bd9bf68ec0e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddff57ef447f09ab4bbc207cd56c5feb906392faac554af92145bd9bf68ec0e0", kill_on_drop: false }` [INFO] [stdout] ddff57ef447f09ab4bbc207cd56c5feb906392faac554af92145bd9bf68ec0e0 [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32ec67008d88d8fd02d643650d694090fcdc2e76eb3d1fa543d04a82abefa1e2 [INFO] running `Command { std: "docker" "start" "-a" "32ec67008d88d8fd02d643650d694090fcdc2e76eb3d1fa543d04a82abefa1e2", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking gimli v0.27.2 [INFO] [stderr] Compiling drm-sys v0.0.3 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking smallvec v0.3.4 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Checking object v0.30.3 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Checking addr2line v0.19.0 [INFO] [stderr] Checking error-chain v0.10.0 [INFO] [stderr] Checking libdrm v0.0.2 (/opt/rustwide/workdir) [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: 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 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: 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: 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: 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: 27 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: 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: 27 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: 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.93s [INFO] running `Command { std: "docker" "inspect" "32ec67008d88d8fd02d643650d694090fcdc2e76eb3d1fa543d04a82abefa1e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32ec67008d88d8fd02d643650d694090fcdc2e76eb3d1fa543d04a82abefa1e2", kill_on_drop: false }` [INFO] [stdout] 32ec67008d88d8fd02d643650d694090fcdc2e76eb3d1fa543d04a82abefa1e2