[INFO] cloning repository https://github.com/Strange21/rustBoot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Strange21/rustBoot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FrustBoot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FrustBoot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20221b9ac14991063eb8454b622c15722030bbff [INFO] checking Strange21/rustBoot/20221b9ac14991063eb8454b622c15722030bbff against master#55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d for pr-146300 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FrustBoot" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 31% (302/953) Updating files: 32% (305/953) Updating files: 33% (315/953) Updating files: 34% (325/953) Updating files: 35% (334/953) Updating files: 36% (344/953) Updating files: 37% (353/953) Updating files: 38% (363/953) Updating files: 39% (372/953) Updating files: 40% (382/953) Updating files: 41% (391/953) Updating files: 42% (401/953) Updating files: 43% (410/953) Updating files: 44% (420/953) Updating files: 45% (429/953) Updating files: 46% (439/953) Updating files: 47% (448/953) Updating files: 48% (458/953) Updating files: 49% (467/953) Updating files: 50% (477/953) Updating files: 51% (487/953) Updating files: 52% (496/953) Updating files: 53% (506/953) Updating files: 54% (515/953) Updating files: 55% (525/953) Updating files: 56% (534/953) Updating files: 57% (544/953) Updating files: 58% (553/953) Updating files: 59% (563/953) Updating files: 60% (572/953) Updating files: 61% (582/953) Updating files: 62% (591/953) Updating files: 63% (601/953) Updating files: 64% (610/953) Updating files: 65% (620/953) Updating files: 66% (629/953) Updating files: 67% (639/953) Updating files: 68% (649/953) Updating files: 69% (658/953) Updating files: 70% (668/953) Updating files: 71% (677/953) Updating files: 72% (687/953) Updating files: 73% (696/953) Updating files: 74% (706/953) Updating files: 75% (715/953) Updating files: 76% (725/953) Updating files: 77% (734/953) Updating files: 78% (744/953) Updating files: 79% (753/953) Updating files: 80% (763/953) Updating files: 81% (772/953) Updating files: 82% (782/953) Updating files: 83% (791/953) Updating files: 84% (801/953) Updating files: 85% (811/953) Updating files: 86% (820/953) Updating files: 87% (830/953) Updating files: 88% (839/953) Updating files: 88% (842/953) Updating files: 89% (849/953) Updating files: 90% (858/953) Updating files: 91% (868/953) Updating files: 92% (877/953) Updating files: 93% (887/953) Updating files: 94% (896/953) Updating files: 95% (906/953) Updating files: 96% (915/953) Updating files: 97% (925/953) Updating files: 98% (934/953) Updating files: 99% (944/953) Updating files: 100% (953/953) Updating files: 100% (953/953), done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Strange21/rustBoot [INFO] finished tweaking git repo https://github.com/Strange21/rustBoot [INFO] tweaked toml for git repo https://github.com/Strange21/rustBoot written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Strange21/rustBoot on toolchain 55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Strange21/rustBoot 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" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded elliptic-curve v0.10.6 [INFO] [stderr] Downloaded xshell-macros v0.1.17 [INFO] [stderr] Downloaded ff v0.10.1 [INFO] [stderr] Downloaded defmt-macros v0.3.2 [INFO] [stderr] Downloaded xshell v0.1.17 [INFO] [stderr] Downloaded p256 v0.10.1 [INFO] [stderr] Downloaded defmt v0.3.1 [INFO] [stderr] Downloaded ecdsa v0.12.4 [INFO] [stderr] Downloaded group v0.10.0 [INFO] [stderr] Downloaded k256 v0.9.6 [INFO] [stderr] Downloaded signature v1.3.2 [INFO] [stderr] Downloaded ff v0.11.0 [INFO] [stderr] Downloaded libc-print v0.1.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 349edd05eca1cebcca7464938ffe7cf1d0d9461050947b53f3cba1900805c852 [INFO] running `Command { std: "docker" "start" "-a" "349edd05eca1cebcca7464938ffe7cf1d0d9461050947b53f3cba1900805c852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "349edd05eca1cebcca7464938ffe7cf1d0d9461050947b53f3cba1900805c852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "349edd05eca1cebcca7464938ffe7cf1d0d9461050947b53f3cba1900805c852", kill_on_drop: false }` [INFO] [stdout] 349edd05eca1cebcca7464938ffe7cf1d0d9461050947b53f3cba1900805c852 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a41a77e27975e8b3750086ade539490628e4fc64870925959dd337910cef5938 [INFO] running `Command { std: "docker" "start" "-a" "a41a77e27975e8b3750086ade539490628e4fc64870925959dd337910cef5938", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Checking const-oid v0.7.1 [INFO] [stderr] Checking zeroize v1.4.3 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Checking base16ct v0.1.1 [INFO] [stderr] Compiling defmt-macros v0.3.2 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling defmt-parser v0.3.1 [INFO] [stderr] Compiling defmt v0.3.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling libc v0.2.124 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Checking der v0.5.1 [INFO] [stderr] Checking ff v0.11.0 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Compiling xshell-macros v0.1.17 [INFO] [stderr] Checking group v0.11.0 [INFO] [stderr] Checking xshell v0.1.17 [INFO] [stderr] Checking spki v0.5.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crypto-bigint v0.3.2 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking pkcs8 v0.8.0 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking signature v1.3.2 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking sec1 v0.2.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking libc-print v0.1.19 [INFO] [stderr] Checking rfc6979 v0.1.0 [INFO] [stderr] Checking elliptic-curve v0.11.12 [INFO] [stderr] Checking ecdsa v0.13.4 [INFO] [stderr] Checking p256 v0.10.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking rustBoot v0.1.0 (/opt/rustwide/workdir/rustBoot) [INFO] [stdout] error[E0432]: unresolved import `core::lazy` [INFO] [stdout] --> rustBoot/src/image/image.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use core::lazy::OnceCell; [INFO] [stdout] | ^^^^ could not find `lazy` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `core::lazy` [INFO] [stdout] --> rustBoot/src/image/image.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use core::lazy::OnceCell; [INFO] [stdout] | ^^^^ could not find `lazy` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 89 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:413:38 [INFO] [stdout] | [INFO] [stdout] 413 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 89 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:62:41 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:62:66 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:63:32 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] 63 | pub const BOOT_FWBASE: usize = BOOT_PARTITION_ADDRESS + IMAGE_HEADER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:65:70 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] 66 | pub const UPDATE_FWBASE: usize = UPDATE_PARTITION_ADDRESS + IMAGE_HEADER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWAP_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | pub const SWAP_BASE: usize = SWAP_PARTITION_ADDRESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:185:35 [INFO] [stdout] | [INFO] [stdout] 185 | let magic = *(BOOT_PARTITION_ADDRESS as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | size = *((BOOT_PARTITION_ADDRESS + 4) as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:187:61 [INFO] [stdout] | [INFO] [stdout] 187 | if (magic != RUSTBOOT_MAGIC) || (size > PARTITION_SIZE - IMAGE_HEADER_SIZE) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | hdr: Some(BOOT_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:230:35 [INFO] [stdout] | [INFO] [stdout] 230 | let magic = *(UPDATE_PARTITION_ADDRESS as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:231:31 [INFO] [stdout] | [INFO] [stdout] 231 | size = *((UPDATE_PARTITION_ADDRESS + 4) as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:232:61 [INFO] [stdout] | [INFO] [stdout] 232 | if (magic != RUSTBOOT_MAGIC) || (size > PARTITION_SIZE - IMAGE_HEADER_SIZE) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:237:31 [INFO] [stdout] | [INFO] [stdout] 237 | hdr: Some(UPDATE_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWAP_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:271:31 [INFO] [stdout] | [INFO] [stdout] 271 | hdr: Some(SWAP_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Format` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:413:38 [INFO] [stdout] | [INFO] [stdout] 413 | #[cfg_attr(feature = "defmt", derive(Format))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use defmt::Format; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECTOR_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:275:30 [INFO] [stdout] | [INFO] [stdout] 275 | fw_size: SECTOR_SIZE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:677:50 [INFO] [stdout] | [INFO] [stdout] 677 | let part = (unsafe { (val as *const [u8; PARTITION_SIZE]).as_ref() }) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_as_chunks` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:62:41 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:62:66 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:63:32 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] 63 | pub const BOOT_FWBASE: usize = BOOT_PARTITION_ADDRESS + IMAGE_HEADER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:65:70 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] 66 | pub const UPDATE_FWBASE: usize = UPDATE_PARTITION_ADDRESS + IMAGE_HEADER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWAP_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/constants.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | pub const SWAP_BASE: usize = SWAP_PARTITION_ADDRESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:185:35 [INFO] [stdout] | [INFO] [stdout] 185 | let magic = *(BOOT_PARTITION_ADDRESS as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | size = *((BOOT_PARTITION_ADDRESS + 4) as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:187:61 [INFO] [stdout] | [INFO] [stdout] 187 | if (magic != RUSTBOOT_MAGIC) || (size > PARTITION_SIZE - IMAGE_HEADER_SIZE) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BOOT_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | hdr: Some(BOOT_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `BOOT_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const BOOT_TRAILER_ADDRESS: usize = BOOT_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | -------------------------------------------------------------------------------- similarly named constant `BOOT_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:230:35 [INFO] [stdout] | [INFO] [stdout] 230 | let magic = *(UPDATE_PARTITION_ADDRESS as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:231:31 [INFO] [stdout] | [INFO] [stdout] 231 | size = *((UPDATE_PARTITION_ADDRESS + 4) as *const usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:232:61 [INFO] [stdout] | [INFO] [stdout] 232 | if (magic != RUSTBOOT_MAGIC) || (size > PARTITION_SIZE - IMAGE_HEADER_SIZE) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPDATE_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:237:31 [INFO] [stdout] | [INFO] [stdout] 237 | hdr: Some(UPDATE_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UPDATE_TRAILER_ADDRESS` [INFO] [stdout] | [INFO] [stdout] ::: rustBoot/src/constants.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const UPDATE_TRAILER_ADDRESS: usize = UPDATE_PARTITION_ADDRESS + PARTITION_SIZE; [INFO] [stdout] | ------------------------------------------------------------------------------------ similarly named constant `UPDATE_TRAILER_ADDRESS` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWAP_PARTITION_ADDRESS` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:271:31 [INFO] [stdout] | [INFO] [stdout] 271 | hdr: Some(SWAP_PARTITION_ADDRESS as *const u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECTOR_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:275:30 [INFO] [stdout] | [INFO] [stdout] 275 | fw_size: SECTOR_SIZE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PARTITION_SIZE` in this scope [INFO] [stdout] --> rustBoot/src/image/image.rs:677:50 [INFO] [stdout] | [INFO] [stdout] 677 | let part = (unsafe { (val as *const [u8; PARTITION_SIZE]).as_ref() }) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_as_chunks` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustBoot/src/lib.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(once_cell, is_sorted, slice_as_chunks)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> rustBoot/src/image/image.rs:532:19 [INFO] [stdout] | [INFO] [stdout] 532 | let val = parse_tlv(self, Tags::Version)?; [INFO] [stdout] | ^^^^^^^^^ ---- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `Part` declared on the function `parse_tlv` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: image::image::Swappable` [INFO] [stdout] = help: the following types implement trait `image::image::Swappable`: [INFO] [stdout] image::image::Boot [INFO] [stdout] image::image::Update [INFO] [stdout] note: required by a bound in `parser::parse_tlv` [INFO] [stdout] --> rustBoot/src/parser.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn parse_tlv<'a, Part: ValidPart + Swappable, State: TypeState>( [INFO] [stdout] | ^^^^^^^^^ required by this bound in `parse_tlv` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 532 | let val = parse_tlv::(self, Tags::Version)?; [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> rustBoot/src/image/image.rs:545:19 [INFO] [stdout] | [INFO] [stdout] 545 | let val = parse_tlv(self, Tags::ImgType)?; [INFO] [stdout] | ^^^^^^^^^ ---- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `Part` declared on the function `parse_tlv` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: image::image::Swappable` [INFO] [stdout] = help: the following types implement trait `image::image::Swappable`: [INFO] [stdout] image::image::Boot [INFO] [stdout] image::image::Update [INFO] [stdout] note: required by a bound in `parser::parse_tlv` [INFO] [stdout] --> rustBoot/src/parser.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn parse_tlv<'a, Part: ValidPart + Swappable, State: TypeState>( [INFO] [stdout] | ^^^^^^^^^ required by this bound in `parse_tlv` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 545 | let val = parse_tlv::(self, Tags::ImgType)?; [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `config` [INFO] [stdout] --> rustBoot/src/dt/fit.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 212 | let config = Config { [INFO] [stdout] | ------ move occurs because `config` has type `Config<'_, S>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 220 | configuration = config; [INFO] [stdout] | ------ value moved here [INFO] [stdout] 221 | #[cfg(feature = "defmt")] [INFO] [stdout] 222 | defmt::info!("Config: {:?}\n", config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: if `Config<'_, S>` implemented `Clone`, you could clone the value [INFO] [stdout] --> rustBoot/src/dt/fit.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Config<'a, const S: usize> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 220 | configuration = config; [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] = note: this error originates in the macro `defmt::info` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> rustBoot/src/image/image.rs:532:19 [INFO] [stdout] | [INFO] [stdout] 532 | let val = parse_tlv(self, Tags::Version)?; [INFO] [stdout] | ^^^^^^^^^ ---- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `Part` declared on the function `parse_tlv` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: image::image::Swappable` [INFO] [stdout] = help: the following types implement trait `image::image::Swappable`: [INFO] [stdout] image::image::Boot [INFO] [stdout] image::image::Update [INFO] [stdout] note: required by a bound in `parser::parse_tlv` [INFO] [stdout] --> rustBoot/src/parser.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn parse_tlv<'a, Part: ValidPart + Swappable, State: TypeState>( [INFO] [stdout] | ^^^^^^^^^ required by this bound in `parse_tlv` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 532 | let val = parse_tlv::(self, Tags::Version)?; [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> rustBoot/src/image/image.rs:545:19 [INFO] [stdout] | [INFO] [stdout] 545 | let val = parse_tlv(self, Tags::ImgType)?; [INFO] [stdout] | ^^^^^^^^^ ---- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `Part` declared on the function `parse_tlv` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: image::image::Swappable` [INFO] [stdout] = help: the following types implement trait `image::image::Swappable`: [INFO] [stdout] image::image::Boot [INFO] [stdout] image::image::Update [INFO] [stdout] note: required by a bound in `parser::parse_tlv` [INFO] [stdout] --> rustBoot/src/parser.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) fn parse_tlv<'a, Part: ValidPart + Swappable, State: TypeState>( [INFO] [stdout] | ^^^^^^^^^ required by this bound in `parse_tlv` [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 545 | let val = parse_tlv::(self, Tags::ImgType)?; [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `config` [INFO] [stdout] --> rustBoot/src/dt/fit.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 212 | let config = Config { [INFO] [stdout] | ------ move occurs because `config` has type `Config<'_, S>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 220 | configuration = config; [INFO] [stdout] | ------ value moved here [INFO] [stdout] 221 | #[cfg(feature = "defmt")] [INFO] [stdout] 222 | defmt::info!("Config: {:?}\n", config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: if `Config<'_, S>` implemented `Clone`, you could clone the value [INFO] [stdout] --> rustBoot/src/dt/fit.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Config<'a, const S: usize> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 220 | configuration = config; [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] = note: this error originates in the macro `defmt::info` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0382, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustBoot` (lib) due to 29 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustBoot` (lib test) due to 29 previous errors; 3 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0283, E0382, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a41a77e27975e8b3750086ade539490628e4fc64870925959dd337910cef5938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a41a77e27975e8b3750086ade539490628e4fc64870925959dd337910cef5938", kill_on_drop: false }` [INFO] [stdout] a41a77e27975e8b3750086ade539490628e4fc64870925959dd337910cef5938