[INFO] cloning repository https://github.com/CliffM1967/label [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CliffM1967/label" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCliffM1967%2Flabel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCliffM1967%2Flabel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 458e8234442085228405ec85b5e3d6af54605427 [INFO] checking CliffM1967/label/458e8234442085228405ec85b5e3d6af54605427 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCliffM1967%2Flabel" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CliffM1967/label on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CliffM1967/label [INFO] finished tweaking git repo https://github.com/CliffM1967/label [INFO] tweaked toml for git repo https://github.com/CliffM1967/label written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CliffM1967/label 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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72cec2a27fae6c50f131fd1d3b0f577928249458111917a6d7b196af0b487d7b [INFO] running `Command { std: "docker" "start" "-a" "72cec2a27fae6c50f131fd1d3b0f577928249458111917a6d7b196af0b487d7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72cec2a27fae6c50f131fd1d3b0f577928249458111917a6d7b196af0b487d7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72cec2a27fae6c50f131fd1d3b0f577928249458111917a6d7b196af0b487d7b", kill_on_drop: false }` [INFO] [stdout] 72cec2a27fae6c50f131fd1d3b0f577928249458111917a6d7b196af0b487d7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c122eedee5567055cc12cb0a164a7b909ab9951114a7bc3ee65d4652dbf697c7 [INFO] running `Command { std: "docker" "start" "-a" "c122eedee5567055cc12cb0a164a7b909ab9951114a7bc3ee65d4652dbf697c7", kill_on_drop: false }` [INFO] [stderr] Checking label v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/lib.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{stderr, stdout, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/lib.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{stderr, stdout, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut x = "foobar".to_string(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `se` [INFO] [stdout] --> src/lib.rs:95:49 [INFO] [stdout] | [INFO] [stdout] 95 | StackEntry::Environment(se) => return false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_se` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `se` [INFO] [stdout] --> src/lib.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | StackEntry::Environment(se) => return false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_se` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut new_env = Self::new_shared(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/lib.rs:324:37 [INFO] [stdout] | [INFO] [stdout] 324 | fn stack_pop_env(stack: &mut Stack, message: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | let mut env = Environment::new_shared(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/lib.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | let mut history = Vec::::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | let mut history = Vec::::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Environment` is more private than the item `StackEntry::Environment::0` [INFO] [stdout] --> src/lib.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | Environment(SharedEnvironment), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ field `StackEntry::Environment::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Environment` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `shared_equals2` and `contains` are never used [INFO] [stdout] --> src/lib.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl Environment { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn shared_equals2(e1: SharedEnvironment, e2: SharedEnvironment) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn contains(&self, key: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_to_result` is never used [INFO] [stdout] --> src/lib.rs:275:4 [INFO] [stdout] | [INFO] [stdout] 275 | fn option_to_result(option: Option, message: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_env` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 282 | impl StackEntry { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 297 | fn get_env(&self) -> SharedEnvironment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop` is never used [INFO] [stdout] --> src/lib.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn stack_pop(stack: &mut Stack) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop_env` is never used [INFO] [stdout] --> src/lib.rs:324:4 [INFO] [stdout] | [INFO] [stdout] 324 | fn stack_pop_env(stack: &mut Stack, message: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/lib.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn run(program: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut x = "foobar".to_string(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `se` [INFO] [stdout] --> src/lib.rs:95:49 [INFO] [stdout] | [INFO] [stdout] 95 | StackEntry::Environment(se) => return false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_se` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `se` [INFO] [stdout] --> src/lib.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | StackEntry::Environment(se) => return false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_se` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut new_env = Self::new_shared(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/lib.rs:324:37 [INFO] [stdout] | [INFO] [stdout] 324 | fn stack_pop_env(stack: &mut Stack, message: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | let mut env = Environment::new_shared(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/lib.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | let mut history = Vec::::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | let mut history = Vec::::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Vec>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:962:16 [INFO] [stdout] | [INFO] [stdout] 956 | let r = run_with_prelude(""); [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 962 | Ok(r) => assert_eq!(r.len(), 0), [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: type `Environment` is more private than the item `StackEntry::Environment::0` [INFO] [stdout] --> src/lib.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | Environment(SharedEnvironment), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ field `StackEntry::Environment::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Environment` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `shared_equals2` and `contains` are never used [INFO] [stdout] --> src/lib.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl Environment { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn shared_equals2(e1: SharedEnvironment, e2: SharedEnvironment) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn contains(&self, key: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_to_result` is never used [INFO] [stdout] --> src/lib.rs:275:4 [INFO] [stdout] | [INFO] [stdout] 275 | fn option_to_result(option: Option, message: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_env` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 282 | impl StackEntry { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 297 | fn get_env(&self) -> SharedEnvironment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop` is never used [INFO] [stdout] --> src/lib.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn stack_pop(stack: &mut Stack) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop_env` is never used [INFO] [stdout] --> src/lib.rs:324:4 [INFO] [stdout] | [INFO] [stdout] 324 | fn stack_pop_env(stack: &mut Stack, message: &str) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `label` (lib test) due to 2 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c122eedee5567055cc12cb0a164a7b909ab9951114a7bc3ee65d4652dbf697c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c122eedee5567055cc12cb0a164a7b909ab9951114a7bc3ee65d4652dbf697c7", kill_on_drop: false }` [INFO] [stdout] c122eedee5567055cc12cb0a164a7b909ab9951114a7bc3ee65d4652dbf697c7