[INFO] fetching crate zsh-module 0.3.0... [INFO] checking zsh-module-0.3.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate zsh-module 0.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate zsh-module 0.3.0 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zsh-module 0.3.0 [INFO] finished tweaking crates.io crate zsh-module 0.3.0 [INFO] tweaked toml for crates.io crate zsh-module 0.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 52 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.69.4 (available: v0.70.1) [INFO] [stderr] Adding itertools v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding which v4.4.2 (available: v6.0.3) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6459e1c0b619af98fb0069a05a17a75dc963276daa06c7af5d9d7d72b7fa788 [INFO] running `Command { std: "docker" "start" "-a" "b6459e1c0b619af98fb0069a05a17a75dc963276daa06c7af5d9d7d72b7fa788", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6459e1c0b619af98fb0069a05a17a75dc963276daa06c7af5d9d7d72b7fa788", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6459e1c0b619af98fb0069a05a17a75dc963276daa06c7af5d9d7d72b7fa788", kill_on_drop: false }` [INFO] [stdout] b6459e1c0b619af98fb0069a05a17a75dc963276daa06c7af5d9d7d72b7fa788 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5f338af4200ae8473d7b18e0ff8dec09fafe2f663af2ea4792a557662a11320 [INFO] running `Command { std: "docker" "start" "-a" "a5f338af4200ae8473d7b18e0ff8dec09fafe2f663af2ea4792a557662a11320", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling zsh-sys v0.1.1 [INFO] [stderr] Checking zsh-module v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `borrow::Cow`, and `c_char` [INFO] [stdout] --> src/log.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | ffi::{c_char, CStr, CString}, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Read` and `path::Path` [INFO] [stdout] --> src/zsh.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Read, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyError` [INFO] [stdout] --> src/export_module.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{log, options::Opts, to_cstr, AnyError, MaybeError, Module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `borrow::Cow`, and `c_char` [INFO] [stdout] --> src/log.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | ffi::{c_char, CStr, CString}, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Read` and `path::Path` [INFO] [stdout] --> src/zsh.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Read, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyError` [INFO] [stdout] --> src/export_module.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{log, options::Opts, to_cstr, AnyError, MaybeError, Module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Result<(), Box>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/export_module.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 54 | let mut module = get_mod(); [INFO] [stdout] | ---------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________^ [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [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] warning: field `raw` is never read [INFO] [stdout] --> src/hashtable.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashTable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | raw: zsys::HashTable, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_raw`, `get`, `remove`, `raw_get`, and `raw_remove` are never used [INFO] [stdout] --> src/hashtable.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 12 | impl HashTable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 13 | pub(crate) unsafe fn from_raw(raw: zsys::HashTable) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn get(&self, name: &str) -> zsys::HashNode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn remove(&self, name: &str) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) unsafe fn raw_get(&self, name: *const c_char) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) unsafe fn raw_remove(&self, name: *const c_char) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zsh-module` (lib) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this value of type `Result<(), Box>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/export_module.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 54 | let mut module = get_mod(); [INFO] [stdout] | ---------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________^ [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [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] warning: field `raw` is never read [INFO] [stdout] --> src/hashtable.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashTable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | raw: zsys::HashTable, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_raw`, `get`, `remove`, `raw_get`, and `raw_remove` are never used [INFO] [stdout] --> src/hashtable.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 12 | impl HashTable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 13 | pub(crate) unsafe fn from_raw(raw: zsys::HashTable) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn get(&self, name: &str) -> zsys::HashNode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn remove(&self, name: &str) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) unsafe fn raw_get(&self, name: *const c_char) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) unsafe fn raw_remove(&self, name: *const c_char) -> zsys::HashNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zsh-module` (lib test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a5f338af4200ae8473d7b18e0ff8dec09fafe2f663af2ea4792a557662a11320", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5f338af4200ae8473d7b18e0ff8dec09fafe2f663af2ea4792a557662a11320", kill_on_drop: false }` [INFO] [stdout] a5f338af4200ae8473d7b18e0ff8dec09fafe2f663af2ea4792a557662a11320