[INFO] fetching crate webusb 0.5.0... [INFO] building webusb-0.5.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate webusb 0.5.0 into /workspace/builds/worker-0-tc1/source [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config [INFO] started tweaking crates.io crate webusb 0.5.0 [INFO] finished tweaking crates.io crate webusb 0.5.0 [INFO] tweaked toml for crates.io crate webusb 0.5.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate webusb 0.5.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate webusb 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deno_bindgen v0.6.0 [INFO] [stderr] Downloaded deno_bindgen_macro v0.6.0 [INFO] [stderr] Downloaded rusb v0.8.1 [INFO] [stderr] Downloaded libc v0.2.118 [INFO] [stderr] Downloaded flaky_test v0.1.0 [INFO] [stderr] Downloaded libusb1-sys v0.5.0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8baa1c3f5bab8ba6694552df2a1acd4b0adf4162690209a7a4621fc633bfff9a [INFO] running `Command { std: "docker" "start" "-a" "8baa1c3f5bab8ba6694552df2a1acd4b0adf4162690209a7a4621fc633bfff9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8baa1c3f5bab8ba6694552df2a1acd4b0adf4162690209a7a4621fc633bfff9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8baa1c3f5bab8ba6694552df2a1acd4b0adf4162690209a7a4621fc633bfff9a", kill_on_drop: false }` [INFO] [stdout] 8baa1c3f5bab8ba6694552df2a1acd4b0adf4162690209a7a4621fc633bfff9a [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 314158af4bd766949b7715ca0fd5f8312e6a1c699b80cbfdc7660ec2bfc56e1f [INFO] running `Command { std: "docker" "start" "-a" "314158af4bd766949b7715ca0fd5f8312e6a1c699b80cbfdc7660ec2bfc56e1f", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling rusb v0.8.1 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling webusb v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/lib.rs:393:15 [INFO] [stdout] | [INFO] [stdout] 393 | let interface = configuration [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/lib.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | let handle = match get_device_handle!(self) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:567:11 [INFO] [stdout] | [INFO] [stdout] 567 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:605:11 [INFO] [stdout] | [INFO] [stdout] 605 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `configuration_name` is never read [INFO] [stdout] --> src/lib.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct UsbConfiguration { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 90 | // Index of String Descriptor describing this configuration. [INFO] [stdout] 91 | configuration_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbConfiguration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alternate` is never read [INFO] [stdout] --> src/lib.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct UsbInterface { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 126 | interface_number: u8, [INFO] [stdout] 127 | alternate: UsbAlternateInterface, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbInterface` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `packet_size` is never read [INFO] [stdout] --> src/lib.rs:195:3 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct UsbEndpoint { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 195 | packet_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbEndpoint` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/lib.rs:487:11 [INFO] [stdout] | [INFO] [stdout] 487 | drop(handle_ref); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut DeviceHandle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 487 - drop(handle_ref); [INFO] [stdout] 487 + let _ = handle_ref; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `kGetDescriptorRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:1059:11 [INFO] [stdout] | [INFO] [stdout] 1059 | let kGetDescriptorRequest = 0x06; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `k_get_descriptor_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.29s [INFO] running `Command { std: "docker" "inspect" "314158af4bd766949b7715ca0fd5f8312e6a1c699b80cbfdc7660ec2bfc56e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "314158af4bd766949b7715ca0fd5f8312e6a1c699b80cbfdc7660ec2bfc56e1f", kill_on_drop: false }` [INFO] [stdout] 314158af4bd766949b7715ca0fd5f8312e6a1c699b80cbfdc7660ec2bfc56e1f [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f935f826ac2fdd6e240e57aa20cb25a8aa7e752d39954ddd3180273519cb9c3f [INFO] running `Command { std: "docker" "start" "-a" "f935f826ac2fdd6e240e57aa20cb25a8aa7e752d39954ddd3180273519cb9c3f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/lib.rs:393:15 [INFO] [stdout] | [INFO] [stdout] 393 | let interface = configuration [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/lib.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | let handle = match get_device_handle!(self) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:567:11 [INFO] [stdout] | [INFO] [stdout] 567 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:605:11 [INFO] [stdout] | [INFO] [stdout] 605 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `configuration_name` is never read [INFO] [stdout] --> src/lib.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct UsbConfiguration { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 90 | // Index of String Descriptor describing this configuration. [INFO] [stdout] 91 | configuration_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbConfiguration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alternate` is never read [INFO] [stdout] --> src/lib.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct UsbInterface { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 126 | interface_number: u8, [INFO] [stdout] 127 | alternate: UsbAlternateInterface, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbInterface` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `packet_size` is never read [INFO] [stdout] --> src/lib.rs:195:3 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct UsbEndpoint { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 195 | packet_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbEndpoint` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/lib.rs:487:11 [INFO] [stdout] | [INFO] [stdout] 487 | drop(handle_ref); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut DeviceHandle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 487 - drop(handle_ref); [INFO] [stdout] 487 + let _ = handle_ref; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `kGetDescriptorRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:1059:11 [INFO] [stdout] | [INFO] [stdout] 1059 | let kGetDescriptorRequest = 0x06; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `k_get_descriptor_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling flaky_test v0.1.0 [INFO] [stderr] Compiling webusb v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/lib.rs:1228:7 [INFO] [stdout] | [INFO] [stdout] 1228 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/lib.rs:1229:7 [INFO] [stdout] | [INFO] [stdout] 1229 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/lib.rs:1230:7 [INFO] [stdout] | [INFO] [stdout] 1230 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> examples/blink.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/lib.rs:393:15 [INFO] [stdout] | [INFO] [stdout] 393 | let interface = configuration [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/lib.rs:542:11 [INFO] [stdout] | [INFO] [stdout] 542 | let handle = match get_device_handle!(self) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:567:11 [INFO] [stdout] | [INFO] [stdout] 567 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:605:11 [INFO] [stdout] | [INFO] [stdout] 605 | let mut interface = match active_configuration [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1244:9 [INFO] [stdout] | [INFO] [stdout] 1244 | let mut device = test_device(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `configuration_name` is never read [INFO] [stdout] --> src/lib.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct UsbConfiguration { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 90 | // Index of String Descriptor describing this configuration. [INFO] [stdout] 91 | configuration_name: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbConfiguration` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alternate` is never read [INFO] [stdout] --> src/lib.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct UsbInterface { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 126 | interface_number: u8, [INFO] [stdout] 127 | alternate: UsbAlternateInterface, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbInterface` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `packet_size` is never read [INFO] [stdout] --> src/lib.rs:195:3 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct UsbEndpoint { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 195 | packet_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsbEndpoint` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/lib.rs:487:11 [INFO] [stdout] | [INFO] [stdout] 487 | drop(handle_ref); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut DeviceHandle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 487 - drop(handle_ref); [INFO] [stdout] 487 + let _ = handle_ref; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `kGetDescriptorRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:1059:11 [INFO] [stdout] | [INFO] [stdout] 1059 | let kGetDescriptorRequest = 0x06; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `k_get_descriptor_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/lib.rs:1481:9 [INFO] [stdout] | [INFO] [stdout] 1481 | test(&mut device); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/lib.rs:1495:9 [INFO] [stdout] | [INFO] [stdout] 1495 | test(&mut device); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.53s [INFO] running `Command { std: "docker" "inspect" "f935f826ac2fdd6e240e57aa20cb25a8aa7e752d39954ddd3180273519cb9c3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f935f826ac2fdd6e240e57aa20cb25a8aa7e752d39954ddd3180273519cb9c3f", kill_on_drop: false }` [INFO] [stdout] f935f826ac2fdd6e240e57aa20cb25a8aa7e752d39954ddd3180273519cb9c3f