[INFO] cloning repository https://github.com/dev-gm/matrices [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dev-gm/matrices" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-gm%2Fmatrices", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-gm%2Fmatrices'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c0c3b4ae8adf90a75711055d3c3fe6f88a050975 [INFO] checking dev-gm/matrices/c0c3b4ae8adf90a75711055d3c3fe6f88a050975 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-gm%2Fmatrices" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dev-gm/matrices on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dev-gm/matrices [INFO] finished tweaking git repo https://github.com/dev-gm/matrices [INFO] tweaked toml for git repo https://github.com/dev-gm/matrices written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dev-gm/matrices 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e3b73d0bc47087ff201a1a2556f2398d4fba9774331ee5933ee65adcdfd0089 [INFO] running `Command { std: "docker" "start" "-a" "4e3b73d0bc47087ff201a1a2556f2398d4fba9774331ee5933ee65adcdfd0089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e3b73d0bc47087ff201a1a2556f2398d4fba9774331ee5933ee65adcdfd0089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e3b73d0bc47087ff201a1a2556f2398d4fba9774331ee5933ee65adcdfd0089", kill_on_drop: false }` [INFO] [stdout] 4e3b73d0bc47087ff201a1a2556f2398d4fba9774331ee5933ee65adcdfd0089 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9207a4a4670783ddd63fe179adae8ae707f2dbad9aa2cc71db3d858d645a823e [INFO] running `Command { std: "docker" "start" "-a" "9207a4a4670783ddd63fe179adae8ae707f2dbad9aa2cc71db3d858d645a823e", kill_on_drop: false }` [INFO] [stderr] Checking math v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/matrix.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `}` [INFO] [stdout] --> src/matrix.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | } [INFO] [stdout] | ^ expected `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/group.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | fn identity(&self, key: OperationType) -> Option> [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 12 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/group.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | fn identity(&self, key: OperationType) -> Option> [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 12 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/matrix.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/matrix.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `zero` has an incompatible type for trait [INFO] [stdout] --> src/matrix.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | fn zero(&self) -> Box { [INFO] [stdout] | ^^^^^^^^^ expected `Matrix`, found `Box>` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/group.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | fn zero(&self) -> Self; // self * zero() == zero() and self + zero() == self [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected signature `fn(&Matrix<_>) -> Matrix<_>` [INFO] [stdout] found signature `fn(&Matrix<_>) -> Box>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 70 | fn zero(&self) -> Matrix { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `operation` has an incompatible type for trait [INFO] [stdout] --> src/matrix.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option<(Operation, Box)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `group::Operation>`, found `(Operation>, Box<...>)` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/group.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | fn operation(&self, key: OperationType) -> Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&Matrix<_>, group::OperationType) -> Option>>` [INFO] [stdout] found signature `fn(&Matrix<_>, group::OperationType) -> Option<(group::Operation>, Box>)>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option>> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `empty`, `identity` [INFO] [stdout] --> src/matrix.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | impl> Group for Matrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `empty`, `identity` in implementation [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn empty() -> Self; [INFO] [stdout] | ------------------- `empty` from trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn identity(&self, key: OperationType) -> Option> [INFO] [stdout] | ----------------------------------------------------------- `identity` from trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `zero` has an incompatible type for trait [INFO] [stdout] --> src/matrix.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | fn zero(&self) -> Box { [INFO] [stdout] | ^^^^^^^^^ expected `Matrix`, found `Box>` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/group.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | fn zero(&self) -> Self; // self * zero() == zero() and self + zero() == self [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected signature `fn(&Matrix<_>) -> Matrix<_>` [INFO] [stdout] found signature `fn(&Matrix<_>) -> Box>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 70 | fn zero(&self) -> Matrix { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `operation` has an incompatible type for trait [INFO] [stdout] --> src/matrix.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option<(Operation, Box)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `group::Operation>`, found `(Operation>, Box<...>)` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/group.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | fn operation(&self, key: OperationType) -> Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&Matrix<_>, group::OperationType) -> Option>>` [INFO] [stdout] found signature `fn(&Matrix<_>, group::OperationType) -> Option<(group::Operation>, Box>)>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option>> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `empty`, `identity` [INFO] [stdout] --> src/matrix.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | impl> Group for Matrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `empty`, `identity` in implementation [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn empty() -> Self; [INFO] [stdout] | ------------------- `empty` from trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn identity(&self, key: OperationType) -> Option> [INFO] [stdout] | ----------------------------------------------------------- `identity` from trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'box_into_inner' [INFO] [stdout] --> src/matrix.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | matrix[x].push(Box::into_inner(T::empty().operation(OperationType::Add) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #80437 for more information [INFO] [stdout] = help: add `#![feature(box_into_inner)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'box_into_inner' [INFO] [stdout] --> src/matrix.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | matrix[x].push(Box::into_inner(T::empty().operation(OperationType::Add) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #80437 for more information [INFO] [stdout] = help: add `#![feature(box_into_inner)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `group::Operation` [INFO] [stdout] --> src/matrix.rs:24:108 [INFO] [stdout] | [INFO] [stdout] 24 | .expect("Can't get addition identity for group that doesn't have addition operations").1)); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `group::Operation` [INFO] [stdout] --> src/matrix.rs:24:108 [INFO] [stdout] | [INFO] [stdout] 24 | .expect("Can't get addition identity for group that doesn't have addition operations").1)); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'box_into_inner' [INFO] [stdout] --> src/matrix.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | matrix[x].push(Box::into_inner(T::empty().operation(OperationType::Mul) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #80437 for more information [INFO] [stdout] = help: add `#![feature(box_into_inner)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `group::Operation` [INFO] [stdout] --> src/matrix.rs:37:124 [INFO] [stdout] | [INFO] [stdout] 37 | .expect("Can't get multiplicative identity for group that doesn't have multiplication operations").1)); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'box_into_inner' [INFO] [stdout] --> src/matrix.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | matrix[x].push(Box::into_inner(T::empty().operation(OperationType::Mul) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #80437 for more information [INFO] [stdout] = help: add `#![feature(box_into_inner)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `group::Operation` [INFO] [stdout] --> src/matrix.rs:37:124 [INFO] [stdout] | [INFO] [stdout] 37 | .expect("Can't get multiplicative identity for group that doesn't have multiplication operations").1)); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | } else {} [INFO] [stdout] | ^^ expected `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | } else {} [INFO] [stdout] | ^^ expected `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option<(Operation, Box)> { [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<(Operation>, ...)>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<(group::Operation>, Box>)>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | fn operation(&self, key: OperationType) -> Option<(Operation, Box)> { [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<(Operation>, ...)>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<(group::Operation>, Box>)>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/matrix.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn pow_checked(&self, exp: isize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/matrix.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn pow_checked(&self, exp: isize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/matrix.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 97 | fn add(mut self, rhs: Self) -> Self::Output { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/matrix.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 97 | fn add(mut self, rhs: Self) -> Self::Output { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:103:34 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | impl> ops::Add for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:103:34 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | impl> ops::Add for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | impl> ops::Add for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | --------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | impl> ops::Add for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 103 | self[x][y] = self[x][y] + rhs[x][y]; [INFO] [stdout] | --------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | *self = *self + rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | *self = *self + rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:91:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/matrix.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 120 | fn sub(mut self, rhs: Self) -> Self::Output { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/matrix.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 120 | fn sub(mut self, rhs: Self) -> Self::Output { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:126:34 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | impl> ops::Sub for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:126:34 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | impl> ops::Sub for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ---------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:126:47 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | impl> ops::Sub for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | --------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:126:47 [INFO] [stdout] | [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | ^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | impl> ops::Sub for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 126 | self[x][y] = self[x][y] - rhs[x][y]; [INFO] [stdout] | --------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | *self = *self - rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | *self = *self - rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:200:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 151 | let mut sum = self[row][0] * self[col][0]; [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | *self = *self * rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/matrix.rs:153:53 [INFO] [stdout] | [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/matrix.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl + ops::Add> ops::Mul for Matrix { [INFO] [stdout] | ^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 153 | sum = sum + (self[row][i] * self[col][i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | *self = *self / rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:464:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | *self = *self * rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:330:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/matrix.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | *self = *self / rhs; [INFO] [stdout] | ^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | `*self` moved due to usage in operator [INFO] [stdout] | move occurs because `*self` has type `Matrix`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:464:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0308, E0507, E0596, E0609, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0308, E0507, E0596, E0609, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `math` (bin "math") due to 26 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `math` (bin "math" test) due to 26 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9207a4a4670783ddd63fe179adae8ae707f2dbad9aa2cc71db3d858d645a823e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9207a4a4670783ddd63fe179adae8ae707f2dbad9aa2cc71db3d858d645a823e", kill_on_drop: false }` [INFO] [stdout] 9207a4a4670783ddd63fe179adae8ae707f2dbad9aa2cc71db3d858d645a823e