[INFO] fetching crate stm32f072b-disco 0.2.1... [INFO] checking stm32f072b-disco-0.2.1 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate stm32f072b-disco 0.2.1 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate stm32f072b-disco 0.2.1 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7/source/.cargo/config [INFO] started tweaking crates.io crate stm32f072b-disco 0.2.1 [INFO] finished tweaking crates.io crate stm32f072b-disco 0.2.1 [INFO] tweaked toml for crates.io crate stm32f072b-disco 0.2.1 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded panic-ramdump v0.1.1 [INFO] [stderr] Downloaded stm32f0xx-hal v0.14.1 [INFO] [stderr] Downloaded stm32f0 v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19e81bcab093e79ea05b5c30f79839d1b511c1c39305212a08a2b6dcc0fa963b [INFO] running `Command { std: "docker" "start" "-a" "19e81bcab093e79ea05b5c30f79839d1b511c1c39305212a08a2b6dcc0fa963b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19e81bcab093e79ea05b5c30f79839d1b511c1c39305212a08a2b6dcc0fa963b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19e81bcab093e79ea05b5c30f79839d1b511c1c39305212a08a2b6dcc0fa963b", kill_on_drop: false }` [INFO] [stdout] 19e81bcab093e79ea05b5c30f79839d1b511c1c39305212a08a2b6dcc0fa963b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a06d75dd45c1f59f8a4679a6713afe3209681fbd10dd9ad616cf5f6e870e1c4 [INFO] running `Command { std: "docker" "start" "-a" "5a06d75dd45c1f59f8a4679a6713afe3209681fbd10dd9ad616cf5f6e870e1c4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling stm32f0 v0.7.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Checking cortex-m v0.7.3 [INFO] [stderr] Checking cortex-m v0.6.7 [INFO] [stderr] Checking panic-ramdump v0.1.1 [INFO] [stderr] Checking stm32f0xx-hal v0.14.1 [INFO] [stderr] Checking stm32f072b-disco v0.2.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/gpio_circly.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/watchdog.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/adc.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/serial_echo_irq.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/panic-ramdump.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/touch.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/serial_echo.rs from 2018 edition to 2021 [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/gpio_circly.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | orange.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/gpio_circly.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | red.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/gpio_circly.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | green.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/gpio_circly.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | blue.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe` trait implementation for closure [INFO] [stdout] --> examples/gpio_circly.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] 19 | // Configure clock to 8 MHz (i.e. the default) and freeze it [INFO] [stdout] 20 | let mut rcc = p.RCC.configure().sysclk(8.mhz()).freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 18 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 19 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f072b-disco` due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/watchdog.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | led.set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/watchdog.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | led.set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/watchdog.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | led.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_ToggleableOutputPin::toggle`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/watchdog.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | led.toggle(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe`, `Send` trait implementation for closure [INFO] [stdout] --> examples/watchdog.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] | in Rust 2018, this closure implements `Send` as `p` implements `Send`, but in Rust 2021, this closure will no longer implement `Send` as `p.DBGMCU` does not implement `Send` [INFO] [stdout] 20 | let mut rcc = p.RCC.configure().sysclk(8.mhz()).freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] ... [INFO] [stdout] 26 | p.DBGMCU.apb1_fz.modify(|_, w| w.dbg_iwdg_stop().set_bit()); [INFO] [stdout] | -------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.DBGMCU` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 19 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 20 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::peripheral::nvic::::enable`: Use `NVIC::unmask` [INFO] [stdout] --> examples/serial_echo_irq.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | nvic.enable(USART1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe` trait implementation for closure [INFO] [stdout] --> examples/serial_echo_irq.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] 32 | let mut rcc = p.RCC.configure().sysclk(48.mhz()).freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 31 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 32 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:94:27 [INFO] [stdout] | [INFO] [stdout] 94 | green.set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | green.set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | blue.set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | blue.set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | red.set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | red.set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_high`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | orange.set_high(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `stm32f072b_disco::_embedded_hal_digital_OutputPin::set_low`: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2. [INFO] [stdout] --> examples/touch.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 114 | orange.set_low(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe` trait implementation for closure [INFO] [stdout] --> examples/touch.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] 20 | let mut rcc = p.RCC.configure().sysclk(48.mhz()).freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 19 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 20 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe` trait implementation for closure [INFO] [stdout] --> examples/adc.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] 51 | let mut rcc = p.RCC.configure().freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 50 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 51 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/adc.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 106 | #[exception] [INFO] [stdout] | ------------ implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 107 | fn SysTick() -> ! { [INFO] [stdout] | ^ expected `!`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected type `!` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `UnwindSafe` trait implementation for closure [INFO] [stdout] --> examples/serial_echo.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | cortex_m::interrupt::free(|cs| { [INFO] [stdout] | ^^^^ in Rust 2018, this closure implements `UnwindSafe` as `p` implements `UnwindSafe`, but in Rust 2021, this closure will no longer implement `UnwindSafe` as `p.FLASH` does not implement `UnwindSafe` [INFO] [stdout] 19 | let mut rcc = p.RCC.configure().sysclk(48.mhz()).freeze(&mut p.FLASH); [INFO] [stdout] | ------- in Rust 2018, this closure captures all of `p`, but in Rust 2021, it will only capture `p.FLASH` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a dummy let to cause `p` to be fully captured [INFO] [stdout] | [INFO] [stdout] 18 ~ cortex_m::interrupt::free(|cs| { [INFO] [stdout] 19 + let _ = &p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "5a06d75dd45c1f59f8a4679a6713afe3209681fbd10dd9ad616cf5f6e870e1c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a06d75dd45c1f59f8a4679a6713afe3209681fbd10dd9ad616cf5f6e870e1c4", kill_on_drop: false }` [INFO] [stdout] 5a06d75dd45c1f59f8a4679a6713afe3209681fbd10dd9ad616cf5f6e870e1c4