[INFO] cloning repository https://github.com/GnomedDev/reclaim-memory [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GnomedDev/reclaim-memory" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGnomedDev%2Freclaim-memory", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGnomedDev%2Freclaim-memory'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e6205a0b24a932384e7d3b1402276f0e6cddd57c [INFO] checking GnomedDev/reclaim-memory/e6205a0b24a932384e7d3b1402276f0e6cddd57c 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%2FGnomedDev%2Freclaim-memory" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GnomedDev/reclaim-memory 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/GnomedDev/reclaim-memory [INFO] finished tweaking git repo https://github.com/GnomedDev/reclaim-memory [INFO] tweaked toml for git repo https://github.com/GnomedDev/reclaim-memory written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/GnomedDev/reclaim-memory 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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c37a26b1c9f2f1c336c4f3a29358b83741dfe660e3c70efefe9b9252bb6152c [INFO] running `Command { std: "docker" "start" "-a" "5c37a26b1c9f2f1c336c4f3a29358b83741dfe660e3c70efefe9b9252bb6152c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c37a26b1c9f2f1c336c4f3a29358b83741dfe660e3c70efefe9b9252bb6152c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c37a26b1c9f2f1c336c4f3a29358b83741dfe660e3c70efefe9b9252bb6152c", kill_on_drop: false }` [INFO] [stdout] 5c37a26b1c9f2f1c336c4f3a29358b83741dfe660e3c70efefe9b9252bb6152c [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 -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] f737e578e78aab0ea85c8e15944b765d081d1f7e4956beb7a00c0784ce5afca5 [INFO] running `Command { std: "docker" "start" "-a" "f737e578e78aab0ea85c8e15944b765d081d1f7e4956beb7a00c0784ce5afca5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking small-fixed-array v0.2.1 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking dummy-process v0.1.0 (/opt/rustwide/workdir/dummy-process) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> dummy-process/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> dummy-process/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking reclaim-memory v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Write as _` [INFO] [stdout] --> src/main.rs:11:44 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{Error as IOError, ErrorKind, Write as _}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write as _` [INFO] [stdout] --> src/main.rs:11:44 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{Error as IOError, ErrorKind, Write as _}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | std::process::exit(0); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 93 | [INFO] [stdout] 94 | / ignore_proc_death(|| { [INFO] [stdout] 95 | | println!("Seizing PID {pid}; Name {cmdline}"); [INFO] [stdout] 96 | | ptrace::seize(pid, ptrace::Options::empty())?; [INFO] [stdout] ... | [INFO] [stdout] 110 | | Ok(()) [INFO] [stdout] 111 | | })?; [INFO] [stdout] | |________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | std::process::exit(0); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 93 | [INFO] [stdout] 94 | / ignore_proc_death(|| { [INFO] [stdout] 95 | | println!("Seizing PID {pid}; Name {cmdline}"); [INFO] [stdout] 96 | | ptrace::seize(pid, ptrace::Options::empty())?; [INFO] [stdout] ... | [INFO] [stdout] 110 | | Ok(()) [INFO] [stdout] 111 | | })?; [INFO] [stdout] | |________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `malloc_trim_addr` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let malloc_trim_addr = get_malloc_trim_addr(pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_malloc_trim_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `malloc_trim_addr` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let malloc_trim_addr = get_malloc_trim_addr(pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_malloc_trim_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmdline` [INFO] [stdout] --> src/main.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | fn trim_process(Process { pid, cmdline }: Process) -> Result<(), IOError> { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `cmdline: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enumerate_processes` is never used [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn enumerate_processes() -> Result, IOError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmdline` [INFO] [stdout] --> src/main.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | fn trim_process(Process { pid, cmdline }: Process) -> Result<(), IOError> { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `cmdline: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enumerate_processes` is never used [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn enumerate_processes() -> Result, IOError> { [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/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | let cmdline = FixedString::from_string_trunc(cmdline); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | [INFO] [stdout] 23 | Ok(Self { pid, cmdline }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | let cmdline = FixedString::from_string_trunc(cmdline); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | [INFO] [stdout] 23 | Ok(Self { pid, cmdline }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 55 | let gdb = std::process::Command::new("gdb") [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 74 | Err(IOError::new( [INFO] [stdout] | _________^ [INFO] [stdout] 75 | | ErrorKind::Other, [INFO] [stdout] 76 | | "gdb did not provide malloc_trim addr", [INFO] [stdout] 77 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 55 | let gdb = std::process::Command::new("gdb") [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 74 | Err(IOError::new( [INFO] [stdout] | _________^ [INFO] [stdout] 75 | | ErrorKind::Other, [INFO] [stdout] 76 | | "gdb did not provide malloc_trim addr", [INFO] [stdout] 77 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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 2 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `reclaim-memory` (bin "reclaim-memory") due to 3 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `reclaim-memory` (bin "reclaim-memory" test) due to 3 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f737e578e78aab0ea85c8e15944b765d081d1f7e4956beb7a00c0784ce5afca5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f737e578e78aab0ea85c8e15944b765d081d1f7e4956beb7a00c0784ce5afca5", kill_on_drop: false }` [INFO] [stdout] f737e578e78aab0ea85c8e15944b765d081d1f7e4956beb7a00c0784ce5afca5