[INFO] fetching crate tiling 0.1.0... [INFO] testing tiling-0.1.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate tiling 0.1.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate tiling 0.1.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tiling 0.1.0 [INFO] finished tweaking crates.io crate tiling 0.1.0 [INFO] tweaked toml for crates.io crate tiling 0.1.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate tiling 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cefac24acb9e7ead60fd6f89fb3114eb5f56665712b89f96ae8b83d892a022b7 [INFO] running `Command { std: "docker" "start" "-a" "cefac24acb9e7ead60fd6f89fb3114eb5f56665712b89f96ae8b83d892a022b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cefac24acb9e7ead60fd6f89fb3114eb5f56665712b89f96ae8b83d892a022b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cefac24acb9e7ead60fd6f89fb3114eb5f56665712b89f96ae8b83d892a022b7", kill_on_drop: false }` [INFO] [stdout] cefac24acb9e7ead60fd6f89fb3114eb5f56665712b89f96ae8b83d892a022b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1806161216d19939257e43e869d18c70e4859e8e79de36c2c31836332e7d3c71 [INFO] running `Command { std: "docker" "start" "-a" "1806161216d19939257e43e869d18c70e4859e8e79de36c2c31836332e7d3c71", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling version-compare v0.0.11 [INFO] [stderr] Compiling strum v0.20.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling cfg-expr v0.7.4 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling strum_macros v0.20.1 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling system-deps v3.1.1 [INFO] [stderr] Compiling proc-macro-crate v1.0.0 [INFO] [stderr] Compiling glib-macros v0.14.0 [INFO] [stderr] Compiling glib-sys v0.14.0 [INFO] [stderr] Compiling gobject-sys v0.14.0 [INFO] [stderr] Compiling cairo-sys-rs v0.14.0 [INFO] [stderr] Compiling glib v0.14.0 [INFO] [stderr] Compiling cairo-rs v0.14.0 [INFO] [stderr] Compiling tiling v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.17s [INFO] running `Command { std: "docker" "inspect" "1806161216d19939257e43e869d18c70e4859e8e79de36c2c31836332e7d3c71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1806161216d19939257e43e869d18c70e4859e8e79de36c2c31836332e7d3c71", kill_on_drop: false }` [INFO] [stdout] 1806161216d19939257e43e869d18c70e4859e8e79de36c2c31836332e7d3c71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c3c4cd263f17f9a6a631664daf490752d92560bd67ccfa424907792377bc276 [INFO] running `Command { std: "docker" "start" "-a" "2c3c4cd263f17f9a6a631664daf490752d92560bd67ccfa424907792377bc276", kill_on_drop: false }` [INFO] [stderr] Compiling tiling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `fill_2` [INFO] [stdout] --> examples/examples.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | fill_2: Color, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill_2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/examples.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let b = model.add_multi(a.clone(), 1..2, Shape::new(3, fill_0, stroke)?)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fill_1` [INFO] [stdout] --> examples/examples.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | fill_1: Color, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.83s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/tiling-f35a16edddeda2ee) [INFO] running `Command { std: "docker" "inspect" "2c3c4cd263f17f9a6a631664daf490752d92560bd67ccfa424907792377bc276", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c3c4cd263f17f9a6a631664daf490752d92560bd67ccfa424907792377bc276", kill_on_drop: false }` [INFO] [stdout] 2c3c4cd263f17f9a6a631664daf490752d92560bd67ccfa424907792377bc276 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 755008ae757f4c1f8d6083415255112dad25f8177fc31d12cf5fb0da077ca1b2 [INFO] running `Command { std: "docker" "start" "-a" "755008ae757f4c1f8d6083415255112dad25f8177fc31d12cf5fb0da077ca1b2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `fill_2` [INFO] [stderr] --> examples/examples.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | fill_2: Color, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill_2` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> examples/examples.rs:104:13 [INFO] [stderr] | [INFO] [stderr] 104 | let b = model.add_multi(a.clone(), 1..2, Shape::new(3, fill_0, stroke)?)?; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fill_1` [INFO] [stderr] --> examples/examples.rs:98:9 [INFO] [stderr] | [INFO] [stderr] 98 | fill_1: Color, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fill_1` [INFO] [stderr] [INFO] [stderr] warning: `tiling` (example "examples") generated 3 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tiling-f35a16edddeda2ee) [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] [stderr] Doc-tests tiling [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - (line 78) ... FAILED [INFO] [stdout] test src/lib.rs - (line 50) ... FAILED [INFO] [stdout] test src/lib.rs - (line 94) ... FAILED [INFO] [stdout] test src/lib.rs - (line 20) ... FAILED [INFO] [stdout] test src/lib.rs - (line 87) ... FAILED [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] test src/lib.rs - (line 38) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 78) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 3 | let fill_triangle = Color::new(242, 209, 48)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `squares` in this scope [INFO] [stdout] --> src/lib.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/lib.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stroke` in this scope [INFO] [stdout] --> src/lib.rs:81:77 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_78_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_triangle = Color::new(242, 209, 48)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_78_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:81:84 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_78_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_triangle = Color::new(242, 209, 48)?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_78_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:81:86 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_78_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_triangle = Color::new(242, 209, 48)?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let _ = model.add_multi(squares.clone(), 1..2, Shape::new(3, fill_triangle, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_78_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 50) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/lib.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 3 | let fill_square = Color::new(23, 216, 146)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 5 | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/lib.rs:53:43 [INFO] [stdout] | [INFO] [stdout] 5 | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stroke` in this scope [INFO] [stdout] --> src/lib.rs:53:70 [INFO] [stdout] | [INFO] [stdout] 5 | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:51:43 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_square = Color::new(23, 216, 146)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_50_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:53:77 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_square = Color::new(23, 216, 146)?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_50_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:53:79 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let fill_square = Color::new(23, 216, 146)?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let squares = model.add_multi(0..1, 0..6, Shape::new(4, fill_square, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_50_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 94) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 3 | model.repeat(hexagons)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hexagons` in this scope [INFO] [stdout] --> src/lib.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 3 | model.repeat(hexagons)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_94_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | model.repeat(hexagons)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_94_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 20) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Model` [INFO] [stdout] --> src/lib.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut model = Model::new(width, height, scale); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Model; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 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/lib.rs - (line 87) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 3 | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `squares` in this scope [INFO] [stdout] --> src/lib.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 3 | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/lib.rs:88:55 [INFO] [stdout] | [INFO] [stdout] 3 | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `fill_hexagon` in this scope [INFO] [stdout] --> src/lib.rs:88:69 [INFO] [stdout] | [INFO] [stdout] 3 | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stroke` in this scope [INFO] [stdout] --> src/lib.rs:88:83 [INFO] [stdout] | [INFO] [stdout] 3 | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:88:90 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_87_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:88:92 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let hexagons = model.add_multi(squares.clone(), 2..3, Shape::new(6, fill_hexagon, stroke)?)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_87_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 29) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 3 | let stroke = Color::new(242, 60, 60)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/lib.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 4 | let fill_hexagon = Color::new(242, 194, 106)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 6 | model.add(Shape::new(6, fill_hexagon, stroke)?); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/lib.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 6 | model.add(Shape::new(6, fill_hexagon, stroke)?); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_29_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let stroke = Color::new(242, 60, 60)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let fill_hexagon = Color::new(242, 194, 106)?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | model.add(Shape::new(6, fill_hexagon, stroke)?); [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_29_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_29_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let stroke = Color::new(242, 60, 60)?; [INFO] [stdout] 4 | | let fill_hexagon = Color::new(242, 194, 106)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | model.add(Shape::new(6, fill_hexagon, stroke)?); [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_29_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_29_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let stroke = Color::new(242, 60, 60)?; [INFO] [stdout] 4 | | let fill_hexagon = Color::new(242, 194, 106)?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | model.add(Shape::new(6, fill_hexagon, stroke)?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_29_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 38) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/lib.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 3 | let background = Color::new(242, 242, 242)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tiling::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `model` in this scope [INFO] [stdout] --> src/lib.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 8 | let render = model.render(background, margin, line_width, show_labels)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:39:43 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_38_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let background = Color::new(242, 242, 242)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let margin = 0.1; [INFO] [stdout] 5 | | let show_labels = false; [INFO] [stdout] ... | [INFO] [stdout] 9 | | render.write_to_png("output.png")?; [INFO] [stdout] 10 | | } _doctest_main_src_lib_rs_38_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:44:71 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_38_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let background = Color::new(242, 242, 242)?; [INFO] [stdout] 4 | | let margin = 0.1; [INFO] [stdout] 5 | | let show_labels = false; [INFO] [stdout] ... | [INFO] [stdout] 8 | | let render = model.render(background, margin, line_width, show_labels)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | render.write_to_png("output.png")?; [INFO] [stdout] 10 | | } _doctest_main_src_lib_rs_38_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_38_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let background = Color::new(242, 242, 242)?; [INFO] [stdout] 4 | | let margin = 0.1; [INFO] [stdout] 5 | | let show_labels = false; [INFO] [stdout] ... | [INFO] [stdout] 9 | | render.write_to_png("output.png")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_lib_rs_38_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 20) [INFO] [stdout] src/lib.rs - (line 29) [INFO] [stdout] src/lib.rs - (line 38) [INFO] [stdout] src/lib.rs - (line 50) [INFO] [stdout] src/lib.rs - (line 78) [INFO] [stdout] src/lib.rs - (line 87) [INFO] [stdout] src/lib.rs - (line 94) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "755008ae757f4c1f8d6083415255112dad25f8177fc31d12cf5fb0da077ca1b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "755008ae757f4c1f8d6083415255112dad25f8177fc31d12cf5fb0da077ca1b2", kill_on_drop: false }` [INFO] [stdout] 755008ae757f4c1f8d6083415255112dad25f8177fc31d12cf5fb0da077ca1b2