[INFO] cloning repository https://github.com/fudanchii/blinky-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/blinky-stm32f401x" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 467c5b833d48938521113d2845b00fc338d4d280 [INFO] checking fudanchii/blinky-stm32f401x/467c5b833d48938521113d2845b00fc338d4d280 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fudanchii/blinky-stm32f401x on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/fudanchii/blinky-stm32f401x [INFO] finished tweaking git repo https://github.com/fudanchii/blinky-stm32f401x [INFO] tweaked toml for git repo https://github.com/fudanchii/blinky-stm32f401x written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fudanchii/blinky-stm32f401x 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating git repository `https://github.com/fudanchii/stm32f401x` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4569baf1166bac6a2129633793e3f310af8bd836af36a584054c5375dc417cb [INFO] running `Command { std: "docker" "start" "-a" "b4569baf1166bac6a2129633793e3f310af8bd836af36a584054c5375dc417cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4569baf1166bac6a2129633793e3f310af8bd836af36a584054c5375dc417cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4569baf1166bac6a2129633793e3f310af8bd836af36a584054c5375dc417cb", kill_on_drop: false }` [INFO] [stdout] b4569baf1166bac6a2129633793e3f310af8bd836af36a584054c5375dc417cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc2923844c86cc5e132b90a79f9a0c06b0db87c3e3dcc6f9cf78dd88f20144bb [INFO] running `Command { std: "docker" "start" "-a" "dc2923844c86cc5e132b90a79f9a0c06b0db87c3e3dcc6f9cf78dd88f20144bb", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling stm32f401x v0.1.0 (https://github.com/fudanchii/stm32f401x#4d6f2403) [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { asm!("nop"); } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 12 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 22 | #[no_mangle] [INFO] [stdout] 23 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 29 | #[no_mangle] [INFO] [stdout] 30 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 73 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 74 | #[no_mangle] [INFO] [stdout] 75 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 91 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 92 | #[no_mangle] [INFO] [stdout] 93 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub unsafe extern "C" fn system_init() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | (*RCC).APB1ENR |= RCC_APB1LPENR_PWRLPEN; [INFO] [stdout] | ---------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 33 | (*PWR).CR |= PWR_CR_VOS_1; [INFO] [stdout] | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 34 | [INFO] [stdout] 35 | / while (&(*RCC).CR & RCC_CR_HSIRDY) == 0 { [INFO] [stdout] 36 | | nop(); [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 38 | [INFO] [stdout] 39 | (*PWR).CR |= (16 << 3) as u32; [INFO] [stdout] | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 40 | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 41 | [INFO] [stdout] 42 | / while (&(*RCC).CR & RCC_CR_PLLRDY) != 0 { [INFO] [stdout] 43 | | nop(); [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 45 | [INFO] [stdout] 46 | / (*RCC).PLLCFGR = 0x2000000 as u32 [INFO] [stdout] 47 | | | ((7 as u32) << 24) [INFO] [stdout] 48 | | | ((1 as u32) << 16) [INFO] [stdout] 49 | | | ((336 as u32) << 6) [INFO] [stdout] 50 | | | ((16 as u32) << 0); [INFO] [stdout] | |_____________________________- non-asm is unsupported in naked functions [INFO] [stdout] 51 | [INFO] [stdout] 52 | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | [INFO] [stdout] 54 | / while (&(*RCC).CR & RCC_CR_PLLRDY) == 0 { [INFO] [stdout] 55 | | nop(); [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 57 | [INFO] [stdout] 58 | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 59 | [INFO] [stdout] 60 | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 61 | [INFO] [stdout] 62 | / while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 63 | | nop(); [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 65 | [INFO] [stdout] 66 | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 67 | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 68 | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 69 | [INFO] [stdout] 70 | (*DBGMCU).CR |= DBGMCU_CR_DBG_SLEEP | DBGMCU_CR_DBG_STANDBY | DBGMCU_CR_DBG_STOP; [INFO] [stdout] | --------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 83 | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 84 | [INFO] [stdout] 85 | / while bss < ebss { [INFO] [stdout] 86 | | ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 87 | | bss = bss.offset(1); [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | pub unsafe extern "C" fn init_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 103 | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 104 | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 105 | [INFO] [stdout] 106 | / while data < edata { [INFO] [stdout] 107 | | ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 108 | | data = data.offset(1); [INFO] [stdout] 109 | | sidata = sidata.offset(1); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 121 | zero_bss(); [INFO] [stdout] | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 122 | init_data(); [INFO] [stdout] | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 123 | system_init(); [INFO] [stdout] | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 124 | main() [INFO] [stdout] | ------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | pub unsafe extern "C" fn default_handler() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 132 | loop {} [INFO] [stdout] | ------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0736, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0736`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f401x` (lib) due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "dc2923844c86cc5e132b90a79f9a0c06b0db87c3e3dcc6f9cf78dd88f20144bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc2923844c86cc5e132b90a79f9a0c06b0db87c3e3dcc6f9cf78dd88f20144bb", kill_on_drop: false }` [INFO] [stdout] dc2923844c86cc5e132b90a79f9a0c06b0db87c3e3dcc6f9cf78dd88f20144bb