[INFO] fetching crate shellexpand-fork 2.1.2... [INFO] building shellexpand-fork-2.1.2 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate shellexpand-fork 2.1.2 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate shellexpand-fork 2.1.2 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate shellexpand-fork 2.1.2 [INFO] finished tweaking crates.io crate shellexpand-fork 2.1.2 [INFO] tweaked toml for crates.io crate shellexpand-fork 2.1.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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 18 packages to latest compatible versions [INFO] [stderr] Adding dirs v4.0.0 (available: v5.0.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 530bfdeac8e9b279847a15eb2c5e4b56c856f689188a4308c5f273c93b3b669c [INFO] running `Command { std: "docker" "start" "-a" "530bfdeac8e9b279847a15eb2c5e4b56c856f689188a4308c5f273c93b3b669c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "530bfdeac8e9b279847a15eb2c5e4b56c856f689188a4308c5f273c93b3b669c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "530bfdeac8e9b279847a15eb2c5e4b56c856f689188a4308c5f273c93b3b669c", kill_on_drop: false }` [INFO] [stdout] 530bfdeac8e9b279847a15eb2c5e4b56c856f689188a4308c5f273c93b3b669c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8857a75b1aaeab58770d7ced5f34cb7d9b38827f3f8fa1ff3919fa31f92b6772 [INFO] running `Command { std: "docker" "start" "-a" "8857a75b1aaeab58770d7ced5f34cb7d9b38827f3f8fa1ff3919fa31f92b6772", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling shellexpand-fork v2.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/lib.rs:472:31 [INFO] [stdout] | [INFO] [stdout] 472 | match context(var_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | up until Edition 2021 `#3` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 473 | // if we have the variable set to some value [INFO] [stdout] 474 | Ok(Some(var_value)) => { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `var_value` calls a custom destructor [INFO] [stdout] | `var_value` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 482 | let value = match (not_found_or_empty, default_value) { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 501 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] ... [INFO] [stdout] 516 | Some(var_value) => { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | `#2` will be dropped later as of Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/lib.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | / match $e { [INFO] [stdout] 340 | | Ok(s) => s, [INFO] [stdout] 341 | | Err(e) => { [INFO] [stdout] 342 | | return Err(LookupError { [INFO] [stdout] ... | [INFO] [stdout] 347 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | up until Edition 2021 `#3` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 474 | Ok(Some(var_value)) => { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `var_value` calls a custom destructor [INFO] [stdout] | `var_value` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 482 | let value = match (not_found_or_empty, default_value) { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 515 | match try_lookup!(var_name, context(var_name)) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#4` [INFO] [stdout] | | up until Edition 2021 `#4` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | in this macro invocation [INFO] [stdout] 516 | Some(var_value) => { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | `#2` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 527 | } else { [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this error originates in the macro `try_lookup` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `shellexpand-fork` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8857a75b1aaeab58770d7ced5f34cb7d9b38827f3f8fa1ff3919fa31f92b6772", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8857a75b1aaeab58770d7ced5f34cb7d9b38827f3f8fa1ff3919fa31f92b6772", kill_on_drop: false }` [INFO] [stdout] 8857a75b1aaeab58770d7ced5f34cb7d9b38827f3f8fa1ff3919fa31f92b6772