[INFO] cloning repository https://github.com/gabber235/Aqua-Sense [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gabber235/Aqua-Sense" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabber235%2FAqua-Sense", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabber235%2FAqua-Sense'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f286519d5c157f80263399bfdf19667be6f15606 [INFO] checking gabber235/Aqua-Sense against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabber235%2FAqua-Sense" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/gabber235/Aqua-Sense [INFO] finished tweaking git repo https://github.com/gabber235/Aqua-Sense [INFO] tweaked toml for git repo https://github.com/gabber235/Aqua-Sense written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gabber235/Aqua-Sense on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gabber235/Aqua-Sense 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/scvalex/lcd_1602_i2c.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rp-pico v0.8.0 [INFO] [stderr] Downloaded vcell v0.1.3 [INFO] [stderr] Downloaded bare-metal v0.2.5 [INFO] [stderr] Downloaded debug-helper v0.3.13 [INFO] [stderr] Downloaded frunk_derives v0.4.2 [INFO] [stderr] Downloaded defmt-rtt v0.4.0 [INFO] [stderr] Downloaded frunk_proc_macro_helpers v0.1.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.49 [INFO] [stderr] Downloaded defmt-macros v0.3.6 [INFO] [stderr] Downloaded linked_list_allocator v0.10.5 [INFO] [stderr] Downloaded frunk_core v0.4.2 [INFO] [stderr] Downloaded crc-any v2.4.3 [INFO] [stderr] Downloaded rp2040-boot2 v0.3.0 [INFO] [stderr] Downloaded cortex-m v0.7.7 [INFO] [stderr] Downloaded cortex-m-rt v0.7.3 [INFO] [stderr] Downloaded frunk v0.4.2 [INFO] [stderr] Downloaded pio v0.2.1 [INFO] [stderr] Downloaded rp2040-hal v0.9.0 [INFO] [stderr] Downloaded usb-device v0.2.9 [INFO] [stderr] Downloaded embedded-alloc v0.5.0 [INFO] [stderr] Downloaded thiserror v1.0.49 [INFO] [stderr] Downloaded syn v2.0.38 [INFO] [stderr] Downloaded defmt-parser v0.3.3 [INFO] [stderr] Downloaded defmt v0.3.5 [INFO] [stderr] Downloaded embedded-dma v0.2.0 [INFO] [stderr] Downloaded gcd v2.3.0 [INFO] [stderr] Downloaded fugit v0.3.7 [INFO] [stderr] Downloaded cortex-m-rt-macros v0.7.0 [INFO] [stderr] Downloaded bitfield v0.13.2 [INFO] [stderr] Downloaded critical-section v1.1.2 [INFO] [stderr] Downloaded panic-probe v0.3.1 [INFO] [stderr] Downloaded volatile-register v0.2.1 [INFO] [stderr] Downloaded rp2040-pac v0.5.0 [INFO] [stderr] Downloaded rp2040-hal-macros v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cebb6e317b35c52d29b5e1f769a18279a1a8797b97cea54bda7e24ba791e736 [INFO] running `Command { std: "docker" "start" "-a" "5cebb6e317b35c52d29b5e1f769a18279a1a8797b97cea54bda7e24ba791e736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cebb6e317b35c52d29b5e1f769a18279a1a8797b97cea54bda7e24ba791e736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cebb6e317b35c52d29b5e1f769a18279a1a8797b97cea54bda7e24ba791e736", kill_on_drop: false }` [INFO] [stdout] 5cebb6e317b35c52d29b5e1f769a18279a1a8797b97cea54bda7e24ba791e736 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9db16c466bee70172ada386caeed00a268c98bc784dca9ea3090b2a2778d1ce1 [INFO] running `Command { std: "docker" "start" "-a" "9db16c466bee70172ada386caeed00a268c98bc784dca9ea3090b2a2778d1ce1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling cortex-m-rt v0.7.3 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling defmt v0.3.5 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking volatile-register v0.2.1 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Compiling defmt-macros v0.3.6 [INFO] [stderr] Checking critical-section v1.1.2 [INFO] [stderr] Compiling debug-helper v0.3.13 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling frunk_core v0.4.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crc-any v2.4.3 [INFO] [stderr] Compiling rp2040-pac v0.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling rp2040-boot2 v0.3.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking embedded-dma v0.2.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking fugit v0.3.7 [INFO] [stderr] Checking usb-device v0.2.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling rp-pico v0.8.0 [INFO] [stderr] Compiling panic-probe v0.3.1 [INFO] [stderr] Compiling defmt-rtt v0.4.0 [INFO] [stderr] Compiling aqua_sense v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking linked_list_allocator v0.10.5 [INFO] [stderr] Checking lcd_1602_i2c v0.3.0 (https://github.com/scvalex/lcd_1602_i2c.git#8ca78bae) [INFO] [stderr] Checking embedded-alloc v0.5.0 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Compiling frunk_derives v0.4.2 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.0 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Checking frunk v0.4.2 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Checking pio v0.2.1 [INFO] [stderr] Compiling rp2040-hal-macros v0.1.0 [INFO] [stderr] Compiling defmt-parser v0.3.3 [INFO] [stderr] Checking rp2040-hal v0.9.0 [INFO] [stdout] warning: unused import: `LcdDisplay` [INFO] [stdout] --> src/bin/screen_test.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | use lcd_1602_i2c::{Lcd, LcdDisplay}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `defmt::*` [INFO] [stdout] --> src/bin/aqua_sense.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use defmt::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LcdDisplay` [INFO] [stdout] --> src/bin/screen_test.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | use lcd_1602_i2c::{Lcd, LcdDisplay}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `defmt::*` [INFO] [stdout] --> src/bin/aqua_sense.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use defmt::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/bin/screen_test.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:347:36 [INFO] [stdout] | [INFO] [stdout] 347 | if left.len() + right.len() <= SCREEN_WIDTH { [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 347 | if left.len() + right.len() <= SCREEN_WIDTH.into() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:39 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:351:37 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:52 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:351:50 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aqua_sense` (bin "screen_test") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `aqua_sense` (bin "led_test") due to 2 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/str.rs:531:12 [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat((SCREEN_WIDTH - left.len() - right.len()).into()), [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:360:21 [INFO] [stdout] | [INFO] [stdout] 360 | if text.len() < SCREEN_WIDTH { [INFO] [stdout] | ---------- ^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 360 | if text.len() < SCREEN_WIDTH.into() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:361:52 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:361:50 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:361:36 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/str.rs:531:12 [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat(((SCREEN_WIDTH - text.len()) / 2).into()), text) [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:347:36 [INFO] [stdout] | [INFO] [stdout] 347 | if left.len() + right.len() <= SCREEN_WIDTH { [INFO] [stdout] | ------------------------ ^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 347 | if left.len() + right.len() <= SCREEN_WIDTH.into() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:39 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:351:37 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:52 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `defmt::*` [INFO] [stdout] --> src/bin/experiment.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use defmt::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:351:50 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `defmt::*` [INFO] [stdout] --> src/bin/experiment.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use defmt::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat(SCREEN_WIDTH - left.len() - right.len()), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/str.rs:531:12 [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 351 | " ".repeat((SCREEN_WIDTH - left.len() - right.len()).into()), [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:360:21 [INFO] [stdout] | [INFO] [stdout] 360 | if text.len() < SCREEN_WIDTH { [INFO] [stdout] | ---------- ^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 360 | if text.len() < SCREEN_WIDTH.into() { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:361:52 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `u8` [INFO] [stdout] --> src/bin/aqua_sense.rs:361:50 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ^ no implementation for `u8 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `&u8` implements `Sub` [INFO] [stdout] `u8` implements `Sub<&u8>` [INFO] [stdout] `u8` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/aqua_sense.rs:361:36 [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat((SCREEN_WIDTH - text.len()) / 2), text) [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/str.rs:531:12 [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 361 | format!("{}{}", " ".repeat(((SCREEN_WIDTH - text.len()) / 2).into()), text) [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/experiment.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | let mut counter_ref = COUNTER.borrow(cs).borrow_mut(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: `#[panic_handler]` function required, but not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aqua_sense` (bin "aqua_sense" test) due to 10 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `aqua_sense` (bin "aqua_sense") due to 12 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `aqua_sense` (bin "experiment") due to 2 previous errors; 2 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/experiment.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | let mut counter_ref = COUNTER.borrow(cs).borrow_mut(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aqua_sense` (bin "blinky") due to 2 previous errors [INFO] [stdout] warning: constant `PULSES_PER_LITER` is never used [INFO] [stdout] --> src/bin/experiment.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const PULSES_PER_LITER: f32 = 330.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_CYCLE` is never used [INFO] [stdout] --> src/bin/experiment.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | const COLOR_CYCLE: [Rgb; 6] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATE` is never used [INFO] [stdout] --> src/bin/experiment.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | static STATE: Mutex> = Mutex::new(RefCell::new(State::Off)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_rgb` is never used [INFO] [stdout] --> src/bin/experiment.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn set_rgb(rgb: Rgb) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_seconds` is never used [INFO] [stdout] --> src/bin/experiment.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn format_seconds(seconds: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_liters` is never used [INFO] [stdout] --> src/bin/experiment.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn format_liters(liters: f32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_part_lines` is never used [INFO] [stdout] --> src/bin/experiment.rs:333:4 [INFO] [stdout] | [INFO] [stdout] 333 | fn multi_part_lines(left: String, right: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `center_text` is never used [INFO] [stdout] --> src/bin/experiment.rs:346:4 [INFO] [stdout] | [INFO] [stdout] 346 | fn center_text(text: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rgb` is never constructed [INFO] [stdout] --> src/bin/experiment.rs:355:8 [INFO] [stdout] | [INFO] [stdout] 355 | struct Rgb(bool, bool, bool); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `off` is never used [INFO] [stdout] --> src/bin/experiment.rs:358:8 [INFO] [stdout] | [INFO] [stdout] 357 | impl Rgb { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 358 | fn off() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `red` is never used [INFO] [stdout] --> src/bin/experiment.rs:377:19 [INFO] [stdout] | [INFO] [stdout] 365 | impl Rgb { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 377 | rgb_to_pin_state!(red, 0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rgb_to_pin_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `green` is never used [INFO] [stdout] --> src/bin/experiment.rs:378:19 [INFO] [stdout] | [INFO] [stdout] 365 | impl Rgb { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 378 | rgb_to_pin_state!(green, 1); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rgb_to_pin_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `blue` is never used [INFO] [stdout] --> src/bin/experiment.rs:379:19 [INFO] [stdout] | [INFO] [stdout] 365 | impl Rgb { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 379 | rgb_to_pin_state!(blue, 2); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rgb_to_pin_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/bin/experiment.rs:382:6 [INFO] [stdout] | [INFO] [stdout] 382 | enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `tick`, `curent_rgb`, and `display` are never used [INFO] [stdout] --> src/bin/experiment.rs:397:8 [INFO] [stdout] | [INFO] [stdout] 396 | impl State { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 397 | fn tick(&self, count: u32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | fn curent_rgb(seconds: u32) -> Rgb { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/bin/experiment.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/bin/experiment.rs:226:16 [INFO] [stdout] | [INFO] [stdout] 226 | static mut LED_INPUT_AND_PWM: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/bin/experiment.rs:259:16 [INFO] [stdout] | [INFO] [stdout] 259 | static mut TIMER: Option = None; [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9db16c466bee70172ada386caeed00a268c98bc784dca9ea3090b2a2778d1ce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9db16c466bee70172ada386caeed00a268c98bc784dca9ea3090b2a2778d1ce1", kill_on_drop: false }` [INFO] [stdout] 9db16c466bee70172ada386caeed00a268c98bc784dca9ea3090b2a2778d1ce1