[INFO] fetching crate mlx9064x 0.2.1... [INFO] checking mlx9064x-0.2.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate mlx9064x 0.2.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate mlx9064x 0.2.1 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mlx9064x 0.2.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate mlx9064x 0.2.1 [INFO] tweaked toml for crates.io crate mlx9064x 0.2.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate mlx9064x 0.2.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 582e251da4b35772e5e474207a7f2193fa30d7e72436c7dcf2b79c3952f2aac2 [INFO] running `Command { std: "docker" "start" "-a" "582e251da4b35772e5e474207a7f2193fa30d7e72436c7dcf2b79c3952f2aac2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "582e251da4b35772e5e474207a7f2193fa30d7e72436c7dcf2b79c3952f2aac2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "582e251da4b35772e5e474207a7f2193fa30d7e72436c7dcf2b79c3952f2aac2", kill_on_drop: false }` [INFO] [stdout] 582e251da4b35772e5e474207a7f2193fa30d7e72436c7dcf2b79c3952f2aac2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47a989b5382d92c7da94106d86b637f2a63ba48a5ca10d573816c45327bd6bd8 [INFO] running `Command { std: "docker" "start" "-a" "47a989b5382d92c7da94106d86b637f2a63ba48a5ca10d573816c45327bd6bd8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling semver v1.0.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking nb v1.0.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking arrayvec v0.7.1 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking embedded-hal v0.2.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking termios v0.2.2 [INFO] [stderr] Checking ioctl-rs v0.1.6 [INFO] [stderr] Checking serial-core v0.4.0 [INFO] [stderr] Checking serial-unix v0.4.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking i2cdev v0.4.4 [INFO] [stderr] Checking spidev v0.4.1 [INFO] [stderr] Checking sysfs_gpio v0.5.4 [INFO] [stderr] Checking linux-embedded-hal v0.3.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling num_enum_derive v0.5.2 [INFO] [stderr] Checking num_enum v0.5.2 [INFO] [stderr] Checking mlx9064x v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Address` [INFO] [stdout] --> src/mlx90640/mod.rs:197:32 [INFO] [stdout] | [INFO] [stdout] 197 | use crate::{AccessPattern, Address, MelexisCamera, Resolution, Subpage}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:160:55 [INFO] [stdout] | [INFO] [stdout] 160 | let even_row_pattern = core::array::IntoIter::new([row_even_col_even, row_even_col_odd]); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:161:54 [INFO] [stdout] | [INFO] [stdout] 161 | let odd_row_pattern = core::array::IntoIter::new([row_odd_col_even, row_odd_col_odd]); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:103:60 [INFO] [stdout] | [INFO] [stdout] 103 | let rows_coefficients = core::array::IntoIter::new(rows_coefficients) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:224:36 [INFO] [stdout] | [INFO] [stdout] 224 | core::array::IntoIter::new(alpha_pixels) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:261:68 [INFO] [stdout] | [INFO] [stdout] 261 | let k_v_pattern: ArrayVec = core::array::IntoIter::new(k_v_avg) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:160:55 [INFO] [stdout] | [INFO] [stdout] 160 | let even_row_pattern = core::array::IntoIter::new([row_even_col_even, row_even_col_odd]); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:161:54 [INFO] [stdout] | [INFO] [stdout] 161 | let odd_row_pattern = core::array::IntoIter::new([row_odd_col_even, row_odd_col_odd]); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:103:60 [INFO] [stdout] | [INFO] [stdout] 103 | let rows_coefficients = core::array::IntoIter::new(rows_coefficients) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:224:36 [INFO] [stdout] | [INFO] [stdout] 224 | core::array::IntoIter::new(alpha_pixels) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/mlx90640/eeprom.rs:261:68 [INFO] [stdout] | [INFO] [stdout] 261 | let k_v_pattern: ArrayVec = core::array::IntoIter::new(k_v_avg) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:249:43 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] 249 | let unpacked_scales = word_to_u4s(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:268:68 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 268 | let (alpha_cp_ratio, alpha_cp_bytes) = word_6_10_split(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:277:70 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 277 | let (offset_cp_delta, offset_cp_bytes) = word_6_10_split(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:281:32 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 281 | let k_v_cp = f32::from(buf.get_i8()) / k_v_scale; [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:282:33 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | let k_ta_cp = f32::from(buf.get_i8()) / k_ta_scale1; [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:283:32 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 283 | let k_s_ta = f32::from(buf.get_i8()) / 13f32.exp2(); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:284:54 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 284 | let temperature_gradient_coefficient = match buf.get_i8() { [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:289:62 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 289 | let mut k_s_to_ranges: ArrayVec = (0..4).map(|_| f32::from(buf.get_i8())).collect(); [INFO] [stdout] | ^^^ --- second borrow occurs due to use of `buf` in closure [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:296:49 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 296 | let unpacked_corner_temps = word_to_u4s(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:319:23 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 319 | .for_each(|(((offset, alpha), k_ta_rc), k_ta)| { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | first borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 322 | let high = buf.get_u8(); [INFO] [stdout] | --- second borrow occurs due to use of `buf` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mlx9064x` (lib) due to 11 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:249:43 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] 249 | let unpacked_scales = word_to_u4s(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:268:68 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 268 | let (alpha_cp_ratio, alpha_cp_bytes) = word_6_10_split(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:277:70 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 277 | let (offset_cp_delta, offset_cp_bytes) = word_6_10_split(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:281:32 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 281 | let k_v_cp = f32::from(buf.get_i8()) / k_v_scale; [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:282:33 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | let k_ta_cp = f32::from(buf.get_i8()) / k_ta_scale1; [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:283:32 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 283 | let k_s_ta = f32::from(buf.get_i8()) / 13f32.exp2(); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:284:54 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 284 | let temperature_gradient_coefficient = match buf.get_i8() { [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:289:62 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 289 | let mut k_s_to_ranges: ArrayVec = (0..4).map(|_| f32::from(buf.get_i8())).collect(); [INFO] [stdout] | ^^^ --- second borrow occurs due to use of `buf` in closure [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:296:49 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 296 | let unpacked_corner_temps = word_to_u4s(&mut buf); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 317 | .zip(lazy_k_ta_pixels) [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `buf` as mutable more than once at a time [INFO] [stdout] --> src/mlx90640/eeprom.rs:319:23 [INFO] [stdout] | [INFO] [stdout] 248 | let lazy_k_ta_pixels = Self::generate_k_ta_pixels(&mut buf); [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 319 | .for_each(|(((offset, alpha), k_ta_rc), k_ta)| { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | first borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 322 | let high = buf.get_u8(); [INFO] [stdout] | --- second borrow occurs due to use of `buf` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mlx9064x` (lib test) due to 11 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47a989b5382d92c7da94106d86b637f2a63ba48a5ca10d573816c45327bd6bd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47a989b5382d92c7da94106d86b637f2a63ba48a5ca10d573816c45327bd6bd8", kill_on_drop: false }` [INFO] [stdout] 47a989b5382d92c7da94106d86b637f2a63ba48a5ca10d573816c45327bd6bd8