[INFO] fetching crate rufi_core 15.1.1... [INFO] checking rufi_core-15.1.1 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate rufi_core 15.1.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate rufi_core 15.1.1 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 rufi_core 15.1.1 [INFO] finished tweaking crates.io crate rufi_core 15.1.1 [INFO] tweaked toml for crates.io crate rufi_core 15.1.1 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 15 packages to latest compatible versions [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 610837e247b7668e148a80460053d57ad61dffe259d53f696492f3e2a140582f [INFO] running `Command { std: "docker" "start" "-a" "610837e247b7668e148a80460053d57ad61dffe259d53f696492f3e2a140582f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "610837e247b7668e148a80460053d57ad61dffe259d53f696492f3e2a140582f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "610837e247b7668e148a80460053d57ad61dffe259d53f696492f3e2a140582f", kill_on_drop: false }` [INFO] [stdout] 610837e247b7668e148a80460053d57ad61dffe259d53f696492f3e2a140582f [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bb0e20eda10c61f54dd6808032ba0920528da571b873cabff582424a7a7a558 [INFO] running `Command { std: "docker" "start" "-a" "6bb0e20eda10c61f54dd6808032ba0920528da571b873cabff582424a7a7a558", kill_on_drop: false }` [INFO] [stderr] Checking rufi_core v15.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `RoundVM` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/core/lang/test/utils.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 87 | let new_states: HashMap = states.into_iter().map(|(id, (vm_1, vm_2))| { [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] 88 | if id == curr { [INFO] [stdout] 89 | let (vm_1_, res_1) = round(vm_1, program_1); [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: function `init_vm` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn init_vm() -> RoundVM { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_with_ctx` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn init_with_ctx(ctx: Context) -> RoundVM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_to_ctx` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn push_to_ctx(mut ctx: Context, path: Path, val: A) -> Context { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vm` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn vm(self_id: i32, local_sensor: HashMap>>, nbr_sensor: HashMap>>>,... [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn compose(expr1: F, expr2: G) -> impl Fn(RoundVM) -> (RoundVM, A) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combine` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn combine(expr1: F, expr2: G, comb: H) -> impl Fn(RoundVM) -> (RoundVM, A) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_equivalence` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn assert_equivalence(exec_order: Vec, nbrs: HashMap>, program_1: F, program_2: G) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_equivalence_rec` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn assert_equivalence_rec(mut exec_order: Vec, states: HashMap, program_1: F, program_2: G) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fully_connected_topology_map` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn fully_connected_topology_map(elems: Vec) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/core/vm/round_vm.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | .filter(|(id, _)| id.clone() != &self.self_id()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `i32` does not implement `Clone`, so calling `clone` on `&i32` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rufi_core` (lib) due to 2 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `fixture` [INFO] [stdout] --> src/core/lang/test/by_equivalence.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let fixture = Fixture::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fixture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gradient_1` [INFO] [stdout] --> src/core/lang/test/by_equivalence.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | let gradient_1 = [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gradient_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `RoundVM` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/core/lang/test/utils.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 87 | let new_states: HashMap = states.into_iter().map(|(id, (vm_1, vm_2))| { [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] 88 | if id == curr { [INFO] [stdout] 89 | let (vm_1_, res_1) = round(vm_1, program_1); [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: function `compose` is never used [INFO] [stdout] --> src/core/lang/test/utils.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn compose(expr1: F, expr2: G) -> impl Fn(RoundVM) -> (RoundVM, A) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/core/vm/round_vm.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | .filter(|(id, _)| id.clone() != &self.self_id()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `i32` does not implement `Clone`, so calling `clone` on `&i32` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&` instead [INFO] [stdout] --> src/core/vm/round_vm.rs:346:26 [INFO] [stdout] | [INFO] [stdout] 346 | vm.register_root(Box::new(expr)()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_allocation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/core/lang/test/by_round.rs:260:68 [INFO] [stdout] | [INFO] [stdout] 260 | let val = vm.local_sense::<&str>(&sensor("b")).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rufi_core` (lib test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6bb0e20eda10c61f54dd6808032ba0920528da571b873cabff582424a7a7a558", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bb0e20eda10c61f54dd6808032ba0920528da571b873cabff582424a7a7a558", kill_on_drop: false }` [INFO] [stdout] 6bb0e20eda10c61f54dd6808032ba0920528da571b873cabff582424a7a7a558