[INFO] fetching crate bq769x0 0.3.1... [INFO] testing bq769x0-0.3.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate bq769x0 0.3.1 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate bq769x0 0.3.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bq769x0 0.3.1 [INFO] finished tweaking crates.io crate bq769x0 0.3.1 [INFO] tweaked toml for crates.io crate bq769x0 0.3.1 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ae0da7c4977e48ac06dba3200c020a0d94d3263550017ac5194068f5c91a707 [INFO] running `Command { std: "docker" "start" "-a" "8ae0da7c4977e48ac06dba3200c020a0d94d3263550017ac5194068f5c91a707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ae0da7c4977e48ac06dba3200c020a0d94d3263550017ac5194068f5c91a707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ae0da7c4977e48ac06dba3200c020a0d94d3263550017ac5194068f5c91a707", kill_on_drop: false }` [INFO] [stdout] 8ae0da7c4977e48ac06dba3200c020a0d94d3263550017ac5194068f5c91a707 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78d32d4d85cf7ce6a64800cb0a5316861d12e0bf030fe5a74ea589b50da695bb [INFO] running `Command { std: "docker" "start" "-a" "78d32d4d85cf7ce6a64800cb0a5316861d12e0bf030fe5a74ea589b50da695bb", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling cortex-m v0.6.7 [INFO] [stderr] Compiling crc-any v2.4.2 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling as-slice v0.1.5 [INFO] [stderr] Compiling aligned v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling bq769x0 v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: renamed to `generic_const_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/lib.rs:450:44 [INFO] [stdout] | [INFO] [stdout] 450 | impl BQ769x0 where [(); X * 2]: Sized, [(); X * 4]: Sized { [INFO] [stdout] | ^ cannot perform const operation using `X` [INFO] [stdout] | [INFO] [stdout] = help: const parameters may only be used as standalone arguments, i.e. `X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/lib.rs:450:64 [INFO] [stdout] | [INFO] [stdout] 450 | impl BQ769x0 where [(); X * 2]: Sized, [(); X * 4]: Sized { [INFO] [stdout] | ^ cannot perform const operation using `X` [INFO] [stdout] | [INFO] [stdout] = help: const parameters may only be used as standalone arguments, i.e. `X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/lib.rs:634:29 [INFO] [stdout] | [INFO] [stdout] 634 | let mut buf = [0u8; X * 2]; [INFO] [stdout] | ^ cannot perform const operation using `X` [INFO] [stdout] | [INFO] [stdout] = help: const parameters may only be used as standalone arguments, i.e. `X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(const_panic)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute [INFO] [stdout] | [INFO] [stdout] = help: the feature `const_panic` has been stable since 1.57.0 and no longer requires an attribute to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_panic` has been stable since 1.57.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(const_panic)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:504:19 [INFO] [stdout] | [INFO] [stdout] 504 | match i2c.write_read(self.dev_address, &[reg_address], data) { [INFO] [stdout] | ^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_read` found for mutable reference `&mut I2C` in the current scope [INFO] [stdout] --> src/lib.rs:504:19 [INFO] [stdout] | [INFO] [stdout] 504 | match i2c.write_read(self.dev_address, &[reg_address], data) { [INFO] [stdout] | ^^^^^^^^^^ method not found in `&mut I2C` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `write_read`, perhaps you need to restrict type parameter `I2C` with it: [INFO] [stdout] | [INFO] [stdout] 497 | pub fn read_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &mut [u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:558:17 [INFO] [stdout] | [INFO] [stdout] 558 | if data.len() > 8 { [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:558:17 [INFO] [stdout] | [INFO] [stdout] 558 | if data.len() > 8 { [INFO] [stdout] | ^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:560:24 [INFO] [stdout] | [INFO] [stdout] 560 | } else if data.len() == 0 { [INFO] [stdout] | ^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:565:28 [INFO] [stdout] | [INFO] [stdout] 565 | for (i, b) in data.iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for mutable reference `&mut I2C` in the current scope [INFO] [stdout] --> src/lib.rs:569:13 [INFO] [stdout] | [INFO] [stdout] 569 | i2c.write(self.dev_address, &buf[0..data.len()+1]).map_err(|_| Error::I2CError)?; [INFO] [stdout] | ^^^^^ method not found in `&mut I2C` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following traits define an item `write`, perhaps you need to restrict type parameter `I2C` with one of them: [INFO] [stdout] | [INFO] [stdout] 551 | pub fn write_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &[u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] 551 | pub fn write_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &[u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] 551 | pub fn write_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &[u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 551 | pub fn write_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &[u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:569:50 [INFO] [stdout] | [INFO] [stdout] 569 | i2c.write(self.dev_address, &buf[0..data.len()+1]).map_err(|_| Error::I2CError)?; [INFO] [stdout] | ^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_read` found for mutable reference `&mut I2C` in the current scope [INFO] [stdout] --> src/lib.rs:570:13 [INFO] [stdout] | [INFO] [stdout] 570 | i2c.write_read(self.dev_address, &[reg_address], &mut buf[0..data.len()]).map_err(|_| Error::I2CError)?; [INFO] [stdout] | ^^^^^^^^^^ method not found in `&mut I2C` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `write_read`, perhaps you need to restrict type parameter `I2C` with it: [INFO] [stdout] | [INFO] [stdout] 551 | pub fn write_raw(&mut self, i2c: &mut I2C, reg_address: u8, data: &[u8]) -> Result<(), Error> [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:570:75 [INFO] [stdout] | [INFO] [stdout] 570 | i2c.write_read(self.dev_address, &[reg_address], &mut buf[0..data.len()]).map_err(|_| Error::I2CError)?; [INFO] [stdout] | ^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:571:28 [INFO] [stdout] | [INFO] [stdout] 571 | for (i, x) in data.iter().zip(buf).enumerate() { [INFO] [stdout] | ^^^^ method not found in `&[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:616:14 [INFO] [stdout] | [INFO] [stdout] 616 | self.read_raw(i2c, 0x50, &mut gain1_offset)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:616:14 [INFO] [stdout] | [INFO] [stdout] 616 | self.read_raw(i2c, 0x50, &mut gain1_offset)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:617:14 [INFO] [stdout] | [INFO] [stdout] 617 | self.read_raw(i2c, 0x59, &mut gain2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:631:18 [INFO] [stdout] | [INFO] [stdout] 631 | if !self.is_initialized() { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_initialized` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:631:18 [INFO] [stdout] | [INFO] [stdout] 631 | if !self.is_initialized() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:635:14 [INFO] [stdout] | [INFO] [stdout] 635 | self.read_raw(i2c, 0x0c, &mut buf)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:636:27 [INFO] [stdout] | [INFO] [stdout] 636 | let adc_tf = self.adc_transfer_function(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter_mut` found for array `[MilliVolts; X]` in the current scope [INFO] [stdout] --> src/lib.rs:637:37 [INFO] [stdout] | [INFO] [stdout] 637 | for (i, cell) in self.cells.iter_mut().enumerate() { [INFO] [stdout] | ^^^^^^^^ method not found in `[MilliVolts; X]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:672:14 [INFO] [stdout] | [INFO] [stdout] 672 | self.write_raw(i2c, 0x01, &[cells]) [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:672:14 [INFO] [stdout] | [INFO] [stdout] 672 | self.write_raw(i2c, 0x01, &[cells]) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | self.read_raw(i2c, 0x01, &mut data)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:679:14 [INFO] [stdout] | [INFO] [stdout] 679 | self.read_raw(i2c, 0x01, &mut data)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:692:14 [INFO] [stdout] | [INFO] [stdout] 692 | self.read_raw(i2c, 0x32, &mut cc)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:692:14 [INFO] [stdout] | [INFO] [stdout] 692 | self.read_raw(i2c, 0x32, &mut cc)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:708:14 [INFO] [stdout] | [INFO] [stdout] 708 | self.read_raw(i2c, 0x2a, &mut vv)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:708:14 [INFO] [stdout] | [INFO] [stdout] 708 | self.read_raw(i2c, 0x2a, &mut vv)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:718:14 [INFO] [stdout] | [INFO] [stdout] 718 | self.read_raw(i2c, 0x2c, &mut ts)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:718:14 [INFO] [stdout] | [INFO] [stdout] 718 | self.read_raw(i2c, 0x2c, &mut ts)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `temperature_source` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:721:20 [INFO] [stdout] | [INFO] [stdout] 721 | match self.temperature_source(i2c)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:748:14 [INFO] [stdout] | [INFO] [stdout] 748 | self.read_raw(i2c, 0x00, &mut data)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:748:14 [INFO] [stdout] | [INFO] [stdout] 748 | self.read_raw(i2c, 0x00, &mut data)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:755:14 [INFO] [stdout] | [INFO] [stdout] 755 | self.write_raw(i2c, 0x00, &[flags.bits()]) [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:755:14 [INFO] [stdout] | [INFO] [stdout] 755 | self.write_raw(i2c, 0x00, &[flags.bits()]) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for struct `SysStat` in the current scope [INFO] [stdout] --> src/lib.rs:755:43 [INFO] [stdout] | [INFO] [stdout] 69 | / bitflags! { [INFO] [stdout] 70 | | pub struct SysStat: u8 { [INFO] [stdout] 71 | | const CC_READY = 0b1000_0000; [INFO] [stdout] 72 | | const DEVICE_XREADY = 0b0010_0000; [INFO] [stdout] ... | [INFO] [stdout] 79 | | } [INFO] [stdout] 80 | | } [INFO] [stdout] | |_- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 755 | self.write_raw(i2c, 0x00, &[flags.bits()]) [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:762:14 [INFO] [stdout] | [INFO] [stdout] 762 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:762:14 [INFO] [stdout] | [INFO] [stdout] 762 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:772:14 [INFO] [stdout] | [INFO] [stdout] 772 | self.write_raw(i2c, 0x05, &sys_ctrl2) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:779:14 [INFO] [stdout] | [INFO] [stdout] 779 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:779:14 [INFO] [stdout] | [INFO] [stdout] 779 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:789:14 [INFO] [stdout] | [INFO] [stdout] 789 | self.write_raw(i2c, 0x05, &sys_ctrl2) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:796:14 [INFO] [stdout] | [INFO] [stdout] 796 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:796:14 [INFO] [stdout] | [INFO] [stdout] 796 | self.read_raw(i2c, 0x05, &mut sys_ctrl2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:803:14 [INFO] [stdout] | [INFO] [stdout] 803 | self.write_raw(i2c, 0x04, &[0b0000_0000])?; [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:803:14 [INFO] [stdout] | [INFO] [stdout] 803 | self.write_raw(i2c, 0x04, &[0b0000_0000])?; [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:804:14 [INFO] [stdout] | [INFO] [stdout] 804 | self.write_raw(i2c, 0x04, &[0b0000_0001])?; [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:805:14 [INFO] [stdout] | [INFO] [stdout] 805 | self.write_raw(i2c, 0x04, &[0b0000_0010])?; [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:819:15 [INFO] [stdout] | [INFO] [stdout] 819 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for reference `&BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:819:15 [INFO] [stdout] | [INFO] [stdout] 819 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for reference `&BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:819:68 [INFO] [stdout] | [INFO] [stdout] 819 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:825:15 [INFO] [stdout] | [INFO] [stdout] 825 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for reference `&BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:825:15 [INFO] [stdout] | [INFO] [stdout] 825 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for reference `&BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:825:68 [INFO] [stdout] | [INFO] [stdout] 825 | (self.adc_transfer_function().apply(min_adc_reading), self.adc_transfer_function().apply(max_adc_reading)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:831:14 [INFO] [stdout] | [INFO] [stdout] 831 | self.read_adc_characteristics(i2c)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_adc_characteristics` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:831:14 [INFO] [stdout] | [INFO] [stdout] 831 | self.read_adc_characteristics(i2c)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `range` found for enum `SCDThreshold` in the current scope [INFO] [stdout] --> src/lib.rs:835:39 [INFO] [stdout] | [INFO] [stdout] 174 | pub enum SCDThreshold { [INFO] [stdout] | --------------------- method `range` not found for this [INFO] [stdout] ... [INFO] [stdout] 835 | let scd_range = scd_threshold.range(); [INFO] [stdout] | ^^^^^ method not found in `SCDThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `range` found for enum `OCDThreshold` in the current scope [INFO] [stdout] --> src/lib.rs:836:39 [INFO] [stdout] | [INFO] [stdout] 295 | pub enum OCDThreshold { [INFO] [stdout] | --------------------- method `range` not found for this [INFO] [stdout] ... [INFO] [stdout] 836 | let ocd_range = ocd_threshold.range(); [INFO] [stdout] | ^^^^^ method not found in `OCDThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `SCDThreshold` in the current scope [INFO] [stdout] --> src/lib.rs:856:38 [INFO] [stdout] | [INFO] [stdout] 174 | pub enum SCDThreshold { [INFO] [stdout] | --------------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 856 | let scd_bits = scd_threshold.bits(range_to_use.clone()); [INFO] [stdout] | ^^^^ method not found in `SCDThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for enum `OCDSCDRange` in the current scope [INFO] [stdout] --> src/lib.rs:856:56 [INFO] [stdout] | [INFO] [stdout] 196 | pub enum OCDSCDRange { [INFO] [stdout] | -------------------- method `clone` not found for this [INFO] [stdout] ... [INFO] [stdout] 856 | let scd_bits = scd_threshold.bits(range_to_use.clone()); [INFO] [stdout] | ^^^^^ method not found in `OCDSCDRange` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `OCDThreshold` in the current scope [INFO] [stdout] --> src/lib.rs:857:38 [INFO] [stdout] | [INFO] [stdout] 295 | pub enum OCDThreshold { [INFO] [stdout] | --------------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 857 | let ocd_bits = ocd_threshold.bits(range_to_use.clone()); [INFO] [stdout] | ^^^^ method not found in `OCDThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for enum `OCDSCDRange` in the current scope [INFO] [stdout] --> src/lib.rs:857:56 [INFO] [stdout] | [INFO] [stdout] 196 | pub enum OCDSCDRange { [INFO] [stdout] | -------------------- method `clone` not found for this [INFO] [stdout] ... [INFO] [stdout] 857 | let ocd_bits = ocd_threshold.bits(range_to_use.clone()); [INFO] [stdout] | ^^^^^ method not found in `OCDSCDRange` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `OCDSCDRange` in the current scope [INFO] [stdout] --> src/lib.rs:860:32 [INFO] [stdout] | [INFO] [stdout] 196 | pub enum OCDSCDRange { [INFO] [stdout] | -------------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 860 | regs[0] = range_to_use.bits() | config.scd_delay.bits() | scd_bits; // PROTECT1 (0x06) [INFO] [stdout] | ^^^^ method not found in `OCDSCDRange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `SCDDelay` in the current scope [INFO] [stdout] --> src/lib.rs:860:58 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum SCDDelay { [INFO] [stdout] | ----------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 860 | regs[0] = range_to_use.bits() | config.scd_delay.bits() | scd_bits; // PROTECT1 (0x06) [INFO] [stdout] | ^^^^ method not found in `SCDDelay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `OCDDelay` in the current scope [INFO] [stdout] --> src/lib.rs:861:36 [INFO] [stdout] | [INFO] [stdout] 268 | pub enum OCDDelay { [INFO] [stdout] | ----------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 861 | regs[1] = config.ocd_delay.bits() | ocd_bits; // PROTECT2 (0x07) [INFO] [stdout] | ^^^^ method not found in `OCDDelay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `UVDelay` in the current scope [INFO] [stdout] --> src/lib.rs:862:35 [INFO] [stdout] | [INFO] [stdout] 393 | pub enum UVDelay { [INFO] [stdout] | ---------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 862 | regs[2] = config.uv_delay.bits() | config.ov_delay.bits(); // PROTECT3 (0x08) [INFO] [stdout] | ^^^^ method not found in `UVDelay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for enum `OVDelay` in the current scope [INFO] [stdout] --> src/lib.rs:862:60 [INFO] [stdout] | [INFO] [stdout] 411 | pub enum OVDelay { [INFO] [stdout] | ---------------- method `bits` not found for this [INFO] [stdout] ... [INFO] [stdout] 862 | regs[2] = config.uv_delay.bits() | config.ov_delay.bits(); // PROTECT3 (0x08) [INFO] [stdout] | ^^^^ method not found in `OVDelay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ov_voltage_range` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:864:30 [INFO] [stdout] | [INFO] [stdout] 864 | let ov_limits = self.ov_voltage_range(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uv_voltage_range` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:871:30 [INFO] [stdout] | [INFO] [stdout] 871 | let uv_limits = self.uv_voltage_range(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:882:14 [INFO] [stdout] | [INFO] [stdout] 882 | self.write_raw(i2c, 0x06, ®s)?; [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:887:14 [INFO] [stdout] | [INFO] [stdout] 887 | self.read_raw(i2c, 0x05, &mut sysctrl2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:889:14 [INFO] [stdout] | [INFO] [stdout] 889 | self.write_raw(i2c, 0x05, &sysctrl2)?; [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:895:32 [INFO] [stdout] | [INFO] [stdout] 895 | uv_threshold: self.adc_transfer_function().apply(0b01_0000_0000_0000 | ((uv_bits as u16) << 4)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adc_transfer_function` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:896:32 [INFO] [stdout] | [INFO] [stdout] 896 | ov_threshold: self.adc_transfer_function().apply(0b10_0000_0000_1000 | ((ov_bits as u16) << 4)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:904:14 [INFO] [stdout] | [INFO] [stdout] 904 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:904:14 [INFO] [stdout] | [INFO] [stdout] 904 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:907:14 [INFO] [stdout] | [INFO] [stdout] 907 | self.write_raw(i2c, 0x04, &sysctrl1) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:914:14 [INFO] [stdout] | [INFO] [stdout] 914 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:914:14 [INFO] [stdout] | [INFO] [stdout] 914 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:918:14 [INFO] [stdout] | [INFO] [stdout] 918 | self.write_raw(i2c, 0x04, &sysctrl1) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:925:14 [INFO] [stdout] | [INFO] [stdout] 925 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:925:14 [INFO] [stdout] | [INFO] [stdout] 925 | self.read_raw(i2c, 0x04, &mut sysctrl1)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:939:14 [INFO] [stdout] | [INFO] [stdout] 939 | self.read_raw(i2c, 0x05, &mut sysctrl2)?; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:939:14 [INFO] [stdout] | [INFO] [stdout] 939 | self.read_raw(i2c, 0x05, &mut sysctrl2)?; [INFO] [stdout] | ^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_raw` found for mutable reference `&mut BQ769x0` in the current scope [INFO] [stdout] --> src/lib.rs:946:14 [INFO] [stdout] | [INFO] [stdout] 946 | self.write_raw(i2c, 0x05, &sysctrl2) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut BQ769x0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 92 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0554, E0557, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bq769x0` due to 93 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "78d32d4d85cf7ce6a64800cb0a5316861d12e0bf030fe5a74ea589b50da695bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78d32d4d85cf7ce6a64800cb0a5316861d12e0bf030fe5a74ea589b50da695bb", kill_on_drop: false }` [INFO] [stdout] 78d32d4d85cf7ce6a64800cb0a5316861d12e0bf030fe5a74ea589b50da695bb