[INFO] cloning repository https://github.com/DeluxeRaph/rustBalanceModule [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DeluxeRaph/rustBalanceModule" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeluxeRaph%2FrustBalanceModule", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeluxeRaph%2FrustBalanceModule'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 842eefe7c17b8f052bed44348e898d9fb082c94e [INFO] checking DeluxeRaph/rustBalanceModule/842eefe7c17b8f052bed44348e898d9fb082c94e against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeluxeRaph%2FrustBalanceModule" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DeluxeRaph/rustBalanceModule on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DeluxeRaph/rustBalanceModule [INFO] finished tweaking git repo https://github.com/DeluxeRaph/rustBalanceModule [INFO] tweaked toml for git repo https://github.com/DeluxeRaph/rustBalanceModule written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DeluxeRaph/rustBalanceModule already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dce7740860c83775959e27f4c1e613f947339342538aef571eafe5a9bcd67b80 [INFO] running `Command { std: "docker" "start" "-a" "dce7740860c83775959e27f4c1e613f947339342538aef571eafe5a9bcd67b80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dce7740860c83775959e27f4c1e613f947339342538aef571eafe5a9bcd67b80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dce7740860c83775959e27f4c1e613f947339342538aef571eafe5a9bcd67b80", kill_on_drop: false }` [INFO] [stdout] dce7740860c83775959e27f4c1e613f947339342538aef571eafe5a9bcd67b80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] feeb60d75afe6c0b9c84ebf0485f1f4441a4b19e9ca036dd54034e7e71782f9a [INFO] running `Command { std: "docker" "start" "-a" "feeb60d75afe6c0b9c84ebf0485f1f4441a4b19e9ca036dd54034e7e71782f9a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking num-bigint v0.4.3 [INFO] [stderr] Checking num-iter v0.1.43 [INFO] [stderr] Checking num-rational v0.4.1 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking trait-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/step5.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/step5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Eq` [INFO] [stdout] --> src/step5.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Eq; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/step5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalancesModule` is never constructed [INFO] [stdout] --> src/step1.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BalancesModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_balance`, `balance`, and `transfer` are never used [INFO] [stdout] --> src/step1.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl BalancesModule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn set_balance(&mut self, who: u32, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn balance(&self, who: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn transfer(&mut self, from: u32, to: u32, amount: u32) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Account` is never used [INFO] [stdout] --> src/step2.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Account = u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Balance` is never used [INFO] [stdout] --> src/step2.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = u32; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalancesModule` is never constructed [INFO] [stdout] --> src/step2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BalancesModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_balance`, `balance`, and `transfer` are never used [INFO] [stdout] --> src/step2.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl BalancesModule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn set_balance(&mut self, who: Account, amount: Balance) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn balance(&self, who: Account) -> Balance { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn transfer( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step3.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_vote(&self, who: AccountId, index: VoteIndex) -> bool { [INFO] [stdout] | -------------- ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step4.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_vote(&self, who: AccountId, index: VoteIndex) -> bool { [INFO] [stdout] | -------------- ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step5.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_vote(&self, who: T::AccountId, index: T::VoteIndex) -> bool { [INFO] [stdout] | ----------------- ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trait-example` (bin "trait-example") due to 4 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step3.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_vote(&self, who: AccountId, index: VoteIndex) -> bool { [INFO] [stdout] | -------------- ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step4.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_vote(&self, who: AccountId, index: VoteIndex) -> bool { [INFO] [stdout] | -------------- ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/step5.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_vote(&self, who: T::AccountId, index: T::VoteIndex) -> bool { [INFO] [stdout] | ----------------- ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | *self.votes.get(&(who, index)).unwrap_or(&false) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trait-example` (bin "trait-example" test) due to 4 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "feeb60d75afe6c0b9c84ebf0485f1f4441a4b19e9ca036dd54034e7e71782f9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "feeb60d75afe6c0b9c84ebf0485f1f4441a4b19e9ca036dd54034e7e71782f9a", kill_on_drop: false }` [INFO] [stdout] feeb60d75afe6c0b9c84ebf0485f1f4441a4b19e9ca036dd54034e7e71782f9a