[INFO] fetching crate hes_state_machine 0.1.0... [INFO] checking hes_state_machine-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate hes_state_machine 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate hes_state_machine 0.1.0 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 crates.io crate hes_state_machine 0.1.0 [INFO] finished tweaking crates.io crate hes_state_machine 0.1.0 [INFO] tweaked toml for crates.io crate hes_state_machine 0.1.0 written to /workspace/builds/worker-5-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] 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 63f09f76e4af194b7e39db37294beaaabf32d8c2227468f6277f017df95c4199 [INFO] running `Command { std: "docker" "start" "-a" "63f09f76e4af194b7e39db37294beaaabf32d8c2227468f6277f017df95c4199", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63f09f76e4af194b7e39db37294beaaabf32d8c2227468f6277f017df95c4199", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63f09f76e4af194b7e39db37294beaaabf32d8c2227468f6277f017df95c4199", kill_on_drop: false }` [INFO] [stdout] 63f09f76e4af194b7e39db37294beaaabf32d8c2227468f6277f017df95c4199 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] b7a572cfaf5158f8061c9646798b5a6b987c73605aa2887adefce1a383783420 [INFO] running `Command { std: "docker" "start" "-a" "b7a572cfaf5158f8061c9646798b5a6b987c73605aa2887adefce1a383783420", kill_on_drop: false }` [INFO] [stderr] Checking hes_state_machine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::state_machine::tests::LockInput::CorrectKey` [INFO] [stdout] --> src/state_machine.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::state_machine::tests::LockInput::CorrectKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateMachine` is never constructed [INFO] [stdout] --> src/state_machine.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct StateMachine { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `current_state`, and `handle_input` are never used [INFO] [stdout] --> src/state_machine.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl StateMachine { [INFO] [stdout] | ------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 12 | fn new(initial_state: StateId, states: impl IntoIterator>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn current_state(&self) -> StateId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn handle_input(&mut self, input: &Input) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/state.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `id`, and `handle_input` are never used [INFO] [stdout] --> src/state.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl State { [INFO] [stdout] | ------------------------------------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new(id: StateId, handler: Box>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn id(&self) -> StateId { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn handle_input(&mut self, input: &Input) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_input` is never used [INFO] [stdout] --> src/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Handler { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 4 | fn handle_input(&mut self, input: &Input) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/handler.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | / impl StatelessHandler [INFO] [stdout] 15 | | where HandlingFunction: Fn(&Input) -> Option { [INFO] [stdout] | |_________________________________________________________- associated function in this implementation [INFO] [stdout] 16 | pub fn new(handling_function: HandlingFunction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/handler.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | / impl StatefulHandler [INFO] [stdout] 38 | | where HandlingFunction: Fn(&mut Context, &Input) -> Option { [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 39 | pub fn new(context: Context, handling_function: HandlingFunction) -> Self { [INFO] [stdout] | ^^^ [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/state_machine.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(initial_state: StateId, states: impl IntoIterator>) -> Self { [INFO] [stdout] | ----------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Self { [INFO] [stdout] 14 | states: states.into_iter().map(|state| (state.id(), state)).collect(), [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: aborting due to 1 previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hes_state_machine` (lib) due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/state_machine.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | |input: &LockInput| -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` 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/state_machine.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(initial_state: StateId, states: impl IntoIterator>) -> Self { [INFO] [stdout] | ----------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Self { [INFO] [stdout] 14 | states: states.into_iter().map(|state| (state.id(), state)).collect(), [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: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hes_state_machine` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b7a572cfaf5158f8061c9646798b5a6b987c73605aa2887adefce1a383783420", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7a572cfaf5158f8061c9646798b5a6b987c73605aa2887adefce1a383783420", kill_on_drop: false }` [INFO] [stdout] b7a572cfaf5158f8061c9646798b5a6b987c73605aa2887adefce1a383783420