[INFO] fetching crate sway-ast 0.63.5... [INFO] checking sway-ast-0.63.5 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate sway-ast 0.63.5 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate sway-ast 0.63.5 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] started tweaking crates.io crate sway-ast 0.63.5 [INFO] finished tweaking crates.io crate sway-ast 0.63.5 [INFO] tweaked toml for crates.io crate sway-ast 0.63.5 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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 144 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bech32 v0.9.1 (available: v0.11.0) [INFO] [stderr] Adding coins-bip32 v0.8.7 (available: v0.12.0) [INFO] [stderr] Adding coins-bip39 v0.8.7 (available: v0.12.0) [INFO] [stderr] Adding coins-core v0.8.7 (available: v0.12.0) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding embedded-io v0.4.0 (available: v0.6.1) [INFO] [stderr] Adding fuel-asm v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-crypto v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-derive v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-merkle v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-storage v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-tx v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding fuel-types v0.56.0 (available: v0.57.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding hash32 v0.2.1 (available: v0.3.1) [INFO] [stderr] Adding hashbrown v0.13.2 (available: v0.14.5) [INFO] [stderr] Adding heapless v0.7.17 (available: v0.8.0) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding radium v0.7.0 (available: v1.1.0) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding secp256k1 v0.26.0 (available: v0.29.1) [INFO] [stderr] Adding secp256k1-sys v0.8.1 (available: v0.10.1) [INFO] [stderr] Adding strum v0.24.1 (available: v0.26.3) [INFO] [stderr] Adding strum_macros v0.24.3 (available: v0.26.4) [INFO] [stderr] Adding sway-error v0.63.6 (available: v0.64.0) [INFO] [stderr] Adding sway-types v0.63.6 (available: v0.64.0) [INFO] [stderr] Adding sway-utils v0.63.6 (available: v0.64.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding wyz v0.5.1 (available: v0.6.1) [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] [stderr] Blocking waiting for file lock on package cache [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] f49d110375dcf5a842e32581278c662619e7804f4df07c320b3359c96c0cfa14 [INFO] running `Command { std: "docker" "start" "-a" "f49d110375dcf5a842e32581278c662619e7804f4df07c320b3359c96c0cfa14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f49d110375dcf5a842e32581278c662619e7804f4df07c320b3359c96c0cfa14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f49d110375dcf5a842e32581278c662619e7804f4df07c320b3359c96c0cfa14", kill_on_drop: false }` [INFO] [stdout] f49d110375dcf5a842e32581278c662619e7804f4df07c320b3359c96c0cfa14 [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] eeef24ad4590f2704dc189a4bc79a1c60811b6de08b764a30da189f198d6de5b [INFO] running `Command { std: "docker" "start" "-a" "eeef24ad4590f2704dc189a4bc79a1c60811b6de08b764a30da189f198d6de5b", 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] Checking const-oid v0.9.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking fuel-storage v0.56.0 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking bytecount v0.6.8 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking in_definite v1.0.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling fuel-derive v0.56.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling extension-trait v1.0.2 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking fuel-merkle v0.56.0 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking secp256k1 v0.26.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking coins-core v0.8.7 [INFO] [stderr] Checking fuel-types v0.56.0 [INFO] [stderr] Checking sway-utils v0.63.6 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking coins-bip32 v0.8.7 [INFO] [stderr] Checking fuel-asm v0.56.0 [INFO] [stderr] Checking coins-bip39 v0.8.7 [INFO] [stderr] Checking postcard v1.0.10 [INFO] [stderr] Checking fuel-crypto v0.56.0 [INFO] [stderr] Checking fuel-tx v0.56.0 [INFO] [stderr] Checking sway-types v0.63.6 [INFO] [stderr] Checking sway-error v0.63.6 [INFO] [stderr] Checking sway-ast v0.63.5 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sway_ast` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/expr/op_code.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/expr/op_code.rs:70:6 [INFO] [stderr] | [INFO] [stderr] 70 | ($start:expr_2021, ()) => { $start }; [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/expr/op_code.rs:71:6 [INFO] [stderr] | [INFO] [stderr] 71 | ($start:expr_2021, ($arg_name: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/expr/op_code.rs:74:6 [INFO] [stderr] | [INFO] [stderr] 74 | ($start:expr_2021, ($arg_name_head:ident, $($arg_name: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: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/expr/op_code.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | ($start:expr, ()) => { $start }; [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] 70 | ($start:expr_2021, ()) => { $start }; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/expr/op_code.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | ($start:expr, ($arg_name: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] 71 | ($start:expr_2021, ($arg_name:ident,)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/expr/op_code.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | ($start:expr, ($arg_name_head:ident, $($arg_name: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] 74 | ($start:expr_2021, ($arg_name_head:ident, $($arg_name:ident,)*)) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/attribute.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if let Some(value) = &self.value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/attribute.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 63 ~ match &self.value { Some(value) => { [INFO] [stdout] 64 | Span::join(self.name.span(), &value.span()) [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | self.name.span() [INFO] [stdout] 67 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/expr/mod.rs:461:12 [INFO] [stdout] | [INFO] [stdout] 461 | if let Expr::Deref { star_token, expr } = self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/expr/mod.rs:463:9 [INFO] [stdout] | [INFO] [stdout] 463 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 461 ~ match self { Expr::Deref { star_token, expr } => { [INFO] [stdout] 462 | Ok(Assignable::Deref { star_token, expr }) [INFO] [stdout] 463 ~ } _ => { [INFO] [stdout] 464 | Ok(Assignable::ElementAccess(self.try_into_element_access()?)) [INFO] [stdout] 465 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/item/item_storage.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | if let Some(namespace) = &self.namespace { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 26 | Span::join(self.name.span(), &namespace.span()) [INFO] [stdout] 27 | } else if let Some(field) = &self.field { [INFO] [stdout] | ---------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/item/item_storage.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | } else if let Some(field) = &self.field { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/item/item_storage.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 25 ~ match &self.namespace { Some(namespace) => { [INFO] [stdout] 26 | Span::join(self.name.span(), &namespace.span()) [INFO] [stdout] 27 ~ } _ => { match &self.field { Some(field) => { [INFO] [stdout] 28 | Span::join(self.name.span(), &field.span()) [INFO] [stdout] 29 ~ } _ => { [INFO] [stdout] 30 | self.name.span() [INFO] [stdout] 31 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/module.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | if let ItemKind::Submodule(submod) = &i.value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/module.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 13 ~ match &i.value { ItemKind::Submodule(submod) => { [INFO] [stdout] 14 | Some(submod) [INFO] [stdout] 15 ~ } _ => { [INFO] [stdout] 16 | None [INFO] [stdout] 17 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/module.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let end = if let Some(item) = self.items.last() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/module.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 25 ~ let end = match self.items.last() { Some(item) => { [INFO] [stdout] 26 | item.span() [INFO] [stdout] 27 ~ } _ => { [INFO] [stdout] 28 | self.semicolon_token.span() [INFO] [stdout] 29 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/expr/op_code.rs:70:6 [INFO] [stdout] | [INFO] [stdout] 70 | ($start:expr_2021, ()) => { $start }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/expr/op_code.rs:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | ($start:expr_2021, ($arg_name:ident,)) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/expr/op_code.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | ($start:expr_2021, ($arg_name_head:ident, $($arg_name:ident,)*)) => {{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::module::Module`, `crate::module::ModuleKind` [INFO] [stdout] --> src/lib.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | module::{Module, ModuleKind}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ no `ModuleKind` in `module` [INFO] [stdout] | | [INFO] [stdout] | no `Module` in `module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ItemKind` [INFO] [stdout] --> src/priv_prelude.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | FnSignature, Item, ItemKind, TraitType, TypeField, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sway-ast` (lib) due to 5 previous errors; 1 warning emitted [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" "eeef24ad4590f2704dc189a4bc79a1c60811b6de08b764a30da189f198d6de5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eeef24ad4590f2704dc189a4bc79a1c60811b6de08b764a30da189f198d6de5b", kill_on_drop: false }` [INFO] [stdout] eeef24ad4590f2704dc189a4bc79a1c60811b6de08b764a30da189f198d6de5b