[INFO] fetching crate atsam4-hal 0.3.1... [INFO] checking atsam4-hal-0.3.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate atsam4-hal 0.3.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate atsam4-hal 0.3.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config [INFO] started tweaking crates.io crate atsam4-hal 0.3.1 [INFO] finished tweaking crates.io crate atsam4-hal 0.3.1 [INFO] tweaked toml for crates.io crate atsam4-hal 0.3.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 60 packages to latest compatible versions [INFO] [stderr] Adding bare-metal v0.2.5 (available: v1.0.0) [INFO] [stderr] Adding bitfield v0.13.2 (available: v0.17.0) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding nb v0.1.3 (available: v1.1.0) [INFO] [stderr] Adding rustc_version v0.2.3 (available: v0.4.1) [INFO] [stderr] Adding semver v0.9.0 (available: v1.0.23) [INFO] [stderr] Adding semver-parser v0.7.0 (available: v0.10.2) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding usb-device v0.2.9 (available: v0.3.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f54bd896bcda836386b11c5bb4859b80fe519165b88737747c7a72dcd8cc37e [INFO] running `Command { std: "docker" "start" "-a" "3f54bd896bcda836386b11c5bb4859b80fe519165b88737747c7a72dcd8cc37e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f54bd896bcda836386b11c5bb4859b80fe519165b88737747c7a72dcd8cc37e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f54bd896bcda836386b11c5bb4859b80fe519165b88737747c7a72dcd8cc37e", kill_on_drop: false }` [INFO] [stdout] 3f54bd896bcda836386b11c5bb4859b80fe519165b88737747c7a72dcd8cc37e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 539d870decfe60f0a683324c9a2860a46a773f4fdcf3e7fb5c0565aecd1b0f42 [INFO] running `Command { std: "docker" "start" "-a" "539d870decfe60f0a683324c9a2860a46a773f4fdcf3e7fb5c0565aecd1b0f42", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (47 fixes) [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling cortex-m-rt v0.7.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Checking critical-section v1.1.3 [INFO] [stderr] Compiling atsam4e16e-pac v0.3.1 [INFO] [stderr] Compiling atsam4-hal v0.3.1 (/tmp/fixit) [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking embedded-storage v0.3.1 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking volatile-register v0.2.2 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking embedded-dma v0.2.0 [INFO] [stderr] Checking embedded-hal v0.2.7 [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] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling defmt-parser v0.3.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling defmt-macros v0.3.9 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.0 [INFO] [stderr] Checking defmt v0.3.8 [INFO] [stderr] Checking fugit v0.3.7 [INFO] [stderr] Checking fugit-timer v0.1.3 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `atsam4_hal` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/clock.rs [INFO] [stderr] * src/gpio.rs [INFO] [stderr] * src/static_memory_controller.rs [INFO] [stderr] * src/timer.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/clock.rs:553:59 [INFO] [stderr] | [INFO] [stderr] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr_2021,)+ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:119:48 [INFO] [stderr] | [INFO] [stderr] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr_2021, $extfnA:ident),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:121:48 [INFO] [stderr] | [INFO] [stderr] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr_2021, $extfnB:ident, $sysioB:ident),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:123:48 [INFO] [stderr] | [INFO] [stderr] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr_2021, $extfnC:ident),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:125:48 [INFO] [stderr] | [INFO] [stderr] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr_2021),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:127:48 [INFO] [stderr] | [INFO] [stderr] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr_2021),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:253:9 [INFO] [stderr] | [INFO] [stderr] 253 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:382:9 [INFO] [stderr] | [INFO] [stderr] 382 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:537:9 [INFO] [stderr] | [INFO] [stderr] 537 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stdout] --> src/static_memory_controller.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stdout] | ^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stdout] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/clock.rs:553:62 [INFO] [stdout] | [INFO] [stdout] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr,)+ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr_2021,)+ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/efc.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 118 | | /// RAM Function needed for certain EFC accesses (unique id and signature section) [INFO] [stdout] 119 | | /// It's currently not possible to do this with pure rust as there can be no flash accesses [INFO] [stdout] 120 | | /// while this function is executing. [INFO] [stdout] ... | [INFO] [stdout] 138 | | fn efc_perform_fcr(efc: *const u32, fcr: u32) -> u32; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:119:57 [INFO] [stdout] | [INFO] [stdout] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr, $extfnA:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr_2021, $extfnA:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/static_memory_controller.rs:68:9 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:121:57 [INFO] [stdout] | [INFO] [stdout] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr, $extfnB:ident, $sysioB:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr_2021, $extfnB:ident, $sysioB:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:123:57 [INFO] [stdout] | [INFO] [stdout] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr, $extfnC:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr_2021, $extfnC:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 68 | $cs:expr_2021 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:125:57 [INFO] [stdout] | [INFO] [stdout] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr_2021),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:127:57 [INFO] [stdout] | [INFO] [stdout] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr_2021),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 253 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:382:12 [INFO] [stdout] | [INFO] [stdout] 382 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 382 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:537:12 [INFO] [stdout] | [INFO] [stdout] 537 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 537 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/static_memory_controller.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | $cs:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 68 | $cs:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/timer.rs:330:51 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/timer.rs:330:71 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/static_memory_controller.rs:2:12 [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stderr] | ^^^^^^^^^^---------- [INFO] [stderr] | | [INFO] [stderr] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stderr] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/timer.rs:330:51 [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/timer.rs:330:71 [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stderr] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `atsam4_hal` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/clock.rs [INFO] [stderr] * src/gpio.rs [INFO] [stderr] * src/static_memory_controller.rs [INFO] [stderr] * src/timer.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/clock.rs:553:59 [INFO] [stderr] | [INFO] [stderr] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr_2021,)+ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:119:48 [INFO] [stderr] | [INFO] [stderr] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr_2021, $extfnA:ident),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stdout] --> src/static_memory_controller.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stdout] | ^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stdout] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/clock.rs:553:62 [INFO] [stdout] | [INFO] [stdout] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr,)+ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 553 | $($PeripheralType:ident, $peripheral_ident:ident, $i:expr_2021,)+ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/efc.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 118 | | /// RAM Function needed for certain EFC accesses (unique id and signature section) [INFO] [stdout] 119 | | /// It's currently not possible to do this with pure rust as there can be no flash accesses [INFO] [stdout] 120 | | /// while this function is executing. [INFO] [stdout] ... | [INFO] [stdout] 138 | | fn efc_perform_fcr(efc: *const u32, fcr: u32) -> u32; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:119:57 [INFO] [stdout] | [INFO] [stdout] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr, $extfnA:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 119 | $($PinTypeA:ident: ($pin_identA:ident, $pin_noA:expr_2021, $extfnA:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/gpio.rs:121:48 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:121:57 [INFO] [stdout] | [INFO] [stdout] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr, $extfnB:ident, $sysioB:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr_2021, $extfnB:ident, $sysioB:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:123:57 [INFO] [stdout] | [INFO] [stdout] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr, $extfnC:ident),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr_2021, $extfnC:ident),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 121 | $($PinTypeB:ident: ($pin_identB:ident, $pin_noB:expr_2021, $extfnB:ident, $sysioB:ident),)* [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:125:57 [INFO] [stdout] | [INFO] [stdout] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr_2021),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:127:57 [INFO] [stdout] | [INFO] [stdout] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr),)* [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr_2021),)* [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 253 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:382:12 [INFO] [stdout] | [INFO] [stdout] 382 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 382 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/gpio.rs:537:12 [INFO] [stdout] | [INFO] [stdout] 537 | $i:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 537 | $i:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/static_memory_controller.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | $cs:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 68 | $cs:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:123:48 [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/timer.rs:330:51 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 123 | $($PinTypeC:ident: ($pin_identC:ident, $pin_noC:expr_2021, $extfnC:ident),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:125:48 [INFO] [stderr] | [INFO] [stderr] 125 | $($PinTypeD:ident: ($pin_identD:ident, $pin_noD:expr_2021),)* [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:127:48 [INFO] [stderr] | [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/timer.rs:330:71 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 127 | $($PinTypeE:ident: ($pin_identE:ident, $pin_noE:expr_2021),)* [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:253:9 [INFO] [stderr] | [INFO] [stderr] 253 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:382:9 [INFO] [stderr] | [INFO] [stderr] 382 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/gpio.rs:537:9 [INFO] [stderr] | [INFO] [stderr] 537 | $i:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/static_memory_controller.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | $cs:expr_2021 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stderr] --> src/static_memory_controller.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stderr] | ^^^^^^^^^^---------- [INFO] [stderr] | | [INFO] [stderr] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stderr] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/timer.rs:330:51 [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/timer.rs:330:71 [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stderr] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.18s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling atsam4-hal v0.3.1 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/efc.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / extern "C" { [INFO] [stdout] 118 | | /// RAM Function needed for certain EFC accesses (unique id and signature section) [INFO] [stdout] 119 | | /// It's currently not possible to do this with pure rust as there can be no flash accesses [INFO] [stdout] 120 | | /// while this function is executing. [INFO] [stdout] ... | [INFO] [stdout] 138 | | fn efc_perform_fcr(efc: *const u32, fcr: u32) -> u32; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/efc.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / extern "C" { [INFO] [stdout] 118 | | /// RAM Function needed for certain EFC accesses (unique id and signature section) [INFO] [stdout] 119 | | /// It's currently not possible to do this with pure rust as there can be no flash accesses [INFO] [stdout] 120 | | /// while this function is executing. [INFO] [stdout] ... | [INFO] [stdout] 138 | | fn efc_perform_fcr(efc: *const u32, fcr: u32) -> u32; [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stdout] --> src/static_memory_controller.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stdout] | ^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stdout] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `atsam4_c` [INFO] [stdout] --> src/static_memory_controller.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![cfg(any(feature = "atsam4_c", feature = "atsam4e_e"))] [INFO] [stdout] | ^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"atsam4e_c"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `atsam4e`, `atsam4e16c`, `atsam4e16c-pac`, `atsam4e16e`, `atsam4e16e-pac`, `atsam4e8c`, `atsam4e8c-pac`, `atsam4e8e`, `atsam4e8e-pac`, `atsam4e_c`, `atsam4e_e`, `atsam4n`, `atsam4n16b`, `atsam4n16b-pac`, `atsam4n16c`, `atsam4n16c-pac`, `atsam4n8a`, `atsam4n8a-pac`, `atsam4n8b`, `atsam4n8b-pac`, `atsam4n8c`, `atsam4n8c-pac`, `atsam4n_a`, `atsam4n_b`, `atsam4n_c`, `atsam4s`, `atsam4s2a`, `atsam4s2a-pac`, `atsam4s2b`, `atsam4s2b-pac`, `atsam4s2c`, `atsam4s2c-pac`, `atsam4s4a`, `atsam4s4a-pac`, and `atsam4s4b` and 29 more [INFO] [stdout] = help: consider adding `atsam4_c` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/timer.rs:330:51 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/timer.rs:330:71 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/timer.rs:330:51 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (addr_of_mut!(DWT_OVERFLOWS), &mut OLD_DWT) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/timer.rs:330:71 [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, &mut OLD_DWT) }; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 330 | let (overflows, last_cnt) = unsafe { (&mut DWT_OVERFLOWS, addr_of_mut!(OLD_DWT)) }; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `atsam4-hal` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `atsam4-hal` (lib) due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "539d870decfe60f0a683324c9a2860a46a773f4fdcf3e7fb5c0565aecd1b0f42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "539d870decfe60f0a683324c9a2860a46a773f4fdcf3e7fb5c0565aecd1b0f42", kill_on_drop: false }` [INFO] [stdout] 539d870decfe60f0a683324c9a2860a46a773f4fdcf3e7fb5c0565aecd1b0f42