[INFO] cloning repository https://github.com/redox-os/drivers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/redox-os/drivers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bbac3ff4f4d4b3bf8a271a1a29aa9ffc876835e0 [INFO] checking redox-os/drivers against master#9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/redox-os/drivers on toolchain 9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/redox-os/drivers [INFO] finished tweaking git repo https://github.com/redox-os/drivers [INFO] tweaked toml for git repo https://github.com/redox-os/drivers written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/redox-os/drivers 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" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/mio.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/orbclient.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/redox-daemon.git` [INFO] [stderr] Updating git repository `https://github.com/rw-vanc/acpi.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/rehid.git` [INFO] [stderr] Updating git repository `https://github.com/repnop/fdt.git` [INFO] [stderr] Updating git repository `https://github.com/jackpot51/hidreport` [INFO] [stderr] warning: Patch `mio v0.6.14 (https://gitlab.redox-os.org/redox-os/mio.git?branch=redox-unix#c9a70849)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_event v0.4.1 [INFO] [stderr] Downloaded gpt v3.1.0 [INFO] [stderr] Downloaded ransid v0.4.9 [INFO] [stderr] Downloaded utf8parse v0.1.1 [INFO] [stderr] Downloaded pci_types v0.10.0 [INFO] [stderr] Downloaded termion v4.0.3 [INFO] [stderr] Downloaded fdt v0.1.5 [INFO] [stderr] Downloaded redox-log v0.1.4 [INFO] [stderr] Downloaded redox-scheme v0.4.0 [INFO] [stderr] Downloaded vte v0.3.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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9849c218a7ae9028ac6fb2383346bd7feb8f989036b8d87d93107010c4fd1bf7 [INFO] running `Command { std: "docker" "start" "-a" "9849c218a7ae9028ac6fb2383346bd7feb8f989036b8d87d93107010c4fd1bf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9849c218a7ae9028ac6fb2383346bd7feb8f989036b8d87d93107010c4fd1bf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9849c218a7ae9028ac6fb2383346bd7feb8f989036b8d87d93107010c4fd1bf7", kill_on_drop: false }` [INFO] [stdout] 9849c218a7ae9028ac6fb2383346bd7feb8f989036b8d87d93107010c4fd1bf7 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21c8a6c0b07ae749dfacf46b532acaca9cabb62f317122497b9fc17686ea3a84 [INFO] running `Command { std: "docker" "start" "-a" "21c8a6c0b07ae749dfacf46b532acaca9cabb62f317122497b9fc17686ea3a84", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: Patch `mio v0.6.14 (https://gitlab.redox-os.org/redox-os/mio.git?branch=redox-unix#c9a70849)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking numtoa v0.2.4 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Checking fdt v0.1.5 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling anyhow v1.0.92 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling thiserror v1.0.68 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling orbclient v0.3.48 (https://gitlab.redox-os.org/redox-os/orbclient.git#4ba79212) [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking termion v4.0.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking owning_ref v0.3.3 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking parking_lot_core v0.2.14 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking parking_lot v0.4.8 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking chashmap v2.2.2 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking vte v0.3.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking ransid v0.4.9 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Checking spinning_top v0.2.5 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling hidreport v0.4.1 (https://github.com/jackpot51/hidreport#1cf47ffc) [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling scroll_derive v0.10.5 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking fdt v0.2.0-alpha1 (https://github.com/repnop/fdt.git#059bb238) [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking aml v0.16.3 (https://github.com/rw-vanc/acpi.git?branch=cumulative#e4eb9389) [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.68 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking rehid v0.1.0 (https://gitlab.redox-os.org/redox-os/rehid.git#43fe4619) [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking redox_syscall v0.5.9 [INFO] [stderr] Checking pci_types v0.10.0 [INFO] [stderr] Checking gpt v3.1.0 [INFO] [stderr] Checking redox-log v0.1.4 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking partitionlib v0.1.0 (/opt/rustwide/workdir/storage/partitionlib) [INFO] [stderr] Checking libredox v0.1.3 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking redox-scheme v0.4.0 [INFO] [stderr] Checking redox-daemon v0.1.3 (https://gitlab.redox-os.org/redox-os/redox-daemon.git#31ab115c) [INFO] [stderr] Checking redox_event v0.4.1 [INFO] [stderr] Checking graphics-ipc v0.1.0 (/opt/rustwide/workdir/graphics/graphics-ipc) [INFO] [stderr] Checking console-draw v0.1.0 (/opt/rustwide/workdir/graphics/console-draw) [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking pcid v0.1.0 (/opt/rustwide/workdir/pcid) [INFO] [stderr] Checking inputd v0.1.0 (/opt/rustwide/workdir/inputd) [INFO] [stderr] Checking driver-block v0.1.0 (/opt/rustwide/workdir/storage/driver-block) [INFO] [stderr] Checking driver-network v0.1.0 (/opt/rustwide/workdir/net/driver-network) [INFO] [stderr] Checking driver-graphics v0.1.0 (/opt/rustwide/workdir/graphics/driver-graphics) [INFO] [stderr] Checking bcm2835-sdhcid v0.1.0 (/opt/rustwide/workdir/storage/bcm2835-sdhcid) [INFO] [stderr] Checking vesad v0.1.0 (/opt/rustwide/workdir/graphics/vesad) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | d = (((d & 0xff) << 8) | h); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - d = (((d & 0xff) << 8) | h); [INFO] [stdout] 457 + d = ((d & 0xff) << 8) | h; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:557:20 [INFO] [stdout] | [INFO] [stdout] 557 | err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 557 - err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] 557 + err |= (reg_val & 0x2000) << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:558:20 [INFO] [stdout] | [INFO] [stdout] 558 | err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 558 - err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] 558 + err |= (reg_val & 0x4000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:559:20 [INFO] [stdout] | [INFO] [stdout] 559 | err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 559 - err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] 559 + err |= (reg_val & 0x8000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lived v0.1.0 (/opt/rustwide/workdir/storage/lived) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) unsafe fn wait_msec(mut n: usize) { [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] [stderr] Checking fbbootlogd v0.1.0 (/opt/rustwide/workdir/graphics/fbbootlogd) [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let mut cnt: i32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | x <<= 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | let mut d = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:619:17 [INFO] [stdout] | [INFO] [stdout] 619 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [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] --> storage/bcm2835-sdhcid/src/sd/mod.rs:619:13 [INFO] [stdout] | [INFO] [stdout] 619 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:675:17 [INFO] [stdout] | [INFO] [stdout] 675 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_SPI_MODE_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const C0_SPI_MODE_EN: u32 = 0x0010_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_HCTL_HS_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const C0_HCTL_HS_EN: u32 = 0x0000_0004; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_DATA` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const C1_SRST_DATA: u32 = 0x0400_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_CMD` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const C1_SRST_CMD: u32 = 0x0200_0000; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_TOUNIT_DIS` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const C1_TOUNIT_DIS: u32 = 0x000f_0000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_CLK_GENSEL` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:88:7 [INFO] [stdout] | [INFO] [stdout] 88 | const C1_CLK_GENSEL: u32 = 0x0000_0020; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V3` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:104:7 [INFO] [stdout] | [INFO] [stdout] 104 | const HOST_SPEC_V3: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V1` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:106:7 [INFO] [stdout] | [INFO] [stdout] 106 | const HOST_SPEC_V1: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking alxd v0.1.0 (/opt/rustwide/workdir/net/alxd) [INFO] [stderr] Checking ps2d v0.1.0 (/opt/rustwide/workdir/input/ps2d) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | d = (((d & 0xff) << 8) | h); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - d = (((d & 0xff) << 8) | h); [INFO] [stdout] 457 + d = ((d & 0xff) << 8) | h; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:557:20 [INFO] [stdout] | [INFO] [stdout] 557 | err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 557 - err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] 557 + err |= (reg_val & 0x2000) << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:558:20 [INFO] [stdout] | [INFO] [stdout] 558 | err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 558 - err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] 558 + err |= (reg_val & 0x4000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:559:20 [INFO] [stdout] | [INFO] [stdout] 559 | err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 559 - err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] 559 + err |= (reg_val & 0x8000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `goto_out` [INFO] [stdout] --> net/alxd/src/device/mod.rs:1731:22 [INFO] [stdout] | [INFO] [stdout] 1731 | macro_rules! goto_out { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking sb16d v0.1.0 (/opt/rustwide/workdir/audio/sb16d) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) unsafe fn wait_msec(mut n: usize) { [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: value assigned to `cnt` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let mut cnt: i32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | x <<= 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | let mut d = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:619:17 [INFO] [stdout] | [INFO] [stdout] 619 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [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] --> storage/bcm2835-sdhcid/src/sd/mod.rs:619:13 [INFO] [stdout] | [INFO] [stdout] 619 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:675:17 [INFO] [stdout] | [INFO] [stdout] 675 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_SPI_MODE_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const C0_SPI_MODE_EN: u32 = 0x0010_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_HCTL_HS_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const C0_HCTL_HS_EN: u32 = 0x0000_0004; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_DATA` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const C1_SRST_DATA: u32 = 0x0400_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_CMD` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const C1_SRST_CMD: u32 = 0x0200_0000; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_TOUNIT_DIS` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const C1_TOUNIT_DIS: u32 = 0x000f_0000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_CLK_GENSEL` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:88:7 [INFO] [stdout] | [INFO] [stdout] 88 | const C1_CLK_GENSEL: u32 = 0x0000_0020; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V3` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:104:7 [INFO] [stdout] | [INFO] [stdout] 104 | const HOST_SPEC_V3: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V1` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:106:7 [INFO] [stdout] | [INFO] [stdout] 106 | const HOST_SPEC_V1: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking amlserde v0.0.1 (/opt/rustwide/workdir/amlserde) [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> amlserde/src/lib.rs:215:39 [INFO] [stdout] | [INFO] [stdout] 215 | AmlSerdeValue::Buffer({ buffer_data.lock().to_owned() }) [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 215 - AmlSerdeValue::Buffer({ buffer_data.lock().to_owned() }) [INFO] [stdout] 215 + AmlSerdeValue::Buffer(buffer_data.lock().to_owned()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> amlserde/src/lib.rs:215:39 [INFO] [stdout] | [INFO] [stdout] 215 | AmlSerdeValue::Buffer({ buffer_data.lock().to_owned() }) [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 215 - AmlSerdeValue::Buffer({ buffer_data.lock().to_owned() }) [INFO] [stdout] 215 + AmlSerdeValue::Buffer(buffer_data.lock().to_owned()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config` and `next` are never used [INFO] [stdout] --> input/ps2d/src/controller.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 122 | impl Ps2 { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | fn config(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn next(&mut self) -> Option<(bool, u8)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ps2` is never read [INFO] [stdout] --> input/ps2d/src/state.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Ps2d char> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 22 | ps2: Ps2, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `irq` is never used [INFO] [stdout] --> input/ps2d/src/state.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl char> Ps2d { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RELATIVE_PACKET` is never used [INFO] [stdout] --> input/ps2d/src/vm.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const RELATIVE_PACKET: u32 = 0x00010000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:666:9 [INFO] [stdout] | [INFO] [stdout] 666 | val = self.read(WOL0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | err = self.read_phy_reg(MII_BMSR, &mut bmsr); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> input/ps2d/src/controller.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | x.write(data); [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] 257 | let _ = x.write(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1283:9 [INFO] [stdout] | [INFO] [stdout] 1283 | val = self.read(DMA); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking fbcond v0.1.0 (/opt/rustwide/workdir/graphics/fbcond) [INFO] [stdout] warning: methods `config` and `next` are never used [INFO] [stdout] --> input/ps2d/src/controller.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 122 | impl Ps2 { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | fn config(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn next(&mut self) -> Option<(bool, u8)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ps2` is never read [INFO] [stdout] --> input/ps2d/src/state.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Ps2d char> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 22 | ps2: Ps2, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `irq` is never used [INFO] [stdout] --> input/ps2d/src/state.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl char> Ps2d { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RELATIVE_PACKET` is never used [INFO] [stdout] --> input/ps2d/src/vm.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const RELATIVE_PACKET: u32 = 0x00010000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> input/ps2d/src/controller.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | x.write(data); [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] 257 | let _ = x.write(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> amlserde/src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | name: &String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `goto_out` [INFO] [stdout] --> net/alxd/src/device/mod.rs:1731:22 [INFO] [stdout] | [INFO] [stdout] 1731 | macro_rules! goto_out { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> amlserde/src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | name: &String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking acpid v0.1.0 (/opt/rustwide/workdir/acpid) [INFO] [stderr] Checking hwd v0.1.0 (/opt/rustwide/workdir/hwd) [INFO] [stderr] Checking xhcid v0.1.0 (/opt/rustwide/workdir/xhcid) [INFO] [stderr] Checking virtio-core v0.1.0 (/opt/rustwide/workdir/virtio-core) [INFO] [stderr] Checking ac97d v0.1.0 (/opt/rustwide/workdir/audio/ac97d) [INFO] [stderr] Checking ahcid v0.1.0 (/opt/rustwide/workdir/storage/ahcid) [INFO] [stderr] Checking nvmed v0.1.0 (/opt/rustwide/workdir/storage/nvmed) [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:666:9 [INFO] [stdout] | [INFO] [stdout] 666 | val = self.read(WOL0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | err = self.read_phy_reg(MII_BMSR, &mut bmsr); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> storage/ahcid/src/ahci/disk_ata.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DiskATA { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 24 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1283:9 [INFO] [stdout] | [INFO] [stdout] 1283 | val = self.read(DMA); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking bgad v0.1.0 (/opt/rustwide/workdir/graphics/bgad) [INFO] [stdout] warning: unused variable: `len_bytes` [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let len_bytes = match self.bytes.get(2..4) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | match ((self.0 >> 24) & 0b11) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - match ((self.0 >> 24) & 0b11) { [INFO] [stdout] 124 + match (self.0 >> 24) & 0b11 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rtl8168d v0.1.0 (/opt/rustwide/workdir/net/rtl8168d) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> acpid/src/acpi.rs:305:24 [INFO] [stdout] | [INFO] [stdout] 305 | for (aml_name, name, handle) in &symbol_list { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len_bytes` [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let len_bytes = match self.bytes.get(2..4) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> acpid/src/acpi.rs:305:24 [INFO] [stdout] | [INFO] [stdout] 305 | for (aml_name, name, handle) in &symbol_list { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ixgbed v1.0.0 (/opt/rustwide/workdir/net/ixgbed) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8168d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MappedBar` [INFO] [stdout] --> net/rtl8168d/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MappedBar, MsiSetFeatureInfo, PciFeature, PciFeatureInfo, PciFunctionHandle, SetFeatureInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> virtio-core/src/transport.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | for event in event_queue.map(Result::unwrap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [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] --> virtio-core/src/transport.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut event_queue = RawEventQueue::new().unwrap(); [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 variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] 11 + pub const IXGBE_CTRL_RST_MASK: u32 = IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 22 + pub const IXGBE_AUTOC_LMS_MASK: u32 = 0x7 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:23:51 [INFO] [stdout] | [INFO] [stdout] 23 | pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 23 + pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = 0x3 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:26:51 [INFO] [stdout] | [INFO] [stdout] 26 | pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] 26 + pub const IXGBE_AUTOC_10G_XAUI: u32 = 0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | (0x03C00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - (0x03C00 + (i * 4)) [INFO] [stdout] 40 + 0x03C00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | (0x0CC00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - (0x0CC00 + (i * 4)) [INFO] [stdout] 118 + 0x0CC00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | (0x06000 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (0x06000 + (i * 0x40)) [INFO] [stdout] 127 + 0x06000 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | (0x06004 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - (0x06004 + (i * 0x40)) [INFO] [stdout] 130 + 0x06004 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | (0x06008 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (0x06008 + (i * 0x40)) [INFO] [stdout] 133 + 0x06008 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | (0x06028 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - (0x06028 + (i * 0x40)) [INFO] [stdout] 136 + 0x06028 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | (0x06010 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - (0x06010 + (i * 0x40)) [INFO] [stdout] 153 + 0x06010 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | (0x06018 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - (0x06018 + (i * 0x40)) [INFO] [stdout] 156 + 0x06018 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | (0x00900 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - (0x00900 + (i * 4)) [INFO] [stdout] 211 + 0x00900 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-gpud v0.1.0 (/opt/rustwide/workdir/graphics/virtio-gpud) [INFO] [stdout] warning: method `mut_aml_context` is never used [INFO] [stdout] --> acpid/src/acpi.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl AmlSymbols { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn mut_aml_context(&mut self) -> &mut AmlContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_ctx` is never read [INFO] [stdout] --> acpid/src/acpi.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 335 | pub struct AcpiContext { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 347 | pub next_ctx: RwLock, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_signature_from_index`, `get_index_from_signature`, and `aml_symbols_reset` are never used [INFO] [stdout] --> acpid/src/acpi.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 350 | impl AcpiContext { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 468 | pub fn get_signature_from_index(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn get_index_from_signature(&self, signature: &SdtSignature) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn aml_symbols_reset(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dsdt` and `Ssdt` are never constructed [INFO] [stdout] --> acpid/src/acpi.rs:761:5 [INFO] [stdout] | [INFO] [stdout] 760 | pub enum PossibleAmlTables { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 761 | Dsdt(Dsdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] 762 | Ssdt(Ssdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi.rs:765:12 [INFO] [stdout] | [INFO] [stdout] 764 | impl PossibleAmlTables { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 765 | pub fn try_new(inner: Sdt) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remmapping_structs_area` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Dmar { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 38 | fn remmapping_structs_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `new`, and `iter` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Dmar { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn init(acpi_ctx: &AcpiContext) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn new(sdt: Sdt) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn iter(&self) -> DmarIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl DeviceScope { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 146 | pub fn try_new(raw: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `device_scope_area` and `map` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl DmarDrhd { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn device_scope_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn map(&self) -> DrhdPage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Drhd(DmarDrhd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 433 - Drhd(DmarDrhd), [INFO] [stdout] 433 + Drhd(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:434:10 [INFO] [stdout] | [INFO] [stdout] 434 | Rmrr(DmarRmrr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 434 - Rmrr(DmarRmrr), [INFO] [stdout] 434 + Rmrr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | Atsr(DmarAtsr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 435 - Atsr(DmarAtsr), [INFO] [stdout] 435 + Atsr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:436:10 [INFO] [stdout] | [INFO] [stdout] 436 | Rhsa(DmarRhsa), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 436 - Rhsa(DmarRhsa), [INFO] [stdout] 436 + Rhsa(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:437:10 [INFO] [stdout] | [INFO] [stdout] 437 | Andd(DmarAndd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 437 - Andd(DmarAndd), [INFO] [stdout] 437 + Andd(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | Satc(DmarSatc), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 440 - Satc(DmarSatc), [INFO] [stdout] 440 + Satc(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:442:14 [INFO] [stdout] | [INFO] [stdout] 442 | TooShort(EntryType), [INFO] [stdout] | -------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 442 - TooShort(EntryType), [INFO] [stdout] 442 + TooShort(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:443:13 [INFO] [stdout] | [INFO] [stdout] 443 | Unknown(u16), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 443 - Unknown(u16), [INFO] [stdout] 443 + Unknown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `map` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DrhdPage { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn map(base_phys: usize) -> syscall::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | #[derive(Clone, Copy, Debug, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EntryType` [INFO] [stdout] 420 | #[repr(u16)] [INFO] [stdout] 421 | pub enum EntryType { [INFO] [stdout] | --------- `EntryType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mut_aml_context` is never used [INFO] [stdout] --> acpid/src/acpi.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl AmlSymbols { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn mut_aml_context(&mut self) -> &mut AmlContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_ctx` is never read [INFO] [stdout] --> acpid/src/acpi.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 335 | pub struct AcpiContext { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 347 | pub next_ctx: RwLock, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_signature_from_index`, `get_index_from_signature`, and `aml_symbols_reset` are never used [INFO] [stdout] --> acpid/src/acpi.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 350 | impl AcpiContext { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 468 | pub fn get_signature_from_index(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn get_index_from_signature(&self, signature: &SdtSignature) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn aml_symbols_reset(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dsdt` and `Ssdt` are never constructed [INFO] [stdout] --> acpid/src/acpi.rs:761:5 [INFO] [stdout] | [INFO] [stdout] 760 | pub enum PossibleAmlTables { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 761 | Dsdt(Dsdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] 762 | Ssdt(Ssdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi.rs:765:12 [INFO] [stdout] | [INFO] [stdout] 764 | impl PossibleAmlTables { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 765 | pub fn try_new(inner: Sdt) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remmapping_structs_area` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Dmar { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 38 | fn remmapping_structs_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `new`, and `iter` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Dmar { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn init(acpi_ctx: &AcpiContext) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn new(sdt: Sdt) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn iter(&self) -> DmarIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl DeviceScope { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 146 | pub fn try_new(raw: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `device_scope_area` and `map` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl DmarDrhd { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn device_scope_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn map(&self) -> DrhdPage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Drhd(DmarDrhd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 433 - Drhd(DmarDrhd), [INFO] [stdout] 433 + Drhd(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:434:10 [INFO] [stdout] | [INFO] [stdout] 434 | Rmrr(DmarRmrr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 434 - Rmrr(DmarRmrr), [INFO] [stdout] 434 + Rmrr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | Atsr(DmarAtsr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 435 - Atsr(DmarAtsr), [INFO] [stdout] 435 + Atsr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:436:10 [INFO] [stdout] | [INFO] [stdout] 436 | Rhsa(DmarRhsa), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 436 - Rhsa(DmarRhsa), [INFO] [stdout] 436 + Rhsa(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:437:10 [INFO] [stdout] | [INFO] [stdout] 437 | Andd(DmarAndd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 437 - Andd(DmarAndd), [INFO] [stdout] 437 + Andd(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | Satc(DmarSatc), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 440 - Satc(DmarSatc), [INFO] [stdout] 440 + Satc(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:442:14 [INFO] [stdout] | [INFO] [stdout] 442 | TooShort(EntryType), [INFO] [stdout] | -------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 442 - TooShort(EntryType), [INFO] [stdout] 442 + TooShort(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:443:13 [INFO] [stdout] | [INFO] [stdout] 443 | Unknown(u16), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 443 - Unknown(u16), [INFO] [stdout] 443 + Unknown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8168d/src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `map` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DrhdPage { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn map(base_phys: usize) -> syscall::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | #[derive(Clone, Copy, Debug, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EntryType` [INFO] [stdout] 420 | #[repr(u16)] [INFO] [stdout] 421 | pub enum EntryType { [INFO] [stdout] | --------- `EntryType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:259:13 [INFO] [stdout] | [INFO] [stdout] 259 | let mut regs: &mut NvmeRegs = regs_guard.deref_mut(); [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] --> storage/nvmed/src/nvme/mod.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut buffer = self.buffer.get_mut().unwrap(); [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] --> storage/nvmed/src/nvme/mod.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let mut buffer_prp = self.buffer_prp.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:579:13 [INFO] [stdout] | [INFO] [stdout] 579 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:616:13 [INFO] [stdout] | [INFO] [stdout] 616 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-blkd v0.1.0 (/opt/rustwide/workdir/storage/virtio-blkd) [INFO] [stdout] warning: field `msi_info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | Msi { [INFO] [stdout] | --- field in this variant [INFO] [stdout] 105 | msi_info: MsiInfo, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_intx`, `is_msi`, and `is_msix` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl InterruptMethod { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 112 | fn is_intx(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn is_msi(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn is_msix(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AtomicCmdId` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | pub type AtomicCmdId = AtomicU16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pcid_interface`, `next_sqid`, `next_cqid`, and `next_avail_submission_epoch` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct Nvme { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 188 | interrupt_method: Mutex, [INFO] [stdout] 189 | pcid_interface: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | next_sqid: AtomicSqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 204 | next_cqid: AtomicCqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 205 | [INFO] [stdout] 206 | next_avail_submission_epoch: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FullSqHandling` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | pub enum FullSqHandling { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_features` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NvmeCmd { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_metadata_after_data` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl IdentifyNamespaceData { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn has_metadata_after_data(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Best`, `Better`, `Good`, and `Degraded` are never constructed [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum RelativePerformance { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 105 | Best = 0b00, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Better, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] 108 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativePerformance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_performance`, `is_available`, and `metadata_size` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl LbaFormat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 123 | pub fn relative_performance(&self) -> RelativePerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn metadata_size(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_spin` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl NvmeCompQueue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | fn complete_spin(&mut self, cmd_opt: Option<(u16, NvmeCmd)>) -> (u16, NvmeComp) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl NvmeCmdQueue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-netd v0.1.0 (/opt/rustwide/workdir/net/virtio-netd) [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> virtio-core/src/transport.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | for event in event_queue.map(Result::unwrap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [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] --> virtio-core/src/transport.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut event_queue = RawEventQueue::new().unwrap(); [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 variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIRTIO_GPU_FLAG_FENCE` is never used [INFO] [stdout] --> graphics/virtio-gpud/src/main.rs:112:7 [INFO] [stdout] | [INFO] [stdout] 112 | const VIRTIO_GPU_FLAG_FENCE: u32 = 1 << 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cursor_queue` and `transport` are never read [INFO] [stdout] --> graphics/virtio-gpud/src/scheme.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct VirtGpuAdapter<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 51 | control_queue: Arc>, [INFO] [stdout] 52 | cursor_queue: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 53 | transport: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_request_fenced` is never used [INFO] [stdout] --> graphics/virtio-gpud/src/scheme.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 57 | impl VirtGpuAdapter<'_> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | async fn send_request_fenced(&self, request: Dma) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rtl8139d v0.1.0 (/opt/rustwide/workdir/net/rtl8139d) [INFO] [stderr] Checking ihdad v0.1.0 (/opt/rustwide/workdir/audio/ihdad) [INFO] [stdout] warning: constant `VIRTIO_GPU_FLAG_FENCE` is never used [INFO] [stdout] --> graphics/virtio-gpud/src/main.rs:112:7 [INFO] [stdout] | [INFO] [stdout] 112 | const VIRTIO_GPU_FLAG_FENCE: u32 = 1 << 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cursor_queue` and `transport` are never read [INFO] [stdout] --> graphics/virtio-gpud/src/scheme.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct VirtGpuAdapter<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 51 | control_queue: Arc>, [INFO] [stdout] 52 | cursor_queue: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 53 | transport: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_request_fenced` is never used [INFO] [stdout] --> graphics/virtio-gpud/src/scheme.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 57 | impl VirtGpuAdapter<'_> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | async fn send_request_fenced(&self, request: Dma) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8168d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MappedBar` [INFO] [stdout] --> net/rtl8168d/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MappedBar, MsiSetFeatureInfo, PciFeature, PciFeatureInfo, PciFunctionHandle, SetFeatureInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8168d/src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8139d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ided v0.1.0 (/opt/rustwide/workdir/storage/ided) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] 11 + pub const IXGBE_CTRL_RST_MASK: u32 = IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 22 + pub const IXGBE_AUTOC_LMS_MASK: u32 = 0x7 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:23:51 [INFO] [stdout] | [INFO] [stdout] 23 | pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 23 + pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = 0x3 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:26:51 [INFO] [stdout] | [INFO] [stdout] 26 | pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] 26 + pub const IXGBE_AUTOC_10G_XAUI: u32 = 0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | (0x03C00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - (0x03C00 + (i * 4)) [INFO] [stdout] 40 + 0x03C00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | (0x0CC00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - (0x0CC00 + (i * 4)) [INFO] [stdout] 118 + 0x0CC00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | (0x06000 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (0x06000 + (i * 0x40)) [INFO] [stdout] 127 + 0x06000 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | (0x06004 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - (0x06004 + (i * 0x40)) [INFO] [stdout] 130 + 0x06004 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | (0x06008 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (0x06008 + (i * 0x40)) [INFO] [stdout] 133 + 0x06008 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MappedBar` [INFO] [stdout] --> net/rtl8139d/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MappedBar, MsiSetFeatureInfo, PciFeature, PciFeatureInfo, PciFunctionHandle, SetFeatureInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | (0x06028 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - (0x06028 + (i * 0x40)) [INFO] [stdout] 136 + 0x06028 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | (0x06010 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - (0x06010 + (i * 0x40)) [INFO] [stdout] 153 + 0x06010 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | (0x06018 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - (0x06018 + (i * 0x40)) [INFO] [stdout] 156 + 0x06018 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | (0x00900 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - (0x00900 + (i * 4)) [INFO] [stdout] 211 + 0x00900 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking e1000d v0.1.0 (/opt/rustwide/workdir/net/e1000d) [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8139d/src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXDW` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const IMS_TXDW: u32 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXQE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const IMS_TXQE: u32 = 1 << 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_LSC` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const IMS_LSC: u32 = 1 << 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCTL_MPE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const RCTL_MPE: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RD_EOP` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const RD_EOP: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TD_DD` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | const TD_DD: u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TSD_TOK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const TSD_TOK: u32 = 1 << 15; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_8K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const RCR_RBLEN_8K: u32 = 0b00 << 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_16K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const RCR_RBLEN_16K: u32 = 0b01 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_32K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RCR_RBLEN_32K: u32 = 0b10 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_MASK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const RCR_RBLEN_MASK: u32 = 0b11 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AER` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const RCR_AER: u32 = 1 << 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AR` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const RCR_AR: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | match ((self.0 >> 24) & 0b11) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - match ((self.0 >> 24) & 0b11) { [INFO] [stdout] 124 + match (self.0 >> 24) & 0b11 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:259:13 [INFO] [stdout] | [INFO] [stdout] 259 | let mut regs: &mut NvmeRegs = regs_guard.deref_mut(); [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] --> storage/nvmed/src/nvme/mod.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut buffer = self.buffer.get_mut().unwrap(); [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] --> storage/nvmed/src/nvme/mod.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let mut buffer_prp = self.buffer_prp.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:579:13 [INFO] [stdout] | [INFO] [stdout] 579 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:616:13 [INFO] [stdout] | [INFO] [stdout] 616 | let comp = self.submit_and_complete_admin_command(|cid| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msi_info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | Msi { [INFO] [stdout] | --- field in this variant [INFO] [stdout] 105 | msi_info: MsiInfo, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_intx`, `is_msi`, and `is_msix` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl InterruptMethod { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 112 | fn is_intx(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn is_msi(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn is_msix(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AtomicCmdId` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | pub type AtomicCmdId = AtomicU16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pcid_interface`, `next_sqid`, `next_cqid`, and `next_avail_submission_epoch` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct Nvme { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 188 | interrupt_method: Mutex, [INFO] [stdout] 189 | pcid_interface: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | next_sqid: AtomicSqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 204 | next_cqid: AtomicCqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 205 | [INFO] [stdout] 206 | next_avail_submission_epoch: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FullSqHandling` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | pub enum FullSqHandling { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_features` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NvmeCmd { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_metadata_after_data` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl IdentifyNamespaceData { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn has_metadata_after_data(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Best`, `Better`, `Good`, and `Degraded` are never constructed [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum RelativePerformance { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 105 | Best = 0b00, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Better, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] 108 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativePerformance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_performance`, `is_available`, and `metadata_size` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl LbaFormat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 123 | pub fn relative_performance(&self) -> RelativePerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn metadata_size(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_spin` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl NvmeCompQueue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | fn complete_spin(&mut self, cmd_opt: Option<(u16, NvmeCmd)>) -> (u16, NvmeComp) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl NvmeCmdQueue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut corbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize_bytes` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | corbsize_bytes = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | corbsize_bytes = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | corbsize_bytes = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | let mut rirbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut rirbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | rirbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | rirbsize_bytes = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | rirbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | rirbsize_bytes = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | rirbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | rirbsize_bytes = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking vboxd v0.1.0 (/opt/rustwide/workdir/vboxd) [INFO] [stdout] warning: constant `IMS_TXDW` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const IMS_TXDW: u32 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXQE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const IMS_TXQE: u32 = 1 << 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_LSC` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const IMS_LSC: u32 = 1 << 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCTL_MPE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const RCTL_MPE: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RD_EOP` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const RD_EOP: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TD_DD` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | const TD_DD: u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codec` [INFO] [stdout] --> audio/ihdad/src/hda/device.rs:628:30 [INFO] [stdout] | [INFO] [stdout] 628 | pub fn dump_codec(&self, codec: u8) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> audio/ihdad/src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bpp` and `eventack` are never read [INFO] [stdout] --> vboxd/src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 145 | struct VboxDisplayChange { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 149 | bpp: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 150 | eventack: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `width`, and `height` are never used [INFO] [stdout] --> vboxd/src/bga.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bga { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn read(&mut self, index: u16) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn width(&mut self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn height(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pcid-spawner v0.1.0 (/opt/rustwide/workdir/pcid-spawner) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8139d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MappedBar` [INFO] [stdout] --> net/rtl8139d/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MappedBar, MsiSetFeatureInfo, PciFeature, PciFeatureInfo, PciFunctionHandle, SetFeatureInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 713 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 714 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:717:5 [INFO] [stdout] | [INFO] [stdout] 716 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 717 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 719 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 720 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 721 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 722 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 723 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 38 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const USB_SETUP_DIR_SHIFT: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut corbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize_bytes` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | corbsize_bytes = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | corbsize_bytes = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | corbsize_bytes = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | let mut rirbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut rirbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | rirbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | rirbsize_bytes = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | rirbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | rirbsize_bytes = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | rirbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | rirbsize_bytes = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codec` [INFO] [stdout] --> audio/ihdad/src/hda/device.rs:628:30 [INFO] [stdout] | [INFO] [stdout] 628 | pub fn dump_codec(&self, codec: u8) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbhubd v0.1.0 (/opt/rustwide/workdir/usbhubd) [INFO] [stderr] Checking usbhidd v0.1.0 (/opt/rustwide/workdir/input/usbhidd) [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> storage/ahcid/src/ahci/disk_ata.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DiskATA { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 24 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbctl v0.1.0 (/opt/rustwide/workdir/usbctl) [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8139d/src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> audio/ihdad/src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TSD_TOK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const TSD_TOK: u32 = 1 << 15; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_8K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const RCR_RBLEN_8K: u32 = 0b00 << 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_16K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const RCR_RBLEN_16K: u32 = 0b01 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_32K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RCR_RBLEN_32K: u32 = 0b10 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_MASK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const RCR_RBLEN_MASK: u32 = 0b11 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AER` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const RCR_AER: u32 = 1 << 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AR` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const RCR_AR: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhubd/src/main.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_num` [INFO] [stdout] --> usbhubd/src/main.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_desc` [INFO] [stdout] --> usbhubd/src/main.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbscsid v0.1.0 (/opt/rustwide/workdir/storage/usbscsid) [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> input/usbhidd/src/main.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 207 | let (conf_desc, conf_num, (if_desc, endp_desc_opt, hid_desc)) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | static GB: [[char; 2]; 87] = [ [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DVORAK` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | static DVORAK: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `AZERTY` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | static AZERTY: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BEPO` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | static BEPO: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IT` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | static IT: [[char; 2]; 58] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_REPORT_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const SET_REPORT_REQ: u8 = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_IDLE_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const GET_IDLE_REQ: u8 = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_PROTOCOL_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_PROTOCOL_REQ: u8 = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_PROTOCOL_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const SET_PROTOCOL_REQ: u8 = 0xB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_report` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn set_report( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idle` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_idle( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_protocol(handle: &XhciClientHandle, if_num: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_protocol` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_protocol( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhubd/src/main.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_num` [INFO] [stdout] --> usbhubd/src/main.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_desc` [INFO] [stdout] --> usbhubd/src/main.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> input/usbhidd/src/main.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 207 | let (conf_desc, conf_num, (if_desc, endp_desc_opt, hid_desc)) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | static GB: [[char; 2]; 87] = [ [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DVORAK` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | static DVORAK: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `AZERTY` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | static AZERTY: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BEPO` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | static BEPO: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IT` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | static IT: [[char; 2]; 58] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> input/usbhidd/src/keymap.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_REPORT_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const SET_REPORT_REQ: u8 = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_IDLE_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const GET_IDLE_REQ: u8 = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_PROTOCOL_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_PROTOCOL_REQ: u8 = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_PROTOCOL_REQ` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const SET_PROTOCOL_REQ: u8 = 0xB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_report` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn set_report( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idle` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_idle( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_protocol(handle: &XhciClientHandle, if_num: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_protocol` is never used [INFO] [stdout] --> input/usbhidd/src/reqs.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_protocol( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bpp` and `eventack` are never read [INFO] [stdout] --> vboxd/src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 145 | struct VboxDisplayChange { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 149 | bpp: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 150 | eventack: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `width`, and `height` are never used [INFO] [stdout] --> vboxd/src/bga.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bga { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn read(&mut self, index: u16) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn width(&mut self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn height(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BosAnyDevDesc`, `BosSuperSpeedDesc`, and `bos_capability_descs` [INFO] [stdout] --> xhcid/src/usb/mod.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::bos::{bos_capability_descs, BosAnyDevDesc, BosDescriptor, BosSuperSpeedDesc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::hub::*` [INFO] [stdout] --> xhcid/src/usb/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::hub::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SetupReq` [INFO] [stdout] --> xhcid/src/usb/mod.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::setup::{Setup, SetupReq}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> xhcid/src/xhci/device_enumerator.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | self.hci.reset_port((port_array_index as usize)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - self.hci.reset_port((port_array_index as usize)); [INFO] [stdout] 159 + self.hci.reset_port(port_array_index as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ESPIPE`, `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | ENOTDIR, EPROTO, ESPIPE, MODE_CHR, MODE_DIR, MODE_FILE, O_DIRECTORY, O_RDWR, O_STAT, O_WRONLY, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | SEEK_CUR, SEEK_END, SEEK_SET, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:322:10 [INFO] [stdout] | [INFO] [stdout] 322 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 334 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | config_desc: &ConfDesc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dev_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | dev_desc: &DevDesc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dev_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | config_desc: &ConfDesc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dev_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | dev_desc: &DevDesc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dev_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_lun` is never read [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct BulkOnlyTransport<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | max_lun: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SUPP_OPCODES_CMD_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const REPORT_SUPP_OPCODES_CMD_LEN: u8 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_REPORT_SUPP_OPCODES_ALLOC_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const MIN_REPORT_SUPP_OPCODES_ALLOC_LEN: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_lun` is never read [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct BulkOnlyTransport<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | max_lun: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SUPP_OPCODES_CMD_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const REPORT_SUPP_OPCODES_CMD_LEN: u8 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_REPORT_SUPP_OPCODES_ALLOC_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const MIN_REPORT_SUPP_OPCODES_ALLOC_LEN: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BosAnyDevDesc`, `BosSuperSpeedDesc`, and `bos_capability_descs` [INFO] [stdout] --> xhcid/src/usb/mod.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::bos::{bos_capability_descs, BosAnyDevDesc, BosDescriptor, BosSuperSpeedDesc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::hub::*` [INFO] [stdout] --> xhcid/src/usb/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::hub::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SetupReq` [INFO] [stdout] --> xhcid/src/usb/mod.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::setup::{Setup, SetupReq}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> xhcid/src/xhci/device_enumerator.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | self.hci.reset_port((port_array_index as usize)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - self.hci.reset_port((port_array_index as usize)); [INFO] [stdout] 159 + self.hci.reset_port(port_array_index as usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ESPIPE`, `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | ENOTDIR, EPROTO, ESPIPE, MODE_CHR, MODE_DIR, MODE_FILE, O_DIRECTORY, O_RDWR, O_STAT, O_WRONLY, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | SEEK_CUR, SEEK_END, SEEK_SET, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:322:10 [INFO] [stdout] | [INFO] [stdout] 322 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 334 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 713 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 714 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:717:5 [INFO] [stdout] | [INFO] [stdout] 716 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 717 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 719 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 720 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 721 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 722 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 723 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 38 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const USB_SETUP_DIR_SHIFT: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:772:17 [INFO] [stdout] | [INFO] [stdout] 772 | let mut ring = match self [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] --> xhcid/src/xhci/mod.rs:787:17 [INFO] [stdout] | [INFO] [stdout] 787 | let mut port_state = PortState { [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] --> xhcid/src/xhci/mod.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [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] --> xhcid/src/xhci/mod.rs:823:21 [INFO] [stdout] | [INFO] [stdout] 823 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [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] --> xhcid/src/xhci/mod.rs:772:17 [INFO] [stdout] | [INFO] [stdout] 772 | let mut ring = match self [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] --> xhcid/src/xhci/mod.rs:787:17 [INFO] [stdout] | [INFO] [stdout] 787 | let mut port_state = PortState { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slot_ty` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:993:9 [INFO] [stdout] | [INFO] [stdout] 993 | slot_ty: u8, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slot_ty` [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] --> xhcid/src/xhci/mod.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [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] --> xhcid/src/xhci/mod.rs:997:13 [INFO] [stdout] | [INFO] [stdout] 997 | let mut ring = Ring::new(self.cap.ac64(), 16, true)?; [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] --> xhcid/src/xhci/mod.rs:823:21 [INFO] [stdout] | [INFO] [stdout] 823 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:594:9 [INFO] [stdout] | [INFO] [stdout] 594 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:604:17 [INFO] [stdout] | [INFO] [stdout] 604 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:664:9 [INFO] [stdout] | [INFO] [stdout] 664 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slot_ty` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:993:9 [INFO] [stdout] | [INFO] [stdout] 993 | slot_ty: u8, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slot_ty` [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] --> xhcid/src/xhci/mod.rs:997:13 [INFO] [stdout] | [INFO] [stdout] 997 | let mut ring = Ring::new(self.cap.ac64(), 16, true)?; [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] --> xhcid/src/xhci/scheme.rs:1159:13 [INFO] [stdout] | [INFO] [stdout] 1159 | let mut req: ConfigureEndpointsReq = [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1273:9 [INFO] [stdout] | [INFO] [stdout] 1273 | direction: PortReqDirection, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1278:13 [INFO] [stdout] | [INFO] [stdout] 1278 | let mut port_state = self [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `supports_superspeed` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1434:13 [INFO] [stdout] | [INFO] [stdout] 1434 | let supports_superspeed = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_supports_superspeed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `supports_superspeedplus` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1436:13 [INFO] [stdout] | [INFO] [stdout] 1436 | let supports_superspeedplus = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_supports_superspeedplus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:594:9 [INFO] [stdout] | [INFO] [stdout] 594 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:604:17 [INFO] [stdout] | [INFO] [stdout] 604 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:664:9 [INFO] [stdout] | [INFO] [stdout] 664 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2254:13 [INFO] [stdout] | [INFO] [stdout] 2254 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2372 | XhciEndpCtlReq::Status => match ep_if_state { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2378 | XhciEndpCtlReq::Reset { no_clear_feature } => match ep_if_state { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2387 | XhciEndpCtlReq::Transfer { direction, count } => match ep_if_state { [INFO] [stdout] | --------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2374:17 [INFO] [stdout] | [INFO] [stdout] 2374 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2383:17 [INFO] [stdout] | [INFO] [stdout] 2383 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2418:17 [INFO] [stdout] | [INFO] [stdout] 2418 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2453:13 [INFO] [stdout] | [INFO] [stdout] 2453 | let mut endpoint_state = port_state [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] --> xhcid/src/xhci/scheme.rs:2482:21 [INFO] [stdout] | [INFO] [stdout] 2482 | let mut endpoint_state = port_state [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] --> xhcid/src/xhci/scheme.rs:2550:13 [INFO] [stdout] | [INFO] [stdout] 2550 | let mut ep_if_state = &mut port_state [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] --> xhcid/src/xhci/scheme.rs:2580:21 [INFO] [stdout] | [INFO] [stdout] 2580 | let mut ep_state = port_state [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] --> xhcid/src/xhci/scheme.rs:1159:13 [INFO] [stdout] | [INFO] [stdout] 1159 | let mut req: ConfigureEndpointsReq = [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1273:9 [INFO] [stdout] | [INFO] [stdout] 1273 | direction: PortReqDirection, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1278:13 [INFO] [stdout] | [INFO] [stdout] 1278 | let mut port_state = self [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `supports_superspeed` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1434:13 [INFO] [stdout] | [INFO] [stdout] 1434 | let supports_superspeed = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_supports_superspeed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `supports_superspeedplus` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1436:13 [INFO] [stdout] | [INFO] [stdout] 1436 | let supports_superspeedplus = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_supports_superspeedplus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2254:13 [INFO] [stdout] | [INFO] [stdout] 2254 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2372 | XhciEndpCtlReq::Status => match ep_if_state { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2378 | XhciEndpCtlReq::Reset { no_clear_feature } => match ep_if_state { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2387 | XhciEndpCtlReq::Transfer { direction, count } => match ep_if_state { [INFO] [stdout] | --------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2374:17 [INFO] [stdout] | [INFO] [stdout] 2374 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2383:17 [INFO] [stdout] | [INFO] [stdout] 2383 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2418:17 [INFO] [stdout] | [INFO] [stdout] 2418 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2422:13 [INFO] [stdout] | [INFO] [stdout] 2422 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2453:13 [INFO] [stdout] | [INFO] [stdout] 2453 | let mut endpoint_state = port_state [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] --> xhcid/src/xhci/scheme.rs:2482:21 [INFO] [stdout] | [INFO] [stdout] 2482 | let mut endpoint_state = port_state [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] --> xhcid/src/xhci/scheme.rs:2550:13 [INFO] [stdout] | [INFO] [stdout] 2550 | let mut ep_if_state = &mut port_state [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] --> xhcid/src/xhci/scheme.rs:2580:21 [INFO] [stdout] | [INFO] [stdout] 2580 | let mut ep_state = port_state [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 258 | / loop { [INFO] [stdout] 259 | | trace!("count: {}", count); [INFO] [stdout] 260 | | let event_trb = &mut event_ring.ring.trbs[event_trb_index]; [INFO] [stdout] ... | [INFO] [stdout] 310 | | event_trb_index = event_ring.ring.next_index(); [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 312 | trace!("Exited event loop!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::log` which comes from the expansion of the macro `trace` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 258 | / loop { [INFO] [stdout] 259 | | trace!("count: {}", count); [INFO] [stdout] 260 | | let event_trb = &mut event_ring.ring.trbs[event_trb_index]; [INFO] [stdout] ... | [INFO] [stdout] 310 | | event_trb_index = event_ring.ring.next_index(); [INFO] [stdout] 311 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 312 | trace!("Exited event loop!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::log` which comes from the expansion of the macro `trace` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> xhcid/src/xhci/device_enumerator.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | let (len, flags) = { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut event_queue = [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] --> xhcid/src/xhci/irq_reactor.rs:530:16 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn run(mut self) { [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] --> xhcid/src/xhci/irq_reactor.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let mut endpoint_state = slot_state.endpoint_states.get_mut(&id.endpoint_num)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_num` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1587:32 [INFO] [stdout] | [INFO] [stdout] 1587 | fn port_req_init_st(&self, port_num: usize, req: &PortReq) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_port_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let mut ports = self.ports.lock().unwrap(); [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] --> xhcid/src/xhci/mod.rs:599:17 [INFO] [stdout] | [INFO] [stdout] 599 | let mut flags; [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] --> xhcid/src/xhci/mod.rs:601:21 [INFO] [stdout] | [INFO] [stdout] 601 | let mut ports = self.ports.lock().unwrap(); [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] --> xhcid/src/xhci/mod.rs:672:17 [INFO] [stdout] | [INFO] [stdout] 672 | let mut int = &mut run.ints[index]; [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] --> xhcid/src/xhci/mod.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | let mut int = &mut run.ints[index]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> xhcid/src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let mut capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/main.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> xhcid/src/xhci/device_enumerator.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | let (len, flags) = { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut event_queue = [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] --> xhcid/src/xhci/irq_reactor.rs:530:16 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn run(mut self) { [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] --> xhcid/src/xhci/irq_reactor.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let mut endpoint_state = slot_state.endpoint_states.get_mut(&id.endpoint_num)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_num` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1587:32 [INFO] [stdout] | [INFO] [stdout] 1587 | fn port_req_init_st(&self, port_num: usize, req: &PortReq) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_port_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_int_method` is never used [INFO] [stdout] --> xhcid/src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_int_method( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 713 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 714 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:717:5 [INFO] [stdout] | [INFO] [stdout] 716 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 717 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 719 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 720 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 721 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 722 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 723 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ssac` and `sublink_speed_attr` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BosSuperSpeedPlusDesc { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 73 | pub fn ssac(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sublink_speed_attr(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 - Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] 118 + Usb2Ext(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 119 - SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] 119 + SuperSpeed(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 120 - SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] 120 + SuperSpeedPlus(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_superspeed` and `is_superspeedplus` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl BosAnyDevDesc { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 125 | pub fn is_superspeed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_superspeedplus(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bos_capability_descs` is never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn bos_capability_descs<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `minor_usb_vers` and `major_usb_vers` are never used [INFO] [stdout] --> xhcid/src/usb/device.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl DeviceDescriptor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 86 | /// Gets the USB Minor Version [INFO] [stdout] 87 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn major_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 38 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HubFeature` is never used [INFO] [stdout] --> xhcid/src/usb/hub.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum HubFeature { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubFeature` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SetupReq` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum SetupReq { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetch_bos_desc` is never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 94 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | async fn fetch_bos_desc( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pcid_handle` is never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct Xhci { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 274 | pcid_handle: Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS1_MAX_SLOTS_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:143:11 [INFO] [stdout] | [INFO] [stdout] 143 | pub const HCS_PARAMS1_MAX_SLOTS_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_BIT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:149:11 [INFO] [stdout] | [INFO] [stdout] 149 | pub const HCS_PARAMS2_SPR_BIT: u32 = 1 << HCS_PARAMS2_SPR_SHIFT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | pub const HCS_PARAMS2_SPR_SHIFT: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spr` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl CapabilityRegs { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn spr(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnabledOrDisabled`, `Default`, and `Addressed` are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum SlotState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 33 | EnabledOrDisabled = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | Default = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | Addressed = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pages` is never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct ScratchpadBufferArray { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 181 | pub entries: Dma<[ScratchpadBufferEntry]>, [INFO] [stdout] 182 | pub pages: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read` is never used [INFO] [stdout] --> xhcid/src/xhci/doorbell.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Doorbell { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 7 | pub fn read(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> xhcid/src/xhci/event.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl EventRing { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn next(&mut self) -> &mut Trb { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum CapabilityId { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 40 | // bit 0 is reserved [INFO] [stdout] 41 | UsbLegacySupport = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | SupportedProtocol, [INFO] [stdout] 43 | ExtendedPowerManagement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | IoVirtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | MessageInterrupt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | LocalMem, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | // bits 7-9 are reserved [INFO] [stdout] 48 | UsbDebugCapability = 10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // bits 11-16 are reserved [INFO] [stdout] 50 | ExtendedMessageInterrupt = 17, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trb_type` is never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl StateKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 86 | pub fn trb_type(&self) -> TrbType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_virt_addr` and `end_virt_addr` are never used [INFO] [stdout] --> xhcid/src/xhci/ring.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Ring { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub(crate) fn start_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn end_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PortTransferState` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum PortTransferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortTransferState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Port` is never constructed [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 153 | enum SchemeParameters { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 157 | Port(usize), // port number [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SchemeParameters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:476:12 [INFO] [stdout] | [INFO] [stdout] 476 | Device(usb::DeviceDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 476 - Device(usb::DeviceDescriptor), [INFO] [stdout] 476 + Device(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:477:12 [INFO] [stdout] | [INFO] [stdout] 477 | Config(usb::ConfigDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 477 - Config(usb::ConfigDescriptor), [INFO] [stdout] 477 + Config(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `port_state` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:897:8 [INFO] [stdout] | [INFO] [stdout] 517 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 897 | fn port_state(&self, port: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum TrbCompletionCode { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | DataBuffer = 0x02, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | BabbleDetected = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 64 | UsbTransaction = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | Trb = 0x05, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | Stall = 0x06, [INFO] [stdout] 67 | Resource = 0x07, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Bandwidth = 0x08, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 69 | NoSlotsAvailable = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | InvalidStreamType = 0x0A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | SlotNotEnabled = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 72 | EndpointNotEnabled = 0x0C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Parameter = 0x11, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 78 | BandwidthOverrun = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | ContextState = 0x13, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 80 | NoPingResponse = 0x14, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 81 | EventRingFull = 0x15, [INFO] [stdout] 82 | IncompatibleDevice = 0x16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | MissedService = 0x17, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 84 | CommandRingStopped = 0x18, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | CommandAborted = 0x19, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 86 | Stopped = 0x1A, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | StoppedLengthInvalid = 0x1B, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | StoppedShortPacket = 0x1C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | MaxExitLatencyTooLarge = 0x1D, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | Rsv30 = 0x1E, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | IsochBuffer = 0x1F, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | EventLost = 0x20, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 93 | Undefined = 0x21, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 94 | InvalidStreamId = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | SecondaryBandwidth = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | SplitTransaction = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrbCompletionCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_CODE_MASK` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 130 | pub const TRB_STATUS_COMPLETION_CODE_MASK: u32 = 0xFF00_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_PARAM_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | pub const TRB_STATUS_COMPLETION_PARAM_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_TRANSFER_LENGTH_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | pub const TRB_STATUS_TRANSFER_LENGTH_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&[T]` instead of dereferencing the inner type [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:392:37 [INFO] [stdout] | [INFO] [stdout] 392 | .field("virt_ptr", &(dma.deref().as_ptr() as *const u8)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | let mut ports = self.ports.lock().unwrap(); [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] --> xhcid/src/xhci/mod.rs:599:17 [INFO] [stdout] | [INFO] [stdout] 599 | let mut flags; [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] --> xhcid/src/xhci/mod.rs:601:21 [INFO] [stdout] | [INFO] [stdout] 601 | let mut ports = self.ports.lock().unwrap(); [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] --> xhcid/src/xhci/mod.rs:672:17 [INFO] [stdout] | [INFO] [stdout] 672 | let mut int = &mut run.ints[index]; [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] --> xhcid/src/xhci/mod.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | let mut int = &mut run.ints[index]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> xhcid/src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let mut capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/main.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut capability = match pcid_handle.feature_info(PciFeature::Msi) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_int_method` is never used [INFO] [stdout] --> xhcid/src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_int_method( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 713 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 714 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:717:5 [INFO] [stdout] | [INFO] [stdout] 716 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 717 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 719 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 720 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 721 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 722 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 723 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ssac` and `sublink_speed_attr` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BosSuperSpeedPlusDesc { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 73 | pub fn ssac(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sublink_speed_attr(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 - Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] 118 + Usb2Ext(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 119 - SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] 119 + SuperSpeed(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 120 - SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] 120 + SuperSpeedPlus(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_superspeed` and `is_superspeedplus` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl BosAnyDevDesc { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 125 | pub fn is_superspeed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_superspeedplus(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bos_capability_descs` is never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn bos_capability_descs<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `minor_usb_vers` and `major_usb_vers` are never used [INFO] [stdout] --> xhcid/src/usb/device.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl DeviceDescriptor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 86 | /// Gets the USB Minor Version [INFO] [stdout] 87 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn major_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 38 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HubFeature` is never used [INFO] [stdout] --> xhcid/src/usb/hub.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum HubFeature { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubFeature` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SetupReq` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum SetupReq { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetch_bos_desc` is never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 94 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | async fn fetch_bos_desc( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pcid_handle` is never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct Xhci { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 274 | pcid_handle: Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS1_MAX_SLOTS_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:143:11 [INFO] [stdout] | [INFO] [stdout] 143 | pub const HCS_PARAMS1_MAX_SLOTS_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_BIT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:149:11 [INFO] [stdout] | [INFO] [stdout] 149 | pub const HCS_PARAMS2_SPR_BIT: u32 = 1 << HCS_PARAMS2_SPR_SHIFT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | pub const HCS_PARAMS2_SPR_SHIFT: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spr` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl CapabilityRegs { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn spr(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnabledOrDisabled`, `Default`, and `Addressed` are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum SlotState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 33 | EnabledOrDisabled = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | Default = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | Addressed = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pages` is never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct ScratchpadBufferArray { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 181 | pub entries: Dma<[ScratchpadBufferEntry]>, [INFO] [stdout] 182 | pub pages: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read` is never used [INFO] [stdout] --> xhcid/src/xhci/doorbell.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Doorbell { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 7 | pub fn read(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> xhcid/src/xhci/event.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl EventRing { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn next(&mut self) -> &mut Trb { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum CapabilityId { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 40 | // bit 0 is reserved [INFO] [stdout] 41 | UsbLegacySupport = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | SupportedProtocol, [INFO] [stdout] 43 | ExtendedPowerManagement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | IoVirtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | MessageInterrupt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | LocalMem, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | // bits 7-9 are reserved [INFO] [stdout] 48 | UsbDebugCapability = 10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // bits 11-16 are reserved [INFO] [stdout] 50 | ExtendedMessageInterrupt = 17, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trb_type` is never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl StateKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 86 | pub fn trb_type(&self) -> TrbType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_virt_addr` and `end_virt_addr` are never used [INFO] [stdout] --> xhcid/src/xhci/ring.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Ring { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub(crate) fn start_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn end_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PortTransferState` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum PortTransferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortTransferState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Port` is never constructed [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 153 | enum SchemeParameters { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 157 | Port(usize), // port number [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SchemeParameters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:476:12 [INFO] [stdout] | [INFO] [stdout] 476 | Device(usb::DeviceDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 476 - Device(usb::DeviceDescriptor), [INFO] [stdout] 476 + Device(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:477:12 [INFO] [stdout] | [INFO] [stdout] 477 | Config(usb::ConfigDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 477 - Config(usb::ConfigDescriptor), [INFO] [stdout] 477 + Config(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `port_state` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:897:8 [INFO] [stdout] | [INFO] [stdout] 517 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 897 | fn port_state(&self, port: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum TrbCompletionCode { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | DataBuffer = 0x02, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | BabbleDetected = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 64 | UsbTransaction = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | Trb = 0x05, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | Stall = 0x06, [INFO] [stdout] 67 | Resource = 0x07, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Bandwidth = 0x08, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 69 | NoSlotsAvailable = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | InvalidStreamType = 0x0A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | SlotNotEnabled = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 72 | EndpointNotEnabled = 0x0C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Parameter = 0x11, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 78 | BandwidthOverrun = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | ContextState = 0x13, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 80 | NoPingResponse = 0x14, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 81 | EventRingFull = 0x15, [INFO] [stdout] 82 | IncompatibleDevice = 0x16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | MissedService = 0x17, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 84 | CommandRingStopped = 0x18, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | CommandAborted = 0x19, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 86 | Stopped = 0x1A, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | StoppedLengthInvalid = 0x1B, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | StoppedShortPacket = 0x1C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | MaxExitLatencyTooLarge = 0x1D, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | Rsv30 = 0x1E, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | IsochBuffer = 0x1F, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | EventLost = 0x20, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 93 | Undefined = 0x21, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 94 | InvalidStreamId = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | SecondaryBandwidth = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | SplitTransaction = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrbCompletionCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_CODE_MASK` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 130 | pub const TRB_STATUS_COMPLETION_CODE_MASK: u32 = 0xFF00_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_PARAM_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | pub const TRB_STATUS_COMPLETION_PARAM_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_TRANSFER_LENGTH_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | pub const TRB_STATUS_TRANSFER_LENGTH_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&[T]` instead of dereferencing the inner type [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:392:37 [INFO] [stdout] | [INFO] [stdout] 392 | .field("virt_ptr", &(dma.deref().as_ptr() as *const u8)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "21c8a6c0b07ae749dfacf46b532acaca9cabb62f317122497b9fc17686ea3a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21c8a6c0b07ae749dfacf46b532acaca9cabb62f317122497b9fc17686ea3a84", kill_on_drop: false }` [INFO] [stdout] 21c8a6c0b07ae749dfacf46b532acaca9cabb62f317122497b9fc17686ea3a84