[INFO] cloning repository https://github.com/fudanchii/stm32f401x [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fudanchii/stm32f401x" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 21f930b393d5c62a80d0e40dd5dac8509bc41db2 [INFO] checking fudanchii/stm32f401x against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fudanchii/stm32f401x on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3/source/.cargo/config [INFO] started tweaking git repo https://github.com/fudanchii/stm32f401x [INFO] finished tweaking git repo https://github.com/fudanchii/stm32f401x [INFO] tweaked toml for git repo https://github.com/fudanchii/stm32f401x written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/fudanchii/stm32f401x already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1dba68741c8d28fc758afb1694eb1bdec2b48bac3006b7c2f0775e768a1884f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d1dba68741c8d28fc758afb1694eb1bdec2b48bac3006b7c2f0775e768a1884f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1dba68741c8d28fc758afb1694eb1bdec2b48bac3006b7c2f0775e768a1884f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1dba68741c8d28fc758afb1694eb1bdec2b48bac3006b7c2f0775e768a1884f", kill_on_drop: false }` [INFO] [stdout] d1dba68741c8d28fc758afb1694eb1bdec2b48bac3006b7c2f0775e768a1884f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2996491ff9dfb05914cf91a5e06fadacb4bad007d0f7c4dc93ed92f131518b8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a2996491ff9dfb05914cf91a5e06fadacb4bad007d0f7c4dc93ed92f131518b8", kill_on_drop: false }` [INFO] [stderr] Compiling stm32f401x v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking nb v0.1.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking embedded-hal v0.2.1 [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / pub unsafe extern "C" fn system_init() { [INFO] [stdout] 29 | | rcc::APB1::enable_pwr(); [INFO] [stdout] | | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 30 | | [INFO] [stdout] 31 | | while !rcc::hsi_ready() { [INFO] [stdout] | __|_____- [INFO] [stdout] 32 | | | nop(); [INFO] [stdout] 33 | | | } [INFO] [stdout] | |__|_____- non-asm is unsupported in naked functions [INFO] [stdout] 34 | | [INFO] [stdout] 35 | | rcc::disable_pll(); [INFO] [stdout] | | ------------------- non-asm is unsupported in naked functions [INFO] [stdout] 36 | | [INFO] [stdout] 37 | / | pwr::CR::set( [INFO] [stdout] 38 | | | pwr::VOS::Scale2, [INFO] [stdout] 39 | | | pwr::ADCDC1::Unset, [INFO] [stdout] 40 | | | pwr::MRLVDS::Unset, [INFO] [stdout] ... | | [INFO] [stdout] 49 | | | pwr::LPDS::Unset, [INFO] [stdout] 50 | | | ); [INFO] [stdout] | |__|______- non-asm is unsupported in naked functions [INFO] [stdout] 51 | | [INFO] [stdout] 52 | | rcc::config_pll(rcc::InputClock::HSI); [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | | rcc::enable_pll(); [INFO] [stdout] | | ------------------ non-asm is unsupported in naked functions [INFO] [stdout] 54 | | rcc::use_pll(); [INFO] [stdout] | | --------------- non-asm is unsupported in naked functions [INFO] [stdout] 55 | | [INFO] [stdout] 56 | / | dbgmcu::CR::set( [INFO] [stdout] 57 | | | dbgmcu::TraceMode::Async, [INFO] [stdout] 58 | | | dbgmcu::TraceIO::Disable, [INFO] [stdout] 59 | | | dbgmcu::DebugStandby::Enable, [INFO] [stdout] 60 | | | dbgmcu::DebugStop::Enable, [INFO] [stdout] 61 | | | dbgmcu::DebugSleep::Enable, [INFO] [stdout] 62 | | | ); [INFO] [stdout] | |__|______- non-asm is unsupported in naked functions [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unsupported_naked_functions)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | / pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] 69 | | extern "C" { [INFO] [stdout] 70 | | static mut __bss_start__: u32; [INFO] [stdout] 71 | | static mut __bss_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 74 | | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 75 | | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 76 | | [INFO] [stdout] 77 | /| while bss < ebss { [INFO] [stdout] 78 | || ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 79 | || bss = bss.offset(1); [INFO] [stdout] 80 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe extern "C" fn init_data() { [INFO] [stdout] 87 | | extern "C" { [INFO] [stdout] 88 | | static mut __data_start__: u32; [INFO] [stdout] 89 | | static mut __data_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 94 | | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 95 | | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 96 | | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 97 | | [INFO] [stdout] 98 | /| while data < edata { [INFO] [stdout] 99 | || ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 100 | || data = data.offset(1); [INFO] [stdout] 101 | || sidata = sidata.offset(1); [INFO] [stdout] 102 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] 113 | | zero_bss(); [INFO] [stdout] | | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | | init_data(); [INFO] [stdout] | | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 115 | | system_init(); [INFO] [stdout] | | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 116 | | main() [INFO] [stdout] | | ------ non-asm is unsupported in naked functions [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: asm in naked functions must use `noreturn` option [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | asm!("bkpt"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | (*DBGMCU).CR = (tr as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | | (io as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | | (dbgstandby as u32) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | | (dbgstop as u32) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | | (dbgsleep as u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] ... | [INFO] [stdout] 50 | /| (*DBGMCU).CR = (tr as u32) [INFO] [stdout] 51 | || | (io as u32) [INFO] [stdout] 52 | || | (dbgstandby as u32) [INFO] [stdout] 53 | || | (dbgstop as u32) [INFO] [stdout] 54 | || | (dbgsleep as u32); [INFO] [stdout] | ||____________________________________- non-asm is unsupported in naked functions [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / pub fn setup() { [INFO] [stdout] 12 | | unsafe { [INFO] [stdout] 13 | | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 14 | | while ((*FLASH).ACR & FLASH_ACR_LATENCY_2WS) != FLASH_ACR_LATENCY_2WS { [INFO] [stdout] | |_________- [INFO] [stdout] 15 | || asm!("nop"); [INFO] [stdout] 16 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | (*PWR).CR |= (vos as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | | (adcdc1 as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | | (mrlvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | | (lplvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | | (fpds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | | (dbp as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | | (pls as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | | (pvde as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | | (csbf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | | (cwuf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | | (pdds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | | (lpds as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 103 | /| (*PWR).CR |= (vos as u32) [INFO] [stdout] 104 | || | (adcdc1 as u32) [INFO] [stdout] 105 | || | (mrlvds as u32) [INFO] [stdout] 106 | || | (lplvds as u32) [INFO] [stdout] ... || [INFO] [stdout] 113 | || | (pdds as u32) [INFO] [stdout] 114 | || | (lpds as u32); [INFO] [stdout] | ||________________________________- non-asm is unsupported in naked functions [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn hsi_ready() -> bool { [INFO] [stdout] 15 | | unsafe { ((*RCC).CR & RCC_CR_HSIRDY) == RCC_CR_HSIRDY } [INFO] [stdout] | | -------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub fn disable_pll() { [INFO] [stdout] 21 | | unsafe { [INFO] [stdout] 22 | | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 23 | | [INFO] [stdout] 24 | /| while pll_ready() { [INFO] [stdout] 25 | || asm!("nop"); [INFO] [stdout] 26 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pub fn enable_pll() { [INFO] [stdout] 33 | | unsafe { [INFO] [stdout] 34 | | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 35 | | [INFO] [stdout] 36 | /| while !pll_ready() { [INFO] [stdout] 37 | || asm!("nop"); [INFO] [stdout] 38 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn use_pll() { [INFO] [stdout] 45 | | embedded_flash::setup(); [INFO] [stdout] | | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 46 | | [INFO] [stdout] 47 | | unsafe { [INFO] [stdout] 48 | | // use PLL [INFO] [stdout] 49 | | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 52 | /| while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 53 | || asm!("nop"); [INFO] [stdout] 54 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 57 | | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 60 | | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 63 | | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 64 | | } [INFO] [stdout] 65 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | let f_pll_input = match input { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / pub fn config_pll(input: InputClock) { [INFO] [stdout] 73 | | const f_pll: u32 = 84; [INFO] [stdout] 74 | | const f_peripherals: u32 = 48; [INFO] [stdout] 75 | | [INFO] [stdout] 76 | /| let f_pll_input = match input { [INFO] [stdout] 77 | || InputClock::HSI => 16, [INFO] [stdout] 78 | || InputClock::HSE => 8, [INFO] [stdout] 79 | || }; [INFO] [stdout] | ||______- non-asm is unsupported in naked functions [INFO] [stdout] 80 | | let n: u32 = 336; [INFO] [stdout] | | ----------------- non-asm is unsupported in naked functions [INFO] [stdout] 81 | | let m = &f_pll_input; [INFO] [stdout] | | --------------------- non-asm is unsupported in naked functions [INFO] [stdout] 82 | | let f_vco = &f_pll_input * (&n / m); [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 83 | | let p = &f_vco / f_pll; [INFO] [stdout] | | ----------------------- non-asm is unsupported in naked functions [INFO] [stdout] 84 | | let q = &f_vco / f_peripherals; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 87 | | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | | -------------------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 88 | | } [INFO] [stdout] 89 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / pub fn pll_ready() -> bool { [INFO] [stdout] 94 | | unsafe { (*RCC).CR & RCC_CR_PLLRDY == RCC_CR_PLLRDY } [INFO] [stdout] | | ------------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / pub fn enable_gpioa() { [INFO] [stdout] 104 | | unsafe { [INFO] [stdout] 105 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOAEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 106 | | } [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / pub fn enable_gpiob() { [INFO] [stdout] 112 | | unsafe { [INFO] [stdout] 113 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOBEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | / pub fn enable_gpioc() { [INFO] [stdout] 120 | | unsafe { [INFO] [stdout] 121 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOCEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 122 | | } [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | / pub fn enable_gpiod() { [INFO] [stdout] 128 | | unsafe { [INFO] [stdout] 129 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIODEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn enable_gpioe() { [INFO] [stdout] 136 | | unsafe { [INFO] [stdout] 137 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOEEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 138 | | } [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / pub fn enable_gpioh() { [INFO] [stdout] 144 | | unsafe { [INFO] [stdout] 145 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOHEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | / pub fn enable_pwr() { [INFO] [stdout] 157 | | unsafe { [INFO] [stdout] 158 | | (*RCC).APB1ENR |= RCC_APB1ENR_PWREN; [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / pub unsafe extern "C" fn system_init() { [INFO] [stdout] 29 | | rcc::APB1::enable_pwr(); [INFO] [stdout] | | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 30 | | [INFO] [stdout] 31 | | while !rcc::hsi_ready() { [INFO] [stdout] | __|_____- [INFO] [stdout] 32 | | | nop(); [INFO] [stdout] 33 | | | } [INFO] [stdout] | |__|_____- non-asm is unsupported in naked functions [INFO] [stdout] 34 | | [INFO] [stdout] 35 | | rcc::disable_pll(); [INFO] [stdout] | | ------------------- non-asm is unsupported in naked functions [INFO] [stdout] 36 | | [INFO] [stdout] 37 | / | pwr::CR::set( [INFO] [stdout] 38 | | | pwr::VOS::Scale2, [INFO] [stdout] 39 | | | pwr::ADCDC1::Unset, [INFO] [stdout] 40 | | | pwr::MRLVDS::Unset, [INFO] [stdout] ... | | [INFO] [stdout] 49 | | | pwr::LPDS::Unset, [INFO] [stdout] 50 | | | ); [INFO] [stdout] | |__|______- non-asm is unsupported in naked functions [INFO] [stdout] 51 | | [INFO] [stdout] 52 | | rcc::config_pll(rcc::InputClock::HSI); [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | | rcc::enable_pll(); [INFO] [stdout] | | ------------------ non-asm is unsupported in naked functions [INFO] [stdout] 54 | | rcc::use_pll(); [INFO] [stdout] | | --------------- non-asm is unsupported in naked functions [INFO] [stdout] 55 | | [INFO] [stdout] 56 | / | dbgmcu::CR::set( [INFO] [stdout] 57 | | | dbgmcu::TraceMode::Async, [INFO] [stdout] 58 | | | dbgmcu::TraceIO::Disable, [INFO] [stdout] 59 | | | dbgmcu::DebugStandby::Enable, [INFO] [stdout] 60 | | | dbgmcu::DebugStop::Enable, [INFO] [stdout] 61 | | | dbgmcu::DebugSleep::Enable, [INFO] [stdout] 62 | | | ); [INFO] [stdout] | |__|______- non-asm is unsupported in naked functions [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unsupported_naked_functions)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | / pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] 69 | | extern "C" { [INFO] [stdout] 70 | | static mut __bss_start__: u32; [INFO] [stdout] 71 | | static mut __bss_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 74 | | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 75 | | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 76 | | [INFO] [stdout] 77 | /| while bss < ebss { [INFO] [stdout] 78 | || ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 79 | || bss = bss.offset(1); [INFO] [stdout] 80 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe extern "C" fn init_data() { [INFO] [stdout] 87 | | extern "C" { [INFO] [stdout] 88 | | static mut __data_start__: u32; [INFO] [stdout] 89 | | static mut __data_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 94 | | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 95 | | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 96 | | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 97 | | [INFO] [stdout] 98 | /| while data < edata { [INFO] [stdout] 99 | || ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 100 | || data = data.offset(1); [INFO] [stdout] 101 | || sidata = sidata.offset(1); [INFO] [stdout] 102 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] 113 | | zero_bss(); [INFO] [stdout] | | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | | init_data(); [INFO] [stdout] | | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 115 | | system_init(); [INFO] [stdout] | | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 116 | | main() [INFO] [stdout] | | ------ non-asm is unsupported in naked functions [INFO] [stdout] 117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: asm in naked functions must use `noreturn` option [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | asm!("bkpt"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | (*DBGMCU).CR = (tr as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | | (io as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | | (dbgstandby as u32) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | | (dbgstop as u32) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | | (dbgsleep as u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] ... | [INFO] [stdout] 50 | /| (*DBGMCU).CR = (tr as u32) [INFO] [stdout] 51 | || | (io as u32) [INFO] [stdout] 52 | || | (dbgstandby as u32) [INFO] [stdout] 53 | || | (dbgstop as u32) [INFO] [stdout] 54 | || | (dbgsleep as u32); [INFO] [stdout] | ||____________________________________- non-asm is unsupported in naked functions [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / pub fn setup() { [INFO] [stdout] 12 | | unsafe { [INFO] [stdout] 13 | | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 14 | | while ((*FLASH).ACR & FLASH_ACR_LATENCY_2WS) != FLASH_ACR_LATENCY_2WS { [INFO] [stdout] | |_________- [INFO] [stdout] 15 | || asm!("nop"); [INFO] [stdout] 16 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | (*PWR).CR |= (vos as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | | (adcdc1 as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | | (mrlvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | | (lplvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | | (fpds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | | (dbp as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | | (pls as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | | (pvde as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | | (csbf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | | (cwuf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | | (pdds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | | (lpds as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 103 | /| (*PWR).CR |= (vos as u32) [INFO] [stdout] 104 | || | (adcdc1 as u32) [INFO] [stdout] 105 | || | (mrlvds as u32) [INFO] [stdout] 106 | || | (lplvds as u32) [INFO] [stdout] ... || [INFO] [stdout] 113 | || | (pdds as u32) [INFO] [stdout] 114 | || | (lpds as u32); [INFO] [stdout] | ||________________________________- non-asm is unsupported in naked functions [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn hsi_ready() -> bool { [INFO] [stdout] 15 | | unsafe { ((*RCC).CR & RCC_CR_HSIRDY) == RCC_CR_HSIRDY } [INFO] [stdout] | | -------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub fn disable_pll() { [INFO] [stdout] 21 | | unsafe { [INFO] [stdout] 22 | | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 23 | | [INFO] [stdout] 24 | /| while pll_ready() { [INFO] [stdout] 25 | || asm!("nop"); [INFO] [stdout] 26 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / pub fn enable_pll() { [INFO] [stdout] 33 | | unsafe { [INFO] [stdout] 34 | | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 35 | | [INFO] [stdout] 36 | /| while !pll_ready() { [INFO] [stdout] 37 | || asm!("nop"); [INFO] [stdout] 38 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn use_pll() { [INFO] [stdout] 45 | | embedded_flash::setup(); [INFO] [stdout] | | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 46 | | [INFO] [stdout] 47 | | unsafe { [INFO] [stdout] 48 | | // use PLL [INFO] [stdout] 49 | | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 52 | /| while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 53 | || asm!("nop"); [INFO] [stdout] 54 | || } [INFO] [stdout] | ||_________- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 57 | | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 60 | | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 63 | | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 64 | | } [INFO] [stdout] 65 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | let f_pll_input = match input { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / pub fn config_pll(input: InputClock) { [INFO] [stdout] 73 | | const f_pll: u32 = 84; [INFO] [stdout] 74 | | const f_peripherals: u32 = 48; [INFO] [stdout] 75 | | [INFO] [stdout] 76 | /| let f_pll_input = match input { [INFO] [stdout] 77 | || InputClock::HSI => 16, [INFO] [stdout] 78 | || InputClock::HSE => 8, [INFO] [stdout] 79 | || }; [INFO] [stdout] | ||______- non-asm is unsupported in naked functions [INFO] [stdout] 80 | | let n: u32 = 336; [INFO] [stdout] | | ----------------- non-asm is unsupported in naked functions [INFO] [stdout] 81 | | let m = &f_pll_input; [INFO] [stdout] | | --------------------- non-asm is unsupported in naked functions [INFO] [stdout] 82 | | let f_vco = &f_pll_input * (&n / m); [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 83 | | let p = &f_vco / f_pll; [INFO] [stdout] | | ----------------------- non-asm is unsupported in naked functions [INFO] [stdout] 84 | | let q = &f_vco / f_peripherals; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... | [INFO] [stdout] 87 | | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | | -------------------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 88 | | } [INFO] [stdout] 89 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / pub fn pll_ready() -> bool { [INFO] [stdout] 94 | | unsafe { (*RCC).CR & RCC_CR_PLLRDY == RCC_CR_PLLRDY } [INFO] [stdout] | | ------------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / pub fn enable_gpioa() { [INFO] [stdout] 104 | | unsafe { [INFO] [stdout] 105 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOAEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 106 | | } [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / pub fn enable_gpiob() { [INFO] [stdout] 112 | | unsafe { [INFO] [stdout] 113 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOBEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | / pub fn enable_gpioc() { [INFO] [stdout] 120 | | unsafe { [INFO] [stdout] 121 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOCEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 122 | | } [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | / pub fn enable_gpiod() { [INFO] [stdout] 128 | | unsafe { [INFO] [stdout] 129 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIODEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn enable_gpioe() { [INFO] [stdout] 136 | | unsafe { [INFO] [stdout] 137 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOEEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 138 | | } [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | / pub fn enable_gpioh() { [INFO] [stdout] 144 | | unsafe { [INFO] [stdout] 145 | | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOHEN; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | / pub fn enable_pwr() { [INFO] [stdout] 157 | | unsafe { [INFO] [stdout] 158 | | (*RCC).APB1ENR |= RCC_APB1ENR_PWREN; [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #32408 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f401x` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 19 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a2996491ff9dfb05914cf91a5e06fadacb4bad007d0f7c4dc93ed92f131518b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2996491ff9dfb05914cf91a5e06fadacb4bad007d0f7c4dc93ed92f131518b8", kill_on_drop: false }` [INFO] [stdout] a2996491ff9dfb05914cf91a5e06fadacb4bad007d0f7c4dc93ed92f131518b8