[INFO] fetching crate linfa-kernel 0.7.0... [INFO] checking linfa-kernel-0.7.0 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate linfa-kernel 0.7.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate linfa-kernel 0.7.0 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 crates.io crate linfa-kernel 0.7.0 [INFO] finished tweaking crates.io crate linfa-kernel 0.7.0 [INFO] tweaked toml for crates.io crate linfa-kernel 0.7.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 42 packages to latest compatible versions [INFO] [stderr] Adding approx v0.4.0 (available: v0.5.1) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding kdtree v0.6.0 (available: v0.7.0) [INFO] [stderr] Adding ndarray v0.15.6 (available: v0.16.1) [INFO] [stderr] Adding ndarray-stats v0.5.1 (available: v0.6.0) [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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 656409634c26580bb003bc90e46aa21b1fe732849269e71bc40672c3bdf3737e [INFO] running `Command { std: "docker" "start" "-a" "656409634c26580bb003bc90e46aa21b1fe732849269e71bc40672c3bdf3737e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "656409634c26580bb003bc90e46aa21b1fe732849269e71bc40672c3bdf3737e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "656409634c26580bb003bc90e46aa21b1fe732849269e71bc40672c3bdf3737e", kill_on_drop: false }` [INFO] [stdout] 656409634c26580bb003bc90e46aa21b1fe732849269e71bc40672c3bdf3737e [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c257f7739b16f998b63b6655198e882801de16cd5b04f4be57ae1d121016bdcf [INFO] running `Command { std: "docker" "start" "-a" "c257f7739b16f998b63b6655198e882801de16cd5b04f4be57ae1d121016bdcf", kill_on_drop: false }` [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling linfa v0.7.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking noisy_float v0.2.0 [INFO] [stderr] Checking kdtree v0.6.0 [INFO] [stderr] Checking order-stat v0.1.3 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ndarray-stats v0.5.1 [INFO] [stderr] Checking sprs v0.11.2 [INFO] [stderr] Checking linfa-nn v0.7.0 [INFO] [stderr] Checking linfa-kernel v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: cannot multiply `&CsMatBase, Vec, Vec>` by `&ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/inner.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | self.mul(rhs) [INFO] [stdout] | --- ^^^ no implementation for `&CsMatBase, Vec, Vec> * &ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul<&ndarray::ArrayBase, Dim<[usize; 2]>>>` is not implemented for `&CsMatBase, Vec, Vec>` [INFO] [stdout] = help: the following other types implement trait `Mul`: [INFO] [stdout] `&CsMatBase` implements `Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `Mul<&CsMatBase>` [INFO] [stdout] `&CsMatBase` implements `Mul<&CsVecBase>` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `&CsMatBase` by `&ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/inner.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | self.mul(rhs) [INFO] [stdout] | --- ^^^ no implementation for `&CsMatBase * &ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul<&ndarray::ArrayBase, Dim<[usize; 2]>>>` is not implemented for `&CsMatBase` [INFO] [stdout] = help: the following other types implement trait `Mul`: [INFO] [stdout] `&CsMatBase` implements `Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `Mul<&CsMatBase>` [INFO] [stdout] `&CsMatBase` implements `Mul<&CsVecBase>` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] `&CsMatBase` implements `Mul` [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `&CsMatBase, Vec, Vec>` by `&ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/inner.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | self.mul(rhs) [INFO] [stdout] | --- ^^^ no implementation for `&CsMatBase, Vec, Vec> * &ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Mul<&ndarray::ArrayBase, Dim<[usize; 2]>>>` is not implemented for `&CsMatBase, Vec, Vec>` [INFO] [stdout] = help: the following other types implement trait `std::ops::Mul`: [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsMatBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsVecBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `&CsMatBase` by `&ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/inner.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | self.mul(rhs) [INFO] [stdout] | --- ^^^ no implementation for `&CsMatBase * &ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Mul<&ndarray::ArrayBase, Dim<[usize; 2]>>>` is not implemented for `&CsMatBase` [INFO] [stdout] = help: the following other types implement trait `std::ops::Mul`: [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsMatBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsVecBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `linfa-kernel` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: cannot multiply `&CsMatBase, Vec, Vec>` by `&ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/lib.rs:704:79 [INFO] [stdout] | [INFO] [stdout] 704 | sparse_from_fn(&input_arr, 3, &KernelMethod::Linear, &KdTree).mul(&to_multiply.view()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^ no implementation for `&CsMatBase, Vec, Vec> * &ndarray::ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Mul<&ndarray::ArrayBase, Dim<[usize; 2]>>>` is not implemented for `&CsMatBase, Vec, Vec>` [INFO] [stdout] = help: the following other types implement trait `std::ops::Mul`: [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&ndarray::ArrayBase>>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsMatBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul<&CsVecBase>` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] `&CsMatBase` implements `std::ops::Mul` [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:789:23 [INFO] [stdout] | [INFO] [stdout] 789 | .sum_axis(Axis(1)); [INFO] [stdout] | -------- ^^^^^^^ expected `ndarray::dimension::axis::Axis`, found `ndarray::Axis` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `ndarray::Axis` and `ndarray::dimension::axis::Axis` have similar names, but are actually distinct types [INFO] [stdout] note: `ndarray::Axis` is defined in crate `ndarray` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.15.6/src/dimension/axis.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Axis(pub usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: `ndarray::dimension::axis::Axis` is defined in crate `ndarray` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.16.1/src/dimension/axis.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Axis(pub usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `ndarray` are being used? [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.16.1/src/numeric/impl_numeric.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn sum_axis(&self, axis: Axis) -> Array [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:795:37 [INFO] [stdout] | [INFO] [stdout] 795 | assert!(arrays_almost_equal(cols_sum.view(), kers_sum.view())); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^ expected `ArrayBase, Dim<...>>`, found a different `ArrayBase, Dim<...>>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `ArrayBase, Dim<...>>` and `ArrayBase, Dim<...>>` have similar names, but are actually distinct types [INFO] [stdout] note: `ArrayBase, Dim<...>>` is defined in crate `ndarray` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `ArrayBase, Dim<...>>` is defined in crate `ndarray` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.15.6/src/lib.rs:1268:1 [INFO] [stdout] | [INFO] [stdout] 1268 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `ndarray` are being used? [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:1009:8 [INFO] [stdout] | [INFO] [stdout] 1009 | fn arrays_almost_equal(reference: ArrayView1, transformed: ArrayView1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ -------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `KernelBase, Dim<[usize; 2]>>, CsMatBase, Vec, Vec>>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:724:17 [INFO] [stdout] | [INFO] [stdout] 717 | let input_arr_1 = Array2::from_shape_vec((5, 10), input_vec.clone()).unwrap(); [INFO] [stdout] | ----------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 718 | let mut input_arr_2 = Array2::from_shape_vec((5, 10), input_vec).unwrap(); [INFO] [stdout] | --------------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 719 | input_arr_2.invert_axis(Axis(0)); [INFO] [stdout] 720 | let input_arr = [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 724 | let kernel = KernelView::params() [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 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `linfa-kernel` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "c257f7739b16f998b63b6655198e882801de16cd5b04f4be57ae1d121016bdcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c257f7739b16f998b63b6655198e882801de16cd5b04f4be57ae1d121016bdcf", kill_on_drop: false }` [INFO] [stdout] c257f7739b16f998b63b6655198e882801de16cd5b04f4be57ae1d121016bdcf