[INFO] fetching crate driver-pal 0.8.0-alpha.6... [INFO] testing driver-pal-0.8.0-alpha.6 against 1.60.0 for beta-1.61-1 [INFO] extracting crate driver-pal 0.8.0-alpha.6 into /workspace/builds/worker-20/source [INFO] validating manifest of crates.io crate driver-pal 0.8.0-alpha.6 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate driver-pal 0.8.0-alpha.6 [INFO] finished tweaking crates.io crate driver-pal 0.8.0-alpha.6 [INFO] tweaked toml for crates.io crate driver-pal 0.8.0-alpha.6 written to /workspace/builds/worker-20/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simplelog v0.8.0 [INFO] [stderr] Downloaded libusb1-sys v0.6.1 [INFO] [stderr] Downloaded rusb v0.9.1 [INFO] [stderr] Downloaded driver-cp2130 v1.0.0-alpha.5 [INFO] [stderr] Downloaded linux-embedded-hal v0.4.0-alpha.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70d50c6da3be1659289ba6e529e2c160855b341a7ae179255fdf020ef171f262 [INFO] running `Command { std: "docker" "start" "-a" "70d50c6da3be1659289ba6e529e2c160855b341a7ae179255fdf020ef171f262", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70d50c6da3be1659289ba6e529e2c160855b341a7ae179255fdf020ef171f262", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70d50c6da3be1659289ba6e529e2c160855b341a7ae179255fdf020ef171f262", kill_on_drop: false }` [INFO] [stdout] 70d50c6da3be1659289ba6e529e2c160855b341a7ae179255fdf020ef171f262 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3d54ce3cc558cf67f89a37b4b37a966ac6f5a4de0e10cda1b2778c17c4357f2 [INFO] running `Command { std: "docker" "start" "-a" "a3d54ce3cc558cf67f89a37b4b37a966ac6f5a4de0e10cda1b2778c17c4357f2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.7 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling simplelog v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling driver-pal v0.8.0-alpha.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/mock.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{Busy, Error, PinState, Ready, Reset}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ___________________- [INFO] [stdout] 111 | | (Some(_), Some(_)) => { [INFO] [stdout] 112 | | error!("Only one of spi_dev and cp2130_dev may be specified"); [INFO] [stdout] 113 | | return Err(HalError::InvalidConfig); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 135 | [INFO] [stdout] 136 | Ok(hal) [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 159 | / match self { [INFO] [stdout] 160 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 161 | | HalSpi::Linux(i) => i.transfer_inplace(data)?, [INFO] [stdout] 162 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 163 | | HalSpi::Cp2130(i) => i.transfer_inplace(data)?, [INFO] [stdout] 164 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 166 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 173 | / match self { [INFO] [stdout] 174 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 175 | | HalSpi::Linux(i) => i.transfer(buff, data)?, [INFO] [stdout] 176 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 177 | | HalSpi::Cp2130(i) => i.transfer(buff, data)?, [INFO] [stdout] 178 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 179 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 180 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 187 | / match self { [INFO] [stdout] 188 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 189 | | HalSpi::Linux(i) => i.write(data)?, [INFO] [stdout] 190 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 191 | | HalSpi::Cp2130(i) => i.write(data)?, [INFO] [stdout] 192 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 194 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 207 | / match self { [INFO] [stdout] 208 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 209 | | HalSpi::Linux(i) => i.exec(operations)?, [INFO] [stdout] 210 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 211 | | HalSpi::Cp2130(i) => i.exec(operations)?, [INFO] [stdout] 212 | | _ => todo!() [INFO] [stdout] 213 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 214 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | _________________- [INFO] [stdout] 232 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 233 | | HalInputPin::Linux(i) => i.is_high()?, [INFO] [stdout] 234 | | [INFO] [stdout] ... | [INFO] [stdout] 238 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 239 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 240 | [INFO] [stdout] 241 | Ok(r) [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 266 | / match self { [INFO] [stdout] 267 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 268 | | HalOutputPin::Linux(i) => i.set_high()?, [INFO] [stdout] 269 | | [INFO] [stdout] ... | [INFO] [stdout] 273 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 274 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 275 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 279 | / match self { [INFO] [stdout] 280 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 281 | | HalOutputPin::Linux(i) => i.set_low()?, [INFO] [stdout] 282 | | [INFO] [stdout] ... | [INFO] [stdout] 286 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 287 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 288 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hal` [INFO] [stdout] --> src/hal/mod.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | fn transfer_inplace<'w>(&mut self, data: &'w mut [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/hal/mod.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:172:52 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operations` [INFO] [stdout] --> src/hal/mod.rs:206:28 [INFO] [stdout] | [INFO] [stdout] 206 | fn exec<'b>(&mut self, operations: &mut [Operation<'b, u8>]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hal/mod.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/mock.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | id: Id, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Delay` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mock.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 43.81s [INFO] running `Command { std: "docker" "inspect" "a3d54ce3cc558cf67f89a37b4b37a966ac6f5a4de0e10cda1b2778c17c4357f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3d54ce3cc558cf67f89a37b4b37a966ac6f5a4de0e10cda1b2778c17c4357f2", kill_on_drop: false }` [INFO] [stdout] a3d54ce3cc558cf67f89a37b4b37a966ac6f5a4de0e10cda1b2778c17c4357f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff850bcd082a90d43f5164fc095e74824aff97888b5d973144874ce126f6e11b [INFO] running `Command { std: "docker" "start" "-a" "ff850bcd082a90d43f5164fc095e74824aff97888b5d973144874ce126f6e11b", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/mock.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{Busy, Error, PinState, Ready, Reset}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ___________________- [INFO] [stdout] 111 | | (Some(_), Some(_)) => { [INFO] [stdout] 112 | | error!("Only one of spi_dev and cp2130_dev may be specified"); [INFO] [stdout] 113 | | return Err(HalError::InvalidConfig); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 135 | [INFO] [stdout] 136 | Ok(hal) [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 159 | / match self { [INFO] [stdout] 160 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 161 | | HalSpi::Linux(i) => i.transfer_inplace(data)?, [INFO] [stdout] 162 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 163 | | HalSpi::Cp2130(i) => i.transfer_inplace(data)?, [INFO] [stdout] 164 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 166 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 173 | / match self { [INFO] [stdout] 174 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 175 | | HalSpi::Linux(i) => i.transfer(buff, data)?, [INFO] [stdout] 176 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 177 | | HalSpi::Cp2130(i) => i.transfer(buff, data)?, [INFO] [stdout] 178 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 179 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 180 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 187 | / match self { [INFO] [stdout] 188 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 189 | | HalSpi::Linux(i) => i.write(data)?, [INFO] [stdout] 190 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 191 | | HalSpi::Cp2130(i) => i.write(data)?, [INFO] [stdout] 192 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 194 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 207 | / match self { [INFO] [stdout] 208 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 209 | | HalSpi::Linux(i) => i.exec(operations)?, [INFO] [stdout] 210 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 211 | | HalSpi::Cp2130(i) => i.exec(operations)?, [INFO] [stdout] 212 | | _ => todo!() [INFO] [stdout] 213 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 214 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | _________________- [INFO] [stdout] 232 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 233 | | HalInputPin::Linux(i) => i.is_high()?, [INFO] [stdout] 234 | | [INFO] [stdout] ... | [INFO] [stdout] 238 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 239 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 240 | [INFO] [stdout] 241 | Ok(r) [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 266 | / match self { [INFO] [stdout] 267 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 268 | | HalOutputPin::Linux(i) => i.set_high()?, [INFO] [stdout] 269 | | [INFO] [stdout] ... | [INFO] [stdout] 273 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 274 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 275 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 279 | / match self { [INFO] [stdout] 280 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 281 | | HalOutputPin::Linux(i) => i.set_low()?, [INFO] [stdout] 282 | | [INFO] [stdout] ... | [INFO] [stdout] 286 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 287 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 288 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hal` [INFO] [stdout] --> src/hal/mod.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | fn transfer_inplace<'w>(&mut self, data: &'w mut [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/hal/mod.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:172:52 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operations` [INFO] [stdout] --> src/hal/mod.rs:206:28 [INFO] [stdout] | [INFO] [stdout] 206 | fn exec<'b>(&mut self, operations: &mut [Operation<'b, u8>]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hal/mod.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling driver-pal v0.8.0-alpha.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/mock.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | id: Id, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Delay` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mock.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/mock.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{Busy, Error, PinState, Ready, Reset}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `panic` [INFO] [stdout] --> src/mock.rs:508:15 [INFO] [stdout] | [INFO] [stdout] 508 | use std::{panic, vec}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `embedded_hal::delay::blocking::*` [INFO] [stdout] --> src/mock.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | use embedded_hal::delay::blocking::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ___________________- [INFO] [stdout] 111 | | (Some(_), Some(_)) => { [INFO] [stdout] 112 | | error!("Only one of spi_dev and cp2130_dev may be specified"); [INFO] [stdout] 113 | | return Err(HalError::InvalidConfig); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 135 | [INFO] [stdout] 136 | Ok(hal) [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 159 | / match self { [INFO] [stdout] 160 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 161 | | HalSpi::Linux(i) => i.transfer_inplace(data)?, [INFO] [stdout] 162 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 163 | | HalSpi::Cp2130(i) => i.transfer_inplace(data)?, [INFO] [stdout] 164 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 166 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 173 | / match self { [INFO] [stdout] 174 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 175 | | HalSpi::Linux(i) => i.transfer(buff, data)?, [INFO] [stdout] 176 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 177 | | HalSpi::Cp2130(i) => i.transfer(buff, data)?, [INFO] [stdout] 178 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 179 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 180 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 187 | / match self { [INFO] [stdout] 188 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 189 | | HalSpi::Linux(i) => i.write(data)?, [INFO] [stdout] 190 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 191 | | HalSpi::Cp2130(i) => i.write(data)?, [INFO] [stdout] 192 | | _ => return Err(HalError::NoDriver) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 194 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 207 | / match self { [INFO] [stdout] 208 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 209 | | HalSpi::Linux(i) => i.exec(operations)?, [INFO] [stdout] 210 | | #[cfg(feature = "hal-cp2130")] [INFO] [stdout] 211 | | HalSpi::Cp2130(i) => i.exec(operations)?, [INFO] [stdout] 212 | | _ => todo!() [INFO] [stdout] 213 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 214 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | _________________- [INFO] [stdout] 232 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 233 | | HalInputPin::Linux(i) => i.is_high()?, [INFO] [stdout] 234 | | [INFO] [stdout] ... | [INFO] [stdout] 238 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 239 | | }; [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 240 | [INFO] [stdout] 241 | Ok(r) [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 266 | / match self { [INFO] [stdout] 267 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 268 | | HalOutputPin::Linux(i) => i.set_high()?, [INFO] [stdout] 269 | | [INFO] [stdout] ... | [INFO] [stdout] 273 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 274 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 275 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/hal/mod.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 279 | / match self { [INFO] [stdout] 280 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stdout] 281 | | HalOutputPin::Linux(i) => i.set_low()?, [INFO] [stdout] 282 | | [INFO] [stdout] ... | [INFO] [stdout] 286 | | _ => return Err(HalError::NoPin), [INFO] [stdout] 287 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 288 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hal` [INFO] [stdout] --> src/hal/mod.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | fn transfer_inplace<'w>(&mut self, data: &'w mut [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buff` [INFO] [stdout] --> src/hal/mod.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:172:52 [INFO] [stdout] | [INFO] [stdout] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/hal/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operations` [INFO] [stdout] --> src/hal/mod.rs:206:28 [INFO] [stdout] | [INFO] [stdout] 206 | fn exec<'b>(&mut self, operations: &mut [Operation<'b, u8>]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hal/mod.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let r = match self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/mock.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | id: Id, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Delay` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mock.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.67s [INFO] running `Command { std: "docker" "inspect" "ff850bcd082a90d43f5164fc095e74824aff97888b5d973144874ce126f6e11b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff850bcd082a90d43f5164fc095e74824aff97888b5d973144874ce126f6e11b", kill_on_drop: false }` [INFO] [stdout] ff850bcd082a90d43f5164fc095e74824aff97888b5d973144874ce126f6e11b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] da874544a84de5af62099a58bdaa40279fb982444d3ef93eb975744662bfe1a2 [INFO] running `Command { std: "docker" "start" "-a" "da874544a84de5af62099a58bdaa40279fb982444d3ef93eb975744662bfe1a2", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Error` [INFO] [stderr] --> src/mock.rs:5:19 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{Busy, Error, PinState, Ready, Reset}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:136:9 [INFO] [stderr] | [INFO] [stderr] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stderr] | ___________________- [INFO] [stderr] 111 | | (Some(_), Some(_)) => { [INFO] [stderr] 112 | | error!("Only one of spi_dev and cp2130_dev may be specified"); [INFO] [stderr] 113 | | return Err(HalError::InvalidConfig); [INFO] [stderr] ... | [INFO] [stderr] 133 | | } [INFO] [stderr] 134 | | }; [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 135 | [INFO] [stderr] 136 | Ok(hal) [INFO] [stderr] | ^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:166:9 [INFO] [stderr] | [INFO] [stderr] 159 | / match self { [INFO] [stderr] 160 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 161 | | HalSpi::Linux(i) => i.transfer_inplace(data)?, [INFO] [stderr] 162 | | #[cfg(feature = "hal-cp2130")] [INFO] [stderr] 163 | | HalSpi::Cp2130(i) => i.transfer_inplace(data)?, [INFO] [stderr] 164 | | _ => return Err(HalError::NoDriver) [INFO] [stderr] 165 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 166 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 173 | / match self { [INFO] [stderr] 174 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 175 | | HalSpi::Linux(i) => i.transfer(buff, data)?, [INFO] [stderr] 176 | | #[cfg(feature = "hal-cp2130")] [INFO] [stderr] 177 | | HalSpi::Cp2130(i) => i.transfer(buff, data)?, [INFO] [stderr] 178 | | _ => return Err(HalError::NoDriver) [INFO] [stderr] 179 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 180 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:194:9 [INFO] [stderr] | [INFO] [stderr] 187 | / match self { [INFO] [stderr] 188 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 189 | | HalSpi::Linux(i) => i.write(data)?, [INFO] [stderr] 190 | | #[cfg(feature = "hal-cp2130")] [INFO] [stderr] 191 | | HalSpi::Cp2130(i) => i.write(data)?, [INFO] [stderr] 192 | | _ => return Err(HalError::NoDriver) [INFO] [stderr] 193 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 194 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:214:9 [INFO] [stderr] | [INFO] [stderr] 207 | / match self { [INFO] [stderr] 208 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 209 | | HalSpi::Linux(i) => i.exec(operations)?, [INFO] [stderr] 210 | | #[cfg(feature = "hal-cp2130")] [INFO] [stderr] 211 | | HalSpi::Cp2130(i) => i.exec(operations)?, [INFO] [stderr] 212 | | _ => todo!() [INFO] [stderr] 213 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 214 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:241:9 [INFO] [stderr] | [INFO] [stderr] 231 | let r = match self { [INFO] [stderr] | _________________- [INFO] [stderr] 232 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 233 | | HalInputPin::Linux(i) => i.is_high()?, [INFO] [stderr] 234 | | [INFO] [stderr] ... | [INFO] [stderr] 238 | | _ => return Err(HalError::NoPin), [INFO] [stderr] 239 | | }; [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 240 | [INFO] [stderr] 241 | Ok(r) [INFO] [stderr] | ^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:275:9 [INFO] [stderr] | [INFO] [stderr] 266 | / match self { [INFO] [stderr] 267 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 268 | | HalOutputPin::Linux(i) => i.set_high()?, [INFO] [stderr] 269 | | [INFO] [stderr] ... | [INFO] [stderr] 273 | | _ => return Err(HalError::NoPin), [INFO] [stderr] 274 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 275 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/hal/mod.rs:288:9 [INFO] [stderr] | [INFO] [stderr] 279 | / match self { [INFO] [stderr] 280 | | #[cfg(all(feature = "hal-linux", target_os = "linux"))] [INFO] [stderr] 281 | | HalOutputPin::Linux(i) => i.set_low()?, [INFO] [stderr] 282 | | [INFO] [stderr] ... | [INFO] [stderr] 286 | | _ => return Err(HalError::NoPin), [INFO] [stderr] 287 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 288 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hal` [INFO] [stderr] --> src/hal/mod.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | let hal = match (&config.spi_dev, &config.cp2130_dev) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_hal` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/hal/mod.rs:158:40 [INFO] [stderr] | [INFO] [stderr] 158 | fn transfer_inplace<'w>(&mut self, data: &'w mut [u8]) -> Result<(), Self::Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buff` [INFO] [stderr] --> src/hal/mod.rs:172:32 [INFO] [stderr] | [INFO] [stderr] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buff` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/hal/mod.rs:172:52 [INFO] [stderr] | [INFO] [stderr] 172 | fn transfer<'w>(&mut self, buff: &'w mut [u8], data: &'w [u8]) -> Result<(), Self::Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/hal/mod.rs:186:29 [INFO] [stderr] | [INFO] [stderr] 186 | fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `operations` [INFO] [stderr] --> src/hal/mod.rs:206:28 [INFO] [stderr] | [INFO] [stderr] 206 | fn exec<'b>(&mut self, operations: &mut [Operation<'b, u8>]) -> Result<(), Self::Error> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operations` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/hal/mod.rs:231:13 [INFO] [stderr] | [INFO] [stderr] 231 | let r = match self { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `id` [INFO] [stderr] --> src/mock.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | id: Id, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Delay` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/mock.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `panic` [INFO] [stderr] --> src/mock.rs:508:15 [INFO] [stderr] | [INFO] [stderr] 508 | use std::{panic, vec}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `embedded_hal::delay::blocking::*` [INFO] [stderr] --> src/mock.rs:510:9 [INFO] [stderr] | [INFO] [stderr] 510 | use embedded_hal::delay::blocking::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `driver-pal` (lib) generated 17 warnings [INFO] [stderr] warning: `driver-pal` (lib test) generated 19 warnings (17 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/driver_pal-3607081355110fa8) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test mock::test::test_standard_transfer ... ok [INFO] [stdout] test mock::test::test_transactional_read ... ignored [INFO] [stdout] test mock::test::test_standard_write ... ok [INFO] [stdout] test mock::test::test_pins ... ok [INFO] [stdout] test mock::test::test_transactional_write ... ignored [INFO] [stdout] test mock::test::test_incorrect_pin - should panic ... ok [INFO] [stdout] test mock::test::test_transactional_read_expect_write - should panic ... ok [INFO] [stdout] test mock::test::test_transactional_write_expect_read - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests driver-pal [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "da874544a84de5af62099a58bdaa40279fb982444d3ef93eb975744662bfe1a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da874544a84de5af62099a58bdaa40279fb982444d3ef93eb975744662bfe1a2", kill_on_drop: false }` [INFO] [stdout] da874544a84de5af62099a58bdaa40279fb982444d3ef93eb975744662bfe1a2