[INFO] fetching crate aemics-stm32g4xx-hal 0.1.0... [INFO] checking aemics-stm32g4xx-hal-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate aemics-stm32g4xx-hal 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate aemics-stm32g4xx-hal 0.1.0 [INFO] finished tweaking crates.io crate aemics-stm32g4xx-hal 0.1.0 [INFO] tweaked toml for crates.io crate aemics-stm32g4xx-hal 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate aemics-stm32g4xx-hal 0.1.0 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 crates.io crate aemics-stm32g4xx-hal 0.1.0 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] Downloading crates ... [INFO] [stderr] Downloaded usbd-serial v0.1.1 [INFO] [stderr] Downloaded cortex-m-semihosting v0.5.0 [INFO] [stderr] Downloaded usb-device v0.2.9 [INFO] [stderr] Downloaded defmt v0.3.6 [INFO] [stderr] Downloaded defmt-macros v0.3.7 [INFO] [stderr] Downloaded cortex-m-log v0.8.0 [INFO] [stderr] Downloaded gcd v2.3.0 [INFO] [stderr] Downloaded panic-itm v0.4.2 [INFO] [stderr] Downloaded rtic-monotonic v1.0.0 [INFO] [stderr] Downloaded rtic-syntax v1.0.3 [INFO] [stderr] Downloaded cortex-m-rtic-macros v1.1.6 [INFO] [stderr] Downloaded fugit v0.3.7 [INFO] [stderr] Downloaded embedded-dma v0.2.0 [INFO] [stderr] Downloaded rtic-core v1.0.0 [INFO] [stderr] Downloaded stm32-usbd v0.6.0 [INFO] [stderr] Downloaded panic-semihosting v0.6.0 [INFO] [stderr] Downloaded volatile-register v0.2.2 [INFO] [stderr] Downloaded fdcan v0.2.0 [INFO] [stderr] Downloaded cortex-m-rtic v1.1.4 [INFO] [stderr] Downloaded embedded-sdmmc v0.7.0 [INFO] [stderr] Downloaded stm32g4 v0.15.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1820e36f3be0e0b1fdd7ca778b68d5453a92ebf380fffd12ff11fd6ac6ce1847 [INFO] running `Command { std: "docker" "start" "-a" "1820e36f3be0e0b1fdd7ca778b68d5453a92ebf380fffd12ff11fd6ac6ce1847", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1820e36f3be0e0b1fdd7ca778b68d5453a92ebf380fffd12ff11fd6ac6ce1847", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1820e36f3be0e0b1fdd7ca778b68d5453a92ebf380fffd12ff11fd6ac6ce1847", kill_on_drop: false }` [INFO] [stdout] 1820e36f3be0e0b1fdd7ca778b68d5453a92ebf380fffd12ff11fd6ac6ce1847 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c1e3d636097c75d021cbaa0b6a8808e060748b69e9c5fefea713466294c6f8e [INFO] running `Command { std: "docker" "start" "-a" "1c1e3d636097c75d021cbaa0b6a8808e060748b69e9c5fefea713466294c6f8e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking critical-section v1.1.2 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling defmt v0.3.6 [INFO] [stderr] Compiling defmt-macros v0.3.7 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking volatile-register v0.2.2 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cortex-m-rt v0.7.3 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling cortex-m-semihosting v0.5.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling stm32g4 v0.15.1 [INFO] [stderr] Checking usb-device v0.2.9 [INFO] [stderr] Checking bare-metal v1.0.0 [INFO] [stderr] Compiling stm32-usbd v0.6.0 [INFO] [stderr] Compiling defmt-rtt v0.4.0 [INFO] [stderr] Compiling panic-probe v0.3.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling cortex-m-log v0.8.0 [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling cortex-m-rtic v1.1.4 [INFO] [stderr] Checking fugit v0.3.7 [INFO] [stderr] Checking usbd-serial v0.1.1 [INFO] [stderr] Checking embedded-dma v0.2.0 [INFO] [stderr] Checking rtic-monotonic v1.0.0 [INFO] [stderr] Checking embedded-io v0.6.1 [INFO] [stderr] Checking rtic-core v1.0.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking panic-halt v0.2.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking fdcan v0.2.0 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking panic-itm v0.4.2 [INFO] [stderr] Checking panic-semihosting v0.6.0 [INFO] [stderr] Checking embedded-sdmmc v0.7.0 [INFO] [stderr] Compiling rtic-syntax v1.0.3 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.0 [INFO] [stderr] Compiling cortex-m-rtic-macros v1.1.6 [INFO] [stderr] Compiling defmt-parser v0.3.4 [INFO] [stderr] Checking aemics-stm32g4xx-hal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/can.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | feature = "stm32g4A1", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g49a` [INFO] [stdout] --> src/dma/stream.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 526 | feature = "stm32g49a", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g491"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g49a` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g49a` [INFO] [stdout] --> src/dma/transfer.rs:710:5 [INFO] [stdout] | [INFO] [stdout] 710 | feature = "stm32g49a", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g491"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g49a` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:876:5 [INFO] [stdout] | [INFO] [stdout] 876 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:1818:5 [INFO] [stdout] | [INFO] [stdout] 1818 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/rcc/enable.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/can.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | feature = "stm32g4A1", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g49a` [INFO] [stdout] --> src/dma/stream.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 526 | feature = "stm32g49a", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g491"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g49a` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g49a` [INFO] [stdout] --> src/dma/transfer.rs:710:5 [INFO] [stdout] | [INFO] [stdout] 710 | feature = "stm32g49a", [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g491"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g49a` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:876:5 [INFO] [stdout] | [INFO] [stdout] 876 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/pwm.rs:1818:5 [INFO] [stdout] | [INFO] [stdout] 1818 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `stm32g4A1` [INFO] [stdout] --> src/rcc/enable.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | feature = "stm32g4A1" [INFO] [stdout] | ^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"stm32g4a1"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `defmt`, `defmt-logging`, `log-itm`, `log-rtt`, `log-semihost`, `rt`, `stm32g431`, `stm32g441`, `stm32g471`, `stm32g473`, `stm32g474`, `stm32g483`, `stm32g484`, `stm32g491`, and `stm32g4a1` [INFO] [stdout] = help: consider adding `stm32g4A1` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/flash.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 449 | flash_sz: FlashSize, [INFO] [stdout] 450 | ) -> FlashWriter { [INFO] [stdout] | ------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 450 | ) -> FlashWriter<'_, PAGE_SIZE_KB> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/flash.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 449 | flash_sz: FlashSize, [INFO] [stdout] 450 | ) -> FlashWriter { [INFO] [stdout] | ------------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 450 | ) -> FlashWriter<'_, PAGE_SIZE_KB> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aemics_stm32g4xx_hal as hal` [INFO] [stdout] --> examples/usb_print.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aemics_stm32g4xx_hal as hal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let usb_dev = unsafe { USB_DEVICE.as_mut().unwrap() }; [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:51:48 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(ref mut serial) = unsafe { MUTEX_USB_SERIAL.borrow(cs).borrow_mut().deref_mut() } [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | cortex_m::interrupt::free(|cs| MUTEX_USB_SERIAL.borrow(cs).borrow_mut().replace(SerialPort::new(USB_BUS.as_ref().unwrap()))); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:80:105 [INFO] [stdout] | [INFO] [stdout] 80 | cortex_m::interrupt::free(|cs| MUTEX_USB_SERIAL.borrow(cs).borrow_mut().replace(SerialPort::new(USB_BUS.as_ref().unwrap()))); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | let usb_dev = UsbDeviceBuilder::new(USB_BUS.as_ref().unwrap(), UsbVidPid(0x16c0, 0x27dd)) [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/usb_print.rs:110:52 [INFO] [stdout] | [INFO] [stdout] 110 | if let Some(ref mut serial) = unsafe { MUTEX_USB_SERIAL.borrow(cs).borrow_mut().deref_mut() } [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] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rcc` [INFO] [stdout] --> examples/usb_echo.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let rcc = dp.RCC.freeze(Config::hsi48(), pwr); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rcc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aemics-stm32g4xx-hal` (example "pwm") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0152]: duplicate lang item in crate `panic_halt` (which `pwm` depends on): `panic_impl` [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `panic_semihosting` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in `panic_halt` loaded from /opt/rustwide/target/debug/deps/libpanic_halt-5b568ee2c7440569.rmeta [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stdout] error[E0152]: duplicate lang item in crate `panic_halt` (which `i2c_transaction` depends on): `panic_impl` [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `panic_semihosting` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in `panic_halt` loaded from /opt/rustwide/target/debug/deps/libpanic_halt-5b568ee2c7440569.rmeta [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aemics-stm32g4xx-hal` (example "i2c_transaction") due to 1 previous error [INFO] [stdout] error[E0152]: duplicate lang item in crate `panic_halt` (which `i2c` depends on): `panic_impl` [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `panic_semihosting` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in `panic_halt` loaded from /opt/rustwide/target/debug/deps/libpanic_halt-5b568ee2c7440569.rmeta [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aemics-stm32g4xx-hal` (example "i2c") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1c1e3d636097c75d021cbaa0b6a8808e060748b69e9c5fefea713466294c6f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c1e3d636097c75d021cbaa0b6a8808e060748b69e9c5fefea713466294c6f8e", kill_on_drop: false }` [INFO] [stdout] 1c1e3d636097c75d021cbaa0b6a8808e060748b69e9c5fefea713466294c6f8e