[INFO] cloning repository https://github.com/hbhavan/matrix_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hbhavan/matrix_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhbhavan%2Fmatrix_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhbhavan%2Fmatrix_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a0e0714f43ac9f7cdc8ef9432caf865fc879ebf [INFO] testing hbhavan/matrix_rs against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhbhavan%2Fmatrix_rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hbhavan/matrix_rs on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hbhavan/matrix_rs [INFO] finished tweaking git repo https://github.com/hbhavan/matrix_rs [INFO] tweaked toml for git repo https://github.com/hbhavan/matrix_rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hbhavan/matrix_rs 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4dcf41ab21289b2290758a14d6bedc53909d6657801f5edfe3d7b85d687b661 [INFO] running `Command { std: "docker" "start" "-a" "e4dcf41ab21289b2290758a14d6bedc53909d6657801f5edfe3d7b85d687b661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4dcf41ab21289b2290758a14d6bedc53909d6657801f5edfe3d7b85d687b661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4dcf41ab21289b2290758a14d6bedc53909d6657801f5edfe3d7b85d687b661", kill_on_drop: false }` [INFO] [stdout] e4dcf41ab21289b2290758a14d6bedc53909d6657801f5edfe3d7b85d687b661 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 079de5732e69fa3180923047bde29b8de9ccd941f71c7c8dbbe0dc6528324562 [INFO] running `Command { std: "docker" "start" "-a" "079de5732e69fa3180923047bde29b8de9ccd941f71c7c8dbbe0dc6528324562", kill_on_drop: false }` [INFO] [stderr] Compiling matrix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/tests/matrix_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `print_matrix` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | Matrix::print_matrix(mat_c); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `print_matrix` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply2` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | let mat_c = mat_a.matrix_multiply2(&mat_b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- method `matrix_multiply2` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `matrix_multiply` with a similar name [INFO] [stdout] | [INFO] [stdout] 65 - let mat_c = mat_a.matrix_multiply2(&mat_b); [INFO] [stdout] 65 + let mat_c = mat_a.matrix_multiply(&mat_b); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `print_matrix` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Matrix::print_matrix(mat_c); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `print_matrix` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply2` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | let mat_c = mat_a.matrix_multiply2(&mat_b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- method `matrix_multiply2` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `matrix_multiply` with a similar name [INFO] [stdout] | [INFO] [stdout] 71 - let mat_c = mat_a.matrix_multiply2(&mat_b); [INFO] [stdout] 71 + let mat_c = mat_a.matrix_multiply(&mat_b); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `print_matrix` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | Matrix::print_matrix(mat_c); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `print_matrix` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `print_matrix` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | Matrix::print_matrix(mat_c); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `print_matrix` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `print_matrix` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | Matrix::print_matrix(mat_c); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `print_matrix` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/tests/matrix_test.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply2` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:114:23 [INFO] [stdout] | [INFO] [stdout] 114 | let mat_d = mat_a.matrix_multiply2(&mat_b).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- method `matrix_multiply2` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `matrix_multiply` with a similar name [INFO] [stdout] | [INFO] [stdout] 114 - let mat_d = mat_a.matrix_multiply2(&mat_b).unwrap(); [INFO] [stdout] 114 + let mat_d = mat_a.matrix_multiply(&mat_b).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `equals` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | if !mat_c.equals(&mat_d) { [INFO] [stdout] | ^^^^^^ method not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- method `equals` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/tests/matrix_test.rs:131:19 [INFO] [stdout] | [INFO] [stdout] 131 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:142:30 [INFO] [stdout] | [INFO] [stdout] 142 | let (x, y) = Matrix::get_coords(i, mat_a_rows, mat_size).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | let (x, y) = Matrix::get_coords(i, mat_size, mat_b_cols).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/tests/matrix_test.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | let (x, y) = Matrix::get_coords(i, mat_a_rows, mat_size).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:186:30 [INFO] [stdout] | [INFO] [stdout] 186 | let (x, y) = Matrix::get_coords(i, mat_size, mat_b_cols).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/tests/matrix_test.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 194 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:205:30 [INFO] [stdout] | [INFO] [stdout] 205 | let (x, y) = Matrix::get_coords(i, mat_a_rows, mat_size).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_coords` found for struct `Matrix` in the current scope [INFO] [stdout] --> src/tests/matrix_test.rs:211:30 [INFO] [stdout] | [INFO] [stdout] 211 | let (x, y) = Matrix::get_coords(i, mat_size, mat_b_cols).unwrap_or((0, 0)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Matrix<_>` [INFO] [stdout] | [INFO] [stdout] ::: src/matrix.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Matrix [INFO] [stdout] | -------------------- function or associated item `get_coords` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Matrix<_>` consider using one of the following associated functions: [INFO] [stdout] Matrix::::new [INFO] [stdout] Matrix::::new_empty [INFO] [stdout] Matrix::::from_vec [INFO] [stdout] --> src/matrix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_empty(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_vec(v: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_d` [INFO] [stdout] --> src/tests/matrix_test.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mat_d = mat_b.add(3.0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_e` [INFO] [stdout] --> src/tests/matrix_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mat_e = mat_c.add(4.0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `matrix` (bin "matrix") due to 20 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "079de5732e69fa3180923047bde29b8de9ccd941f71c7c8dbbe0dc6528324562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "079de5732e69fa3180923047bde29b8de9ccd941f71c7c8dbbe0dc6528324562", kill_on_drop: false }` [INFO] [stdout] 079de5732e69fa3180923047bde29b8de9ccd941f71c7c8dbbe0dc6528324562