[INFO] fetching crate icm20948 0.0.1... [INFO] testing icm20948-0.0.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate icm20948 0.0.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate icm20948 0.0.1 [INFO] finished tweaking crates.io crate icm20948 0.0.1 [INFO] tweaked toml for crates.io crate icm20948 0.0.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate icm20948 0.0.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 33 packages to latest compatible versions [INFO] [stderr] Adding cortex-m-semihosting v0.3.7 (available: v0.5.0) [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding linux-embedded-hal v0.3.2 (available: v0.4.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gpio-cdev v0.5.1 [INFO] [stderr] Downloaded cortex-m-semihosting v0.3.7 [INFO] [stderr] Downloaded bit-byte-structs v0.0.3 [INFO] [stderr] Downloaded i2cdev v0.5.1 [INFO] [stderr] Downloaded sysfs_gpio v0.6.2 [INFO] [stderr] Downloaded linux-embedded-hal v0.3.2 [INFO] [stderr] Downloaded spidev v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6eb08ded4428215d8e4c082ae6eeaef1832e0cd4e29ae11229a52e7684ebdf71 [INFO] running `Command { std: "docker" "start" "-a" "6eb08ded4428215d8e4c082ae6eeaef1832e0cd4e29ae11229a52e7684ebdf71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6eb08ded4428215d8e4c082ae6eeaef1832e0cd4e29ae11229a52e7684ebdf71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eb08ded4428215d8e4c082ae6eeaef1832e0cd4e29ae11229a52e7684ebdf71", kill_on_drop: false }` [INFO] [stdout] 6eb08ded4428215d8e4c082ae6eeaef1832e0cd4e29ae11229a52e7684ebdf71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfbdd52f0bb860bc39219221ce666e0ce1fa46c145ecf8584f453974bbf3c8b3 [INFO] running `Command { std: "docker" "start" "-a" "cfbdd52f0bb860bc39219221ce666e0ce1fa46c145ecf8584f453974bbf3c8b3", kill_on_drop: false }` [INFO] [stderr] Compiling cortex-m-semihosting v0.3.7 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling bit-byte-structs v0.0.3 [INFO] [stderr] Compiling icm20948 v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lib.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | let result = self.duty_cycle.read(interface)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spi_bus` [INFO] [stdout] --> src/lib.rs:649:16 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spi_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib.rs:649:35 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2c_bus` [INFO] [stdout] --> src/lib.rs:705:16 [INFO] [stdout] | [INFO] [stdout] 705 | pub fn new(i2c_bus: &mut I2C) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2c_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B0_PWR_MGMT_2` is never used [INFO] [stdout] --> src/lib.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const ICM20X_B0_PWR_MGMT_2: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_CTRL` is never used [INFO] [stdout] --> src/lib.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const ICM20X_B3_I2C_MST_CTRL: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_DELAY_CTRL` is never used [INFO] [stdout] --> src/lib.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const ICM20X_B3_I2C_MST_DELAY_CTRL: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVECONST` is never used [INFO] [stdout] --> src/lib.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const GRAVECONST: f32 = 9.81; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setup_mag` is never used [INFO] [stdout] --> src/lib.rs:753:8 [INFO] [stdout] | [INFO] [stdout] 701 | / impl ICMI2C [INFO] [stdout] 702 | | where [INFO] [stdout] 703 | | I2C: Read + Write + WriteRead, [INFO] [stdout] | |___________________________________________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 753 | fn setup_mag(&self, i2c_bus: &mut I2C) -> Result<(), ICMError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "cfbdd52f0bb860bc39219221ce666e0ce1fa46c145ecf8584f453974bbf3c8b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfbdd52f0bb860bc39219221ce666e0ce1fa46c145ecf8584f453974bbf3c8b3", kill_on_drop: false }` [INFO] [stdout] cfbdd52f0bb860bc39219221ce666e0ce1fa46c145ecf8584f453974bbf3c8b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03d6e42c154975c47f58c30fb22dfa358cb8709715f7142c511fefcff616faf8 [INFO] running `Command { std: "docker" "start" "-a" "03d6e42c154975c47f58c30fb22dfa358cb8709715f7142c511fefcff616faf8", kill_on_drop: false }` [INFO] [stderr] Compiling termios v0.2.2 [INFO] [stderr] Compiling serial-core v0.4.0 [INFO] [stderr] Compiling ioctl-rs v0.1.6 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lib.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | let result = self.duty_cycle.read(interface)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spi_bus` [INFO] [stdout] --> src/lib.rs:649:16 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spi_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib.rs:649:35 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2c_bus` [INFO] [stdout] --> src/lib.rs:705:16 [INFO] [stdout] | [INFO] [stdout] 705 | pub fn new(i2c_bus: &mut I2C) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2c_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B0_PWR_MGMT_2` is never used [INFO] [stdout] --> src/lib.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const ICM20X_B0_PWR_MGMT_2: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_CTRL` is never used [INFO] [stdout] --> src/lib.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const ICM20X_B3_I2C_MST_CTRL: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_DELAY_CTRL` is never used [INFO] [stdout] --> src/lib.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const ICM20X_B3_I2C_MST_DELAY_CTRL: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVECONST` is never used [INFO] [stdout] --> src/lib.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const GRAVECONST: f32 = 9.81; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setup_mag` is never used [INFO] [stdout] --> src/lib.rs:753:8 [INFO] [stdout] | [INFO] [stdout] 701 | / impl ICMI2C [INFO] [stdout] 702 | | where [INFO] [stdout] 703 | | I2C: Read + Write + WriteRead, [INFO] [stdout] | |___________________________________________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 753 | fn setup_mag(&self, i2c_bus: &mut I2C) -> Result<(), ICMError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serial-unix v0.4.0 [INFO] [stderr] Compiling spidev v0.5.2 [INFO] [stderr] Compiling sysfs_gpio v0.6.2 [INFO] [stderr] Compiling i2cdev v0.5.1 [INFO] [stderr] Compiling gpio-cdev v0.5.1 [INFO] [stderr] Compiling linux-embedded-hal v0.3.2 [INFO] [stderr] Compiling icm20948 v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> tests/intergration_test.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | let mut icm_obj = ICMI2C::new(&mut i2c, ICM20948_CHIP_ADR).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ----------------- unexpected argument #2 of type `u8` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | pub fn new(i2c_bus: &mut I2C) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 56 - let mut icm_obj = ICMI2C::new(&mut i2c, ICM20948_CHIP_ADR).unwrap(); [INFO] [stdout] 56 + let mut icm_obj = ICMI2C::new(&mut i2c).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> tests/intergration_test.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> tests/intergration_test.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | fn write(&mut self, addr: u8, bytes: &[u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> tests/intergration_test.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 30 | fn write(&mut self, addr: u8, bytes: &[u8]) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> tests/intergration_test.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | address: u8, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> tests/intergration_test.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | bytes: &[u8], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> tests/intergration_test.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | buffer: &mut [u8], [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> tests/intergration_test.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn delay_ms(&mut self, ms: UXX) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `icm20948` (test "intergration_test") due to 1 previous error; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lib.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | let result = self.duty_cycle.read(interface)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> src/lib.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | delay: &mut dyn DelayMs, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spi_bus` [INFO] [stdout] --> src/lib.rs:649:16 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spi_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/lib.rs:649:35 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn new(spi_bus: &mut SPI, cs: &mut CS) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2c_bus` [INFO] [stdout] --> src/lib.rs:705:16 [INFO] [stdout] | [INFO] [stdout] 705 | pub fn new(i2c_bus: &mut I2C) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2c_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B0_PWR_MGMT_2` is never used [INFO] [stdout] --> src/lib.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const ICM20X_B0_PWR_MGMT_2: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_CTRL` is never used [INFO] [stdout] --> src/lib.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | const ICM20X_B3_I2C_MST_CTRL: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ICM20X_B3_I2C_MST_DELAY_CTRL` is never used [INFO] [stdout] --> src/lib.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | const ICM20X_B3_I2C_MST_DELAY_CTRL: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVECONST` is never used [INFO] [stdout] --> src/lib.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const GRAVECONST: f32 = 9.81; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setup_mag` is never used [INFO] [stdout] --> src/lib.rs:753:8 [INFO] [stdout] | [INFO] [stdout] 701 | / impl ICMI2C [INFO] [stdout] 702 | | where [INFO] [stdout] 703 | | I2C: Read + Write + WriteRead, [INFO] [stdout] | |___________________________________________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 753 | fn setup_mag(&self, i2c_bus: &mut I2C) -> Result<(), ICMError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "03d6e42c154975c47f58c30fb22dfa358cb8709715f7142c511fefcff616faf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03d6e42c154975c47f58c30fb22dfa358cb8709715f7142c511fefcff616faf8", kill_on_drop: false }` [INFO] [stdout] 03d6e42c154975c47f58c30fb22dfa358cb8709715f7142c511fefcff616faf8