[INFO] fetching crate wfc_tiled 1.0.5... [INFO] testing wfc_tiled-1.0.5 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate wfc_tiled 1.0.5 into /workspace/builds/worker-78/source [INFO] validating manifest of crates.io crate wfc_tiled 1.0.5 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wfc_tiled 1.0.5 [INFO] finished tweaking crates.io crate wfc_tiled 1.0.5 [INFO] tweaked toml for crates.io crate wfc_tiled 1.0.5 written to /workspace/builds/worker-78/source/Cargo.toml [INFO] crate crates.io crate wfc_tiled 1.0.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80ffabc6d27f155f89bbdc2582b61095eb29b87b639a5b777e8ab6a9444bf33b [INFO] running `Command { std: "docker" "start" "-a" "80ffabc6d27f155f89bbdc2582b61095eb29b87b639a5b777e8ab6a9444bf33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80ffabc6d27f155f89bbdc2582b61095eb29b87b639a5b777e8ab6a9444bf33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80ffabc6d27f155f89bbdc2582b61095eb29b87b639a5b777e8ab6a9444bf33b", kill_on_drop: false }` [INFO] [stdout] 80ffabc6d27f155f89bbdc2582b61095eb29b87b639a5b777e8ab6a9444bf33b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26a2915d63e6531754c67ce93607edfed92e4396ed17784fe024b7c69f16506e [INFO] running `Command { std: "docker" "start" "-a" "26a2915d63e6531754c67ce93607edfed92e4396ed17784fe024b7c69f16506e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling rayon-core v1.6.1 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling coord_2d v0.2.15 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling direction v0.17.8 [INFO] [stderr] Compiling grid_2d v0.12.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling regex-automata v0.1.8 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling num_cpus v1.11.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling csv-core v0.1.6 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling crossbeam-queue v0.2.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.2 [INFO] [stderr] Compiling rayon v1.2.1 [INFO] [stderr] Compiling png v0.14.1 [INFO] [stderr] Compiling wfc v0.8.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.16 [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.3 [INFO] [stderr] Compiling bstr v0.2.8 [INFO] [stderr] Compiling ron v0.5.1 [INFO] [stderr] Compiling csv v1.1.1 [INFO] [stderr] Compiling wfc_tiled v1.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.36s [INFO] running `Command { std: "docker" "inspect" "26a2915d63e6531754c67ce93607edfed92e4396ed17784fe024b7c69f16506e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26a2915d63e6531754c67ce93607edfed92e4396ed17784fe024b7c69f16506e", kill_on_drop: false }` [INFO] [stdout] 26a2915d63e6531754c67ce93607edfed92e4396ed17784fe024b7c69f16506e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69b8314355dcdad5f8a39afeaed769566d99c916b0d54685b70c4b7cf4d6985f [INFO] running `Command { std: "docker" "start" "-a" "69b8314355dcdad5f8a39afeaed769566d99c916b0d54685b70c4b7cf4d6985f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling wfc_tiled v1.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.67s [INFO] running `Command { std: "docker" "inspect" "69b8314355dcdad5f8a39afeaed769566d99c916b0d54685b70c4b7cf4d6985f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69b8314355dcdad5f8a39afeaed769566d99c916b0d54685b70c4b7cf4d6985f", kill_on_drop: false }` [INFO] [stdout] 69b8314355dcdad5f8a39afeaed769566d99c916b0d54685b70c4b7cf4d6985f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ec659eec5e603df0fa1f003a0a6c54631cffd3bcffc7f78c273882d18d42a946 [INFO] running `Command { std: "docker" "start" "-a" "ec659eec5e603df0fa1f003a0a6c54631cffd3bcffc7f78c273882d18d42a946", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/wfc_tiled-bac9ca12980ef482) [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 wfc_tiled [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/save_image.rs - save_image::grid_to_image (line 28) ... FAILED [INFO] [stdout] test src/forbid_corner.rs - forbid_corner::ForceBorderForbid (line 18) ... FAILED [INFO] [stdout] test src/save_tiled.rs - save_tiled::grid_to_tiled (line 51) ... FAILED [INFO] [stdout] test src/save_csv.rs - save_csv::grid_to_csv (line 19) ... FAILED [INFO] [stdout] test src/tile_pattern.rs - tile_pattern::TilePattern (line 33) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/save_image.rs - save_image::grid_to_image (line 28) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `grid` in this scope [INFO] [stdout] --> src/save_image.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 6 | let img = grid_to_image(&grid); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/forbid_corner.rs - forbid_corner::ForceBorderForbid (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Orientation` [INFO] [stdout] --> src/forbid_corner.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 5 | &[Orientation::Original]).expect("Error while creating pattern"); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Orientation` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TilePattern` [INFO] [stdout] --> src/forbid_corner.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 3 | let pattern = TilePattern::from_csv(input_path, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::TilePattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `input_path` in this scope [INFO] [stdout] --> src/forbid_corner.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 3 | let pattern = TilePattern::from_csv(input_path, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NonZeroU32` [INFO] [stdout] --> src/forbid_corner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 4 | NonZeroU32::new(pattern_size).unwrap(), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use core::num::NonZeroU32; [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::NonZeroU32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pattern_size` in this scope [INFO] [stdout] --> src/forbid_corner.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 4 | NonZeroU32::new(pattern_size).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ForceBorderForbid` [INFO] [stdout] --> src/forbid_corner.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 7 | let forbid = ForceBorderForbid::new(&pattern, pattern_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::ForceBorderForbid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pattern_size` in this scope [INFO] [stdout] --> src/forbid_corner.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 7 | let forbid = ForceBorderForbid::new(&pattern, pattern_size); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output_size` in this scope [INFO] [stdout] --> src/forbid_corner.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 8 | let grid = pattern.run_collapse(output_size, attempts, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `attempts` in this scope [INFO] [stdout] --> src/forbid_corner.rs:24:46 [INFO] [stdout] | [INFO] [stdout] 8 | let grid = pattern.run_collapse(output_size, attempts, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WrapXY` in this scope [INFO] [stdout] --> src/forbid_corner.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 9 | WrapXY, forbid, &mut rand::thread_rng()).expect("Error in WFC"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::wrap::WrapXY; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::WrapXY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 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/save_tiled.rs - save_tiled::grid_to_tiled (line 51) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TileSet` in this scope [INFO] [stdout] --> src/save_tiled.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 5 | let tset = TileSet { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use wfc_tiled::TileSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/save_tiled.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 7 | image_size: Size::new(256, 1450), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 7 | image_size: Sized::new(256, 1450), [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use coord_2d::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use grid_2d::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use wfc::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use wfc_tiled::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/save_tiled.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 10 | tile_size: Size::new(32, 32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 | tile_size: Sized::new(32, 32) [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use coord_2d::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use grid_2d::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use wfc::Size; [INFO] [stdout] | [INFO] [stdout] 3 | use wfc_tiled::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `grid` in this scope [INFO] [stdout] --> src/save_tiled.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 12 | grid_to_tiled(&grid, "output.tmx", tset)?; [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/save_tiled.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_save_tiled_rs_51_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use wfc_tiled::grid_to_tiled; [INFO] [stdout] 5 | | let tset = TileSet { [INFO] [stdout] 6 | | image_path: "examples\\tset.png", // tile set sprite sheet [INFO] [stdout] ... | [INFO] [stdout] 12 | | grid_to_tiled(&grid, "output.tmx", tset)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_save_tiled_rs_51_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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/save_csv.rs - save_csv::grid_to_csv (line 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `grid` in this scope [INFO] [stdout] --> src/save_csv.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 6 | grid_to_csv(&grid, "output.csv")?; [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/save_csv.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_save_csv_rs_19_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use wfc_tiled::grid_to_csv; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | grid_to_csv(&grid, "output.csv")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_save_csv_rs_19_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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/tile_pattern.rs - tile_pattern::TilePattern (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Orientation` [INFO] [stdout] --> src/tile_pattern.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 11 | &[Orientation::Original]) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Orientation` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/tile_pattern.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 7 | let output_size = Size::new(32, 32); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 7 | let output_size = Sized::new(32, 32); [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use coord_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use grid_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TilePattern` [INFO] [stdout] --> src/tile_pattern.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 9 | let pattern = TilePattern::from_csv(input_path, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::TilePattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WrapXY` in this scope [INFO] [stdout] --> src/tile_pattern.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 16 | WrapXY, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::wrap::WrapXY; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::WrapXY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ForbidNothing` in this scope [INFO] [stdout] --> src/tile_pattern.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 17 | ForbidNothing, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::ForbidNothing; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::ForbidNothing; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `grid_to_csv` in this scope [INFO] [stdout] --> src/tile_pattern.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 21 | grid_to_csv(&grid, "out.csv")?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::grid_to_csv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TileSet` in this scope [INFO] [stdout] --> src/tile_pattern.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 23 | let tset = TileSet { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::TileSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/tile_pattern.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 25 | image_size: Size::new(256, 1450), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 25 | image_size: Sized::new(256, 1450), [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use coord_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use grid_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/tile_pattern.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 28 | tile_size: Size::new(32, 32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 28 | tile_size: Sized::new(32, 32) [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use coord_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use grid_2d::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc::Size; [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `grid_to_tiled` in this scope [INFO] [stdout] --> src/tile_pattern.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 30 | grid_to_tiled(&grid, "out.tmx", tset)?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use wfc_tiled::grid_to_tiled; [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/tile_pattern.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_tile_pattern_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let input_path = "example\\input.csv"; [INFO] [stdout] 4 | | let tilesheet_path = "example\\tset.png"; [INFO] [stdout] 5 | | let attempts = 1000; [INFO] [stdout] ... | [INFO] [stdout] 21 | | grid_to_csv(&grid, "out.csv")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 30 | | grid_to_tiled(&grid, "out.tmx", tset)?; [INFO] [stdout] 31 | | } _doctest_main_src_tile_pattern_rs_33_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] note: required by `from_residual` [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/tile_pattern.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_tile_pattern_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let input_path = "example\\input.csv"; [INFO] [stdout] 4 | | let tilesheet_path = "example\\tset.png"; [INFO] [stdout] 5 | | let attempts = 1000; [INFO] [stdout] ... | [INFO] [stdout] 30 | | grid_to_tiled(&grid, "out.tmx", tset)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 31 | | } _doctest_main_src_tile_pattern_rs_33_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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, 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/forbid_corner.rs - forbid_corner::ForceBorderForbid (line 18) [INFO] [stdout] src/save_csv.rs - save_csv::grid_to_csv (line 19) [INFO] [stdout] src/save_image.rs - save_image::grid_to_image (line 28) [INFO] [stdout] src/save_tiled.rs - save_tiled::grid_to_tiled (line 51) [INFO] [stdout] src/tile_pattern.rs - tile_pattern::TilePattern (line 33) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ec659eec5e603df0fa1f003a0a6c54631cffd3bcffc7f78c273882d18d42a946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec659eec5e603df0fa1f003a0a6c54631cffd3bcffc7f78c273882d18d42a946", kill_on_drop: false }` [INFO] [stdout] ec659eec5e603df0fa1f003a0a6c54631cffd3bcffc7f78c273882d18d42a946