[INFO] fetching crate arith_traits 0.3.2... [INFO] checking arith_traits-0.3.2 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate arith_traits 0.3.2 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate arith_traits 0.3.2 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] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate arith_traits 0.3.2 [INFO] finished tweaking crates.io crate arith_traits 0.3.2 [INFO] tweaked toml for crates.io crate arith_traits 0.3.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 35 packages to latest compatible versions [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 775ea3a08a3b042c1cbf18c929d3ba7e81f02d3742aca2631d74b6d6d4654ec7 [INFO] running `Command { std: "docker" "start" "-a" "775ea3a08a3b042c1cbf18c929d3ba7e81f02d3742aca2631d74b6d6d4654ec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "775ea3a08a3b042c1cbf18c929d3ba7e81f02d3742aca2631d74b6d6d4654ec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775ea3a08a3b042c1cbf18c929d3ba7e81f02d3742aca2631d74b6d6d4654ec7", kill_on_drop: false }` [INFO] [stdout] 775ea3a08a3b042c1cbf18c929d3ba7e81f02d3742aca2631d74b6d6d4654ec7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] cfab46122578e58632cdcb0eee64ca9b1e63b7d0634c368e74a92d7228af9299 [INFO] running `Command { std: "docker" "start" "-a" "cfab46122578e58632cdcb0eee64ca9b1e63b7d0634c368e74a92d7228af9299", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking libc v0.2.158 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling assert2-macros v0.3.15 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking assert2 v0.3.15 [INFO] [stderr] Checking arith_traits v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `i_panicking_ops::IPanickingOps` [INFO] [stdout] --> src/traits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | i_panicking_ops::IPanickingOps, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `i_panicking_ops::IPanickingOps` [INFO] [stdout] --> src/traits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | i_panicking_ops::IPanickingOps, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/traits/i_panicking_ops.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait IPanickingOps [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn panicking_abs(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | fn panicking_add(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | fn panicking_div(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 18 | fn panicking_div_euclid(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | fn panicking_mul(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | fn panicking_neg(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | fn panicking_pow(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | fn panicking_rem(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | fn panicking_rem_euclid(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | fn panicking_shl(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | fn panicking_shr(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | fn panicking_sub(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/traits/i_panicking_ops.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait IPanickingOps [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn panicking_abs(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | fn panicking_add(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | fn panicking_div(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 18 | fn panicking_div_euclid(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | fn panicking_mul(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | fn panicking_neg(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | fn panicking_pow(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | fn panicking_rem(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | fn panicking_rem_euclid(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | fn panicking_shl(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | fn panicking_shr(self, rhs: u32) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | fn panicking_sub(self, rhs: T) -> Self::Output; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/traits/i_checked_ops/unit_tests.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 17 | fn add_one(n: T) -> ::Output [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | n.checked_add(T::one()) [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/traits/i_overflowing_ops/unit_tests.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 8 | fn add_one(n: T) -> ::Output [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | n.overflowing_add(T::one()) [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/traits/i_saturating_ops/unit_tests.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 8 | fn sub_one(n: T) -> ::Output [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | n.saturating_sub(T::one()) [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/traits/i_wrapping_ops/unit_tests.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 8 | fn sub_one(n: T) -> ::SubOutput [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | n.wrapping_sub(T::one()) [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 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `arith_traits` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cfab46122578e58632cdcb0eee64ca9b1e63b7d0634c368e74a92d7228af9299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfab46122578e58632cdcb0eee64ca9b1e63b7d0634c368e74a92d7228af9299", kill_on_drop: false }` [INFO] [stdout] cfab46122578e58632cdcb0eee64ca9b1e63b7d0634c368e74a92d7228af9299