[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 against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-gm%2Fmatrices" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dev-gm/matrices on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "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-5-tc2/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" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking dev-gm/matrices against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-gm%2Fmatrices" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dev-gm/matrices on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "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-5-tc2/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" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2f600a3aab70336866fd643939c1320974d10f81a036480ea18316544e890e9 [INFO] running `Command { std: "docker" "start" "-a" "f2f600a3aab70336866fd643939c1320974d10f81a036480ea18316544e890e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2f600a3aab70336866fd643939c1320974d10f81a036480ea18316544e890e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2f600a3aab70336866fd643939c1320974d10f81a036480ea18316544e890e9", kill_on_drop: false }` [INFO] [stdout] f2f600a3aab70336866fd643939c1320974d10f81a036480ea18316544e890e9 [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" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ac40f5764c3b3e0ef1956962c06feca1d86e0ccaa8a52636bd06b9d4e4f4164 [INFO] running `Command { std: "docker" "start" "-a" "1ac40f5764c3b3e0ef1956962c06feca1d86e0ccaa8a52636bd06b9d4e4f4164", 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) -> Box { [INFO] [stdout] 70 + fn zero(&self) -> Matrix { [INFO] [stdout] | [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) -> Box { [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<(Operation, Box)> { [INFO] [stdout] 75 + fn operation(&self, key: OperationType) -> Option>> { [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<(Operation, Box)> { [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[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 2025-02-13; 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 2025-02-13; 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 2025-02-13; 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: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 2025-02-13; 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[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>, Box<...>)>`, 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>, Box<...>)>`, 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: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: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 `*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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:93: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:93: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:202: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:202: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: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: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: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: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: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:332: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:332: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:466: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/9d63f825c0d409b0e1743a2c84b33f86965e5929/library/core/src/ops/arith.rs:466:12 [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] 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 25 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 25 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1ac40f5764c3b3e0ef1956962c06feca1d86e0ccaa8a52636bd06b9d4e4f4164", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ac40f5764c3b3e0ef1956962c06feca1d86e0ccaa8a52636bd06b9d4e4f4164", kill_on_drop: false }` [INFO] [stdout] 1ac40f5764c3b3e0ef1956962c06feca1d86e0ccaa8a52636bd06b9d4e4f4164