[INFO] fetching crate ch58x-hal 0.0.2... [INFO] checking ch58x-hal-0.0.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate ch58x-hal 0.0.2 into /workspace/builds/worker-1-tc1/source [INFO] removed /workspace/builds/worker-1-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate ch58x-hal 0.0.2 [INFO] finished tweaking crates.io crate ch58x-hal 0.0.2 [INFO] tweaked toml for crates.io crate ch58x-hal 0.0.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ch58x-hal 0.0.2 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 ch58x-hal 0.0.2 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 riscv v0.10.1 [INFO] [stderr] Downloaded panic-halt v0.2.0 [INFO] [stderr] Downloaded qingke-rt-macros v0.1.7 [INFO] [stderr] Downloaded qingke-rt v0.1.7 [INFO] [stderr] Downloaded darling_macro v0.20.3 [INFO] [stderr] Downloaded display-interface v0.4.1 [INFO] [stderr] Downloaded embassy-executor-macros v0.4.0 [INFO] [stderr] Downloaded display-interface-i2c v0.4.0 [INFO] [stderr] Downloaded embassy-executor v0.4.0 [INFO] [stderr] Downloaded darling v0.20.3 [INFO] [stderr] Downloaded embassy-sync v0.5.0 [INFO] [stderr] Downloaded darling_core v0.20.3 [INFO] [stderr] Downloaded heapless v0.7.16 [INFO] [stderr] Downloaded ch58x v0.3.0 [INFO] [stderr] Downloaded embedded-hal v1.0.0-rc.2 [INFO] [stderr] Downloaded embassy-time v0.2.0 [INFO] [stderr] Downloaded micromath v2.0.0 [INFO] [stderr] Downloaded embedded-sdmmc v0.6.0 [INFO] [stderr] Downloaded embedded-alloc v0.5.0 [INFO] [stderr] Downloaded embedded-hal-async v1.0.0-rc.2 [INFO] [stderr] Downloaded embedded-hal-nb v1.0.0-rc.2 [INFO] [stderr] Downloaded atomic-polyfill v0.1.11 [INFO] [stderr] Downloaded critical-section v1.1.2 [INFO] [stderr] Downloaded byte-slice-cast v0.3.5 [INFO] [stderr] Downloaded ssd1306 v0.8.4 [INFO] [stderr] Downloaded display-interface-spi v0.4.1 [INFO] [stderr] Downloaded qingke v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] d504d548cd3afb0bdfd842b8980fdc44a92b6eb1eee212d883a45ef3f40969cd [INFO] running `Command { std: "docker" "start" "-a" "d504d548cd3afb0bdfd842b8980fdc44a92b6eb1eee212d883a45ef3f40969cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d504d548cd3afb0bdfd842b8980fdc44a92b6eb1eee212d883a45ef3f40969cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d504d548cd3afb0bdfd842b8980fdc44a92b6eb1eee212d883a45ef3f40969cd", kill_on_drop: false }` [INFO] [stdout] d504d548cd3afb0bdfd842b8980fdc44a92b6eb1eee212d883a45ef3f40969cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 936127c6aecbf79a3c8426591087091a49d523a13d950194e8fcc67eef94fd76 [INFO] running `Command { std: "docker" "start" "-a" "936127c6aecbf79a3c8426591087091a49d523a13d950194e8fcc67eef94fd76", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking critical-section v1.1.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling embassy-time v0.2.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling riscv v0.10.1 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking embedded-hal v1.0.0-rc.2 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Compiling embedded-hal-async v1.0.0-rc.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling embedded-io-async v0.6.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking display-interface v0.4.1 [INFO] [stderr] Compiling embassy-sync v0.5.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking embedded-io v0.6.1 [INFO] [stderr] Compiling ch58x v0.3.0 [INFO] [stderr] Compiling qingke-rt v0.1.7 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Compiling embassy-executor v0.4.0 [INFO] [stderr] Compiling ch58x-hal v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Checking byte-slice-cast v0.3.5 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking display-interface-spi v0.4.1 [INFO] [stderr] Checking fugit v0.3.7 [INFO] [stderr] Checking display-interface-i2c v0.4.0 [INFO] [stderr] Checking embedded-hal-nb v1.0.0-rc.2 [INFO] [stderr] Checking micromath v2.0.0 [INFO] [stderr] Checking linked_list_allocator v0.10.5 [INFO] [stderr] Checking qingke v0.1.7 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking embassy-futures v0.1.1 [INFO] [stderr] Checking panic-halt v0.2.0 [INFO] [stderr] Checking embedded-alloc v0.5.0 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling heapless v0.7.16 [INFO] [stderr] Checking embedded-sdmmc v0.6.0 [INFO] [stderr] Checking embedded-graphics-core v0.4.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking embedded-graphics v0.8.1 [INFO] [stderr] Checking ssd1306 v0.8.4 [INFO] [stderr] Compiling darling_core v0.20.3 [INFO] [stderr] Compiling qingke-rt-macros v0.1.7 [INFO] [stdout] warning: unexpected `cfg` condition value: `defmt` [INFO] [stdout] --> src/gpio.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/gpio.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/gpio.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/gpio.rs:746:12 [INFO] [stdout] | [INFO] [stdout] 746 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/i2c.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `println` [INFO] [stdout] --> src/ble/mod.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{pac, println}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr` [INFO] [stdout] --> src/ble/gatt.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `defmt` [INFO] [stdout] --> src/spi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/uart.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` 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: `defmt` [INFO] [stdout] --> src/uart.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `ble`, `default`, and `embassy` [INFO] [stdout] = help: consider adding `defmt` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ordering` and `compiler_fence` [INFO] [stdout] --> src/interrupt.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use core::sync::atomic::{compiler_fence, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pac::__EXTERNAL_INTERRUPTS as _` [INFO] [stdout] --> src/interrupt.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::pac::__EXTERNAL_INTERRUPTS as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/lib.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | "addi {0}, {0}, -1", [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] 113 | "bne {0}, zero, 1b", [INFO] [stdout] | ^^^ [INFO] [stdout] 114 | inout(reg) i => _, [INFO] [stdout] | - for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIO_MASK` is never used [INFO] [stdout] --> src/interrupt.rs:177:7 [INFO] [stdout] | [INFO] [stdout] 177 | const PRIO_MASK: u8 = 0xf0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: avoid using labels containing only the digits `0` and `1` in inline assembly [INFO] [stdout] --> src/lib.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | "1:", [INFO] [stdout] | ^ use a different label that doesn't start with `0` or `1` [INFO] [stdout] | [INFO] [stdout] = help: start numbering with `2` instead [INFO] [stdout] = note: an LLVM bug makes these labels ambiguous with a binary literal number on x86 [INFO] [stdout] = note: see for more information [INFO] [stdout] = note: `#[deny(binary_asm_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | SERIAL.replace(serial); [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 mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | unsafe { &mut _stack_top as *mut u32 as usize - &mut _ebss as *mut u32 as usize } [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 214 | unsafe { &raw mut _stack_top as *mut u32 as usize - &mut _ebss as *mut u32 as usize } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:214:53 [INFO] [stdout] | [INFO] [stdout] 214 | unsafe { &mut _stack_top as *mut u32 as usize - &mut _ebss as *mut u32 as usize } [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 214 | unsafe { &mut _stack_top as *mut u32 as usize - &raw mut _ebss as *mut u32 as usize } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ble/mod.rs:152:27 [INFO] [stdout] | [INFO] [stdout] 152 | BLE_PAControlInit(&PA_CONFIG); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 152 | BLE_PAControlInit(&raw const PA_CONFIG); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(uart) = $crate::SERIAL.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/ble/mod.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | crate::println!("!! hal_tmos_task: task_id: {}, events: 0x{:04x}", task_id, events); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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: this warning originates in the macro `crate::println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ble/mod.rs:180:28 [INFO] [stdout] | [INFO] [stdout] 180 | cfg.MEMAddr = unsafe { BLE_HEAP.0.as_ptr() as u32 }; [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] --> src/sysctl.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe { &CLOCK } [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 23 | unsafe { &raw const CLOCK } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ch58x-hal` (lib) due to 1 previous error; 21 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "936127c6aecbf79a3c8426591087091a49d523a13d950194e8fcc67eef94fd76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "936127c6aecbf79a3c8426591087091a49d523a13d950194e8fcc67eef94fd76", kill_on_drop: false }` [INFO] [stdout] 936127c6aecbf79a3c8426591087091a49d523a13d950194e8fcc67eef94fd76