[INFO] fetching crate rest_tensors 0.1.1... [INFO] checking rest_tensors-0.1.1 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate rest_tensors 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate rest_tensors 0.1.1 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rest_tensors 0.1.1 [INFO] finished tweaking crates.io crate rest_tensors 0.1.1 [INFO] tweaked toml for crates.io crate rest_tensors 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e981d8f7136f6d2ca14bdd5bd4b9bf3cb7371fca96aa9c02cdbbbbb5325eabe3 [INFO] running `Command { std: "docker" "start" "-a" "e981d8f7136f6d2ca14bdd5bd4b9bf3cb7371fca96aa9c02cdbbbbb5325eabe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e981d8f7136f6d2ca14bdd5bd4b9bf3cb7371fca96aa9c02cdbbbbb5325eabe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e981d8f7136f6d2ca14bdd5bd4b9bf3cb7371fca96aa9c02cdbbbbb5325eabe3", kill_on_drop: false }` [INFO] [stdout] e981d8f7136f6d2ca14bdd5bd4b9bf3cb7371fca96aa9c02cdbbbbb5325eabe3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef29a1b0ec8ba9c5f06abcbd978982096647cd04dc1d726d9637a76a8069a1ee [INFO] running `Command { std: "docker" "start" "-a" "ef29a1b0ec8ba9c5f06abcbd978982096647cd04dc1d726d9637a76a8069a1ee", kill_on_drop: false }` [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking wide v0.7.9 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking os_str_bytes v6.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking plotters-backend v0.3.4 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking ciborium-io v0.2.1 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Checking plotters-svg v0.3.3 [INFO] [stderr] Checking ciborium-ll v0.2.1 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking blas-sys v0.7.1 [INFO] [stderr] Checking lapack-sys v0.14.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking regex-syntax v0.7.2 [INFO] [stderr] Checking lapack v0.19.0 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking blas v0.22.0 [INFO] [stderr] Checking plotters v0.3.4 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking simba v0.7.3 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking regex v1.8.3 [INFO] [stderr] Checking ciborium v0.2.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.4.0 [INFO] [stderr] Checking nalgebra v0.31.4 [INFO] [stderr] Checking rest_tensors v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:868:31 [INFO] [stdout] | [INFO] [stdout] 868 | let size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:876:62 [INFO] [stdout] | [INFO] [stdout] 876 | let mut new_vec = matr.data.iter().map(|x| *x.clone()).collect::>(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:884:31 [INFO] [stdout] | [INFO] [stdout] 884 | let size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:900:34 [INFO] [stdout] | [INFO] [stdout] 900 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:912:92 [INFO] [stdout] | [INFO] [stdout] 912 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:920:34 [INFO] [stdout] | [INFO] [stdout] 920 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:930:86 [INFO] [stdout] | [INFO] [stdout] 930 | self.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:940:36 [INFO] [stdout] | [INFO] [stdout] 940 | let self_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:951:92 [INFO] [stdout] | [INFO] [stdout] 951 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:959:36 [INFO] [stdout] | [INFO] [stdout] 959 | let self_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:976:33 [INFO] [stdout] | [INFO] [stdout] 976 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:977:34 [INFO] [stdout] | [INFO] [stdout] 977 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:987:90 [INFO] [stdout] | [INFO] [stdout] 987 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:993:91 [INFO] [stdout] | [INFO] [stdout] 993 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {**t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1044:33 [INFO] [stdout] | [INFO] [stdout] 1044 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1051:73 [INFO] [stdout] | [INFO] [stdout] 1051 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1074:34 [INFO] [stdout] | [INFO] [stdout] 1074 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1085:93 [INFO] [stdout] | [INFO] [stdout] 1085 | new_tensors.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1093:34 [INFO] [stdout] | [INFO] [stdout] 1093 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1103:86 [INFO] [stdout] | [INFO] [stdout] 1103 | self.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1112:33 [INFO] [stdout] | [INFO] [stdout] 1112 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1123:92 [INFO] [stdout] | [INFO] [stdout] 1123 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t = (*f.clone()-*t)}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1131:33 [INFO] [stdout] | [INFO] [stdout] 1131 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1148:33 [INFO] [stdout] | [INFO] [stdout] 1148 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1149:34 [INFO] [stdout] | [INFO] [stdout] 1149 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1159:90 [INFO] [stdout] | [INFO] [stdout] 1159 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1165:91 [INFO] [stdout] | [INFO] [stdout] 1165 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {**t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1187:33 [INFO] [stdout] | [INFO] [stdout] 1187 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1194:73 [INFO] [stdout] | [INFO] [stdout] 1194 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1229:33 [INFO] [stdout] | [INFO] [stdout] 1229 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1236:73 [INFO] [stdout] | [INFO] [stdout] 1236 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/submatrixfull.rs:117:44 [INFO] [stdout] | [INFO] [stdout] 117 | matr.data.iter().map(|x| *x.clone()).collect::>() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/submatrixfull.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | matr.data.iter().map(|x| **x.clone()).collect::>() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `T` does not implement `Clone`, so calling `clone` on `&T` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rest_tensors` (lib) due to 19 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:868:31 [INFO] [stdout] | [INFO] [stdout] 868 | let size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:876:62 [INFO] [stdout] | [INFO] [stdout] 876 | let mut new_vec = matr.data.iter().map(|x| *x.clone()).collect::>(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:884:31 [INFO] [stdout] | [INFO] [stdout] 884 | let size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:900:34 [INFO] [stdout] | [INFO] [stdout] 900 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:912:92 [INFO] [stdout] | [INFO] [stdout] 912 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:920:34 [INFO] [stdout] | [INFO] [stdout] 920 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:930:86 [INFO] [stdout] | [INFO] [stdout] 930 | self.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:940:36 [INFO] [stdout] | [INFO] [stdout] 940 | let self_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:951:92 [INFO] [stdout] | [INFO] [stdout] 951 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:959:36 [INFO] [stdout] | [INFO] [stdout] 959 | let self_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:976:33 [INFO] [stdout] | [INFO] [stdout] 976 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:977:34 [INFO] [stdout] | [INFO] [stdout] 977 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:987:90 [INFO] [stdout] | [INFO] [stdout] 987 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {*t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:993:91 [INFO] [stdout] | [INFO] [stdout] 993 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {**t += *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1044:33 [INFO] [stdout] | [INFO] [stdout] 1044 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1051:73 [INFO] [stdout] | [INFO] [stdout] 1051 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1074:34 [INFO] [stdout] | [INFO] [stdout] 1074 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1085:93 [INFO] [stdout] | [INFO] [stdout] 1085 | new_tensors.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1093:34 [INFO] [stdout] | [INFO] [stdout] 1093 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1103:86 [INFO] [stdout] | [INFO] [stdout] 1103 | self.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1112:33 [INFO] [stdout] | [INFO] [stdout] 1112 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1123:92 [INFO] [stdout] | [INFO] [stdout] 1123 | new_tensor.data.iter_mut().zip(matr.data.iter()).for_each(|(t,f)| {*t = (*f.clone()-*t)}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1131:33 [INFO] [stdout] | [INFO] [stdout] 1131 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1148:33 [INFO] [stdout] | [INFO] [stdout] 1148 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1149:34 [INFO] [stdout] | [INFO] [stdout] 1149 | let o_size = other.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1159:90 [INFO] [stdout] | [INFO] [stdout] 1159 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {*t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1165:91 [INFO] [stdout] | [INFO] [stdout] 1165 | s_matr.data.iter_mut().zip(o_matr.data.iter()).for_each(|(t,f)| {**t -= *f.clone()}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1187:33 [INFO] [stdout] | [INFO] [stdout] 1187 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1194:73 [INFO] [stdout] | [INFO] [stdout] 1194 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/matrixfull.rs:1229:33 [INFO] [stdout] | [INFO] [stdout] 1229 | let s_size = self.size().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `[usize]` does not implement `Clone`, so calling `clone` on `&[usize]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/matrixfull.rs:1236:73 [INFO] [stdout] | [INFO] [stdout] 1236 | MatrixFull::from_vec(s_size, matr.data.iter().map(|x| *x.clone()).collect::>()).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&T` instead of cloning the inner type [INFO] [stdout] --> src/matrix/submatrixfull.rs:117:44 [INFO] [stdout] | [INFO] [stdout] 117 | matr.data.iter().map(|x| *x.clone()).collect::>() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/matrix/submatrixfull.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | matr.data.iter().map(|x| **x.clone()).collect::>() [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `T` does not implement `Clone`, so calling `clone` on `&T` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rest_tensors` (lib test) due to 19 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ef29a1b0ec8ba9c5f06abcbd978982096647cd04dc1d726d9637a76a8069a1ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef29a1b0ec8ba9c5f06abcbd978982096647cd04dc1d726d9637a76a8069a1ee", kill_on_drop: false }` [INFO] [stdout] ef29a1b0ec8ba9c5f06abcbd978982096647cd04dc1d726d9637a76a8069a1ee