[INFO] fetching crate hex-matrix 0.2.0... [INFO] testing hex-matrix-0.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate hex-matrix 0.2.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate hex-matrix 0.2.0 [INFO] finished tweaking crates.io crate hex-matrix 0.2.0 [INFO] tweaked toml for crates.io crate hex-matrix 0.2.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hex-matrix 0.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hex-matrix 0.2.0 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0a75bcfc27ae4e7830db38ace2a06d6ed4476178ce82c8e3166fbff8457b4d7 [INFO] running `Command { std: "docker" "start" "-a" "a0a75bcfc27ae4e7830db38ace2a06d6ed4476178ce82c8e3166fbff8457b4d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0a75bcfc27ae4e7830db38ace2a06d6ed4476178ce82c8e3166fbff8457b4d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0a75bcfc27ae4e7830db38ace2a06d6ed4476178ce82c8e3166fbff8457b4d7", kill_on_drop: false }` [INFO] [stdout] a0a75bcfc27ae4e7830db38ace2a06d6ed4476178ce82c8e3166fbff8457b4d7 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60c1c882f6885c7b1406d250d69b73bafbc1eca80bc9d459459d385a96a47896 [INFO] running `Command { std: "docker" "start" "-a" "60c1c882f6885c7b1406d250d69b73bafbc1eca80bc9d459459d385a96a47896", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling hex-matrix v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/matrix.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | for (i, v) in self.lines.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut max_line_number = String::from(format!("{}", (max_line_count * width))).len(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..(max_line_number - line_number.to_string().len()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.99s [INFO] running `Command { std: "docker" "inspect" "60c1c882f6885c7b1406d250d69b73bafbc1eca80bc9d459459d385a96a47896", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60c1c882f6885c7b1406d250d69b73bafbc1eca80bc9d459459d385a96a47896", kill_on_drop: false }` [INFO] [stdout] 60c1c882f6885c7b1406d250d69b73bafbc1eca80bc9d459459d385a96a47896 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbd29544484d26bb7e438cb32f9bcaa96f7d588fb60c2eb265b98fa4ba1b79e0 [INFO] running `Command { std: "docker" "start" "-a" "fbd29544484d26bb7e438cb32f9bcaa96f7d588fb60c2eb265b98fa4ba1b79e0", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/matrix.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | for (i, v) in self.lines.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut max_line_number = String::from(format!("{}", (max_line_count * width))).len(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..(max_line_number - line_number.to_string().len()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hex-matrix v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Line` [INFO] [stdout] --> examples/main.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use hex_matrix::matrix::{Line, Matrix}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/matrix.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> examples/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | for (i, v) in lines.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | for (i, v) in self.lines.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut max_line_number = String::from(format!("{}", (max_line_count * width))).len(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/matrix.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..(max_line_number - line_number.to_string().len()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "fbd29544484d26bb7e438cb32f9bcaa96f7d588fb60c2eb265b98fa4ba1b79e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbd29544484d26bb7e438cb32f9bcaa96f7d588fb60c2eb265b98fa4ba1b79e0", kill_on_drop: false }` [INFO] [stdout] fbd29544484d26bb7e438cb32f9bcaa96f7d588fb60c2eb265b98fa4ba1b79e0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2fe90dc08baf074bb7961ec5f6a4827bfb3443e7892b997efb9af4e9eef76af0 [INFO] running `Command { std: "docker" "start" "-a" "2fe90dc08baf074bb7961ec5f6a4827bfb3443e7892b997efb9af4e9eef76af0", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `default` [INFO] [stderr] --> src/matrix.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | default, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/matrix.rs:81:14 [INFO] [stderr] | [INFO] [stderr] 81 | for (i, v) in self.lines.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/matrix.rs:160:13 [INFO] [stderr] | [INFO] [stderr] 160 | let mut max_line_number = String::from(format!("{}", (max_line_count * width))).len(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/matrix.rs:179:21 [INFO] [stderr] | [INFO] [stderr] 179 | for i in 0..(max_line_number - line_number.to_string().len()) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: `hex-matrix` (lib) generated 4 warnings (run `cargo fix --lib -p hex-matrix` to apply 4 suggestions) [INFO] [stderr] warning: `hex-matrix` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: unused import: `Line` [INFO] [stderr] --> examples/main.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | use hex_matrix::matrix::{Line, Matrix}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> examples/main.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | for (i, v) in lines.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `hex-matrix` (example "main") generated 2 warnings (run `cargo fix --example "main" -p hex-matrix` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hex_matrix-bf6c25131b89a00c) [INFO] [stderr] Doc-tests hex_matrix [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/matrix.rs - matrix::Matrix::get_line_by_index (line 106) ... FAILED [INFO] [stdout] test src/matrix.rs - matrix::Matrix (line 58) ... FAILED [INFO] [stdout] test src/matrix.rs - matrix::Matrix::lines (line 134) ... FAILED [INFO] [stdout] test src/matrix.rs - matrix::Matrix::print_matrix (line 75) ... FAILED [INFO] [stdout] test src/matrix.rs - matrix::Matrix::reset (line 90) ... FAILED [INFO] [stdout] test src/matrix.rs - matrix::Matrix::line_count (line 120) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix::get_line_by_index (line 106) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 106 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `index` in this scope [INFO] [stdout] --> src/matrix.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | let line = m.get_line_by_index(index); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix (line 58) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix::lines (line 134) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 134 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Line` in this scope [INFO] [stdout] --> src/matrix.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | let lines : Vec = m.lines(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 134 + use hex_matrix::matrix::Line; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix::print_matrix (line 75) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix::reset (line 90) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 90 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/matrix.rs - matrix::Matrix::line_count (line 120) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/matrix.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut m = Matrix::new(20, arr.to_vec()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use hex_matrix::matrix::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/matrix.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | println("{}", m.line_count()); [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 124 | println!("{}", m.line_count()); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/matrix.rs - matrix::Matrix (line 58) [INFO] [stdout] src/matrix.rs - matrix::Matrix::get_line_by_index (line 106) [INFO] [stdout] src/matrix.rs - matrix::Matrix::line_count (line 120) [INFO] [stdout] src/matrix.rs - matrix::Matrix::lines (line 134) [INFO] [stdout] src/matrix.rs - matrix::Matrix::print_matrix (line 75) [INFO] [stdout] src/matrix.rs - matrix::Matrix::reset (line 90) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2fe90dc08baf074bb7961ec5f6a4827bfb3443e7892b997efb9af4e9eef76af0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fe90dc08baf074bb7961ec5f6a4827bfb3443e7892b997efb9af4e9eef76af0", kill_on_drop: false }` [INFO] [stdout] 2fe90dc08baf074bb7961ec5f6a4827bfb3443e7892b997efb9af4e9eef76af0