[INFO] cloning repository https://github.com/roblabla/hidapi-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/roblabla/hidapi-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froblabla%2Fhidapi-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froblabla%2Fhidapi-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 940569a8d0c3114434162fd56f1c8ed2474cd45e [INFO] checking roblabla/hidapi-rs against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froblabla%2Fhidapi-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/roblabla/hidapi-rs on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/roblabla/hidapi-rs [INFO] finished tweaking git repo https://github.com/roblabla/hidapi-rs [INFO] tweaked toml for git repo https://github.com/roblabla/hidapi-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/roblabla/hidapi-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/roblabla/core-foundation-rs` [INFO] [stderr] Updating git repository `https://github.com/roblabla/io-kit-rs` [INFO] [stderr] Updating git repository `https://github.com/roblabla/mach` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f485455485e0bbb007efdaff2c45463fadca8f3b2b7f4ceed53dba05df7e5221 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f485455485e0bbb007efdaff2c45463fadca8f3b2b7f4ceed53dba05df7e5221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f485455485e0bbb007efdaff2c45463fadca8f3b2b7f4ceed53dba05df7e5221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f485455485e0bbb007efdaff2c45463fadca8f3b2b7f4ceed53dba05df7e5221", kill_on_drop: false }` [INFO] [stdout] f485455485e0bbb007efdaff2c45463fadca8f3b2b7f4ceed53dba05df7e5221 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea2c658af5c9953c2155fea3ef315b3bd992978557e2e71840769ad6b8743390 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ea2c658af5c9953c2155fea3ef315b3bd992978557e2e71840769ad6b8743390", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking humantime v2.0.1 [INFO] [stderr] Checking widestring v0.4.0 [INFO] [stderr] Checking ioctl-sys v0.6.0 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking hidapi-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `canon_child` [INFO] [stdout] --> src/os/linux.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let canon_child = child.canonicalize(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_canon_child` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vendor_id` [INFO] [stdout] --> src/os/linux.rs:325:22 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn hid_enumerate(vendor_id: u16, product_id: u16) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vendor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product_id` [INFO] [stdout] --> src/os/linux.rs:325:38 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn hid_enumerate(vendor_id: u16, product_id: u16) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/os/linux.rs:356:20 [INFO] [stdout] | [INFO] [stdout] 356 | .any(|(ty, item)| ty == HidTy::Global(HidGlobal::ReportId)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc_size` [INFO] [stdout] --> src/os/linux.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut desc_size = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_desc_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/os/linux.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_timeout(&mut self, data: &mut [u8], milliseconds: u32) -> HidResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `milliseconds` [INFO] [stdout] --> src/os/linux.rs:36:53 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_timeout(&mut self, data: &mut [u8], milliseconds: u32) -> HidResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/os/linux.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | Err(err) => Err(HidError::HidApiErrorWithCause { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/os/linux.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Err(err) => Err(HidError::HidApiErrorWithCause { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:68:43 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_manufacturer_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_product_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_serial_number_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_index` [INFO] [stdout] --> src/os/linux.rs:80:38 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn get_indexed_string(&self, string_index: i32, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:80:57 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn get_indexed_string(&self, string_index: i32, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/os/linux.rs:295:75 [INFO] [stdout] | [INFO] [stdout] 295 | if let Some(devinfo) = self.devinfo_usages.as_mut().and_then(|mut v| v.next()) { [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: variable does not need to be mutable [INFO] [stdout] --> src/os/linux.rs:344:9 [INFO] [stdout] | [INFO] [stdout] 344 | let mut desc_size = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uses_numbered_reports` [INFO] [stdout] --> src/os/linux.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | uses_numbered_reports: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pos` [INFO] [stdout] --> src/os/linux.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pos: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hidiocgrdescsize` [INFO] [stdout] --> src/os/linux.rs:389:4 [INFO] [stdout] | [INFO] [stdout] 389 | fn hidiocgrdescsize(f: &F) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | fn new() -> DeviceInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking env_logger v0.8.2 [INFO] [stdout] warning: unused variable: `canon_child` [INFO] [stdout] --> src/os/linux.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let canon_child = child.canonicalize(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_canon_child` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vendor_id` [INFO] [stdout] --> src/os/linux.rs:325:22 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn hid_enumerate(vendor_id: u16, product_id: u16) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vendor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product_id` [INFO] [stdout] --> src/os/linux.rs:325:38 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn hid_enumerate(vendor_id: u16, product_id: u16) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/os/linux.rs:356:20 [INFO] [stdout] | [INFO] [stdout] 356 | .any(|(ty, item)| ty == HidTy::Global(HidGlobal::ReportId)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc_size` [INFO] [stdout] --> src/os/linux.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut desc_size = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_desc_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/os/linux.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_timeout(&mut self, data: &mut [u8], milliseconds: u32) -> HidResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `milliseconds` [INFO] [stdout] --> src/os/linux.rs:36:53 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_timeout(&mut self, data: &mut [u8], milliseconds: u32) -> HidResult { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/os/linux.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | Err(err) => Err(HidError::HidApiErrorWithCause { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/os/linux.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Err(err) => Err(HidError::HidApiErrorWithCause { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:68:43 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_manufacturer_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_product_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_serial_number_string(&self, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_index` [INFO] [stdout] --> src/os/linux.rs:80:38 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn get_indexed_string(&self, string_index: i32, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> src/os/linux.rs:80:57 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn get_indexed_string(&self, string_index: i32, string: &mut [u16]) -> HidResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/os/linux.rs:295:75 [INFO] [stdout] | [INFO] [stdout] 295 | if let Some(devinfo) = self.devinfo_usages.as_mut().and_then(|mut v| v.next()) { [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: variable does not need to be mutable [INFO] [stdout] --> src/os/linux.rs:344:9 [INFO] [stdout] | [INFO] [stdout] 344 | let mut desc_size = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uses_numbered_reports` [INFO] [stdout] --> src/os/linux.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | uses_numbered_reports: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pos` [INFO] [stdout] --> src/os/linux.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pos: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hidiocgrdescsize` [INFO] [stdout] --> src/os/linux.rs:389:4 [INFO] [stdout] | [INFO] [stdout] 389 | fn hidiocgrdescsize(f: &F) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | fn new() -> DeviceInfo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.72s [INFO] running `Command { std: "docker" "inspect" "ea2c658af5c9953c2155fea3ef315b3bd992978557e2e71840769ad6b8743390", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea2c658af5c9953c2155fea3ef315b3bd992978557e2e71840769ad6b8743390", kill_on_drop: false }` [INFO] [stdout] ea2c658af5c9953c2155fea3ef315b3bd992978557e2e71840769ad6b8743390