[INFO] cloning repository https://github.com/goweiwen/azul [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/goweiwen/azul" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoweiwen%2Fazul", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoweiwen%2Fazul'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 674a138000862aa71408f562c951b31ef3d0a01b [INFO] checking goweiwen/azul against master#e1ac0fa95ba15221ee195647cb12464df3164513 for pr-126090 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoweiwen%2Fazul" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goweiwen/azul on toolchain e1ac0fa95ba15221ee195647cb12464df3164513 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goweiwen/azul [INFO] finished tweaking git repo https://github.com/goweiwen/azul [INFO] tweaked toml for git repo https://github.com/goweiwen/azul written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/goweiwen/azul 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" "+e1ac0fa95ba15221ee195647cb12464df3164513" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking goweiwen/azul against try#09fa13185567a1d9c37905d6a4a2ea56e7f44efc for pr-126090 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoweiwen%2Fazul" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goweiwen/azul on toolchain 09fa13185567a1d9c37905d6a4a2ea56e7f44efc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goweiwen/azul [INFO] finished tweaking git repo https://github.com/goweiwen/azul [INFO] tweaked toml for git repo https://github.com/goweiwen/azul written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/goweiwen/azul 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" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking goweiwen/azul against try#09fa13185567a1d9c37905d6a4a2ea56e7f44efc for pr-126090 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoweiwen%2Fazul" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goweiwen/azul on toolchain 09fa13185567a1d9c37905d6a4a2ea56e7f44efc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goweiwen/azul [INFO] finished tweaking git repo https://github.com/goweiwen/azul [INFO] tweaked toml for git repo https://github.com/goweiwen/azul written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/goweiwen/azul 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" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d05bfd61909b4200d099f47e4d96282ffa434e2e032c837c5446b9f266b994d [INFO] running `Command { std: "docker" "start" "-a" "5d05bfd61909b4200d099f47e4d96282ffa434e2e032c837c5446b9f266b994d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d05bfd61909b4200d099f47e4d96282ffa434e2e032c837c5446b9f266b994d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d05bfd61909b4200d099f47e4d96282ffa434e2e032c837c5446b9f266b994d", kill_on_drop: false }` [INFO] [stdout] 5d05bfd61909b4200d099f47e4d96282ffa434e2e032c837c5446b9f266b994d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 537f87902d718988b987c38bbd0edcddf7b6f5e7f6b68f63964253cf5d1fcc37 [INFO] running `Command { std: "docker" "start" "-a" "537f87902d718988b987c38bbd0edcddf7b6f5e7f6b68f63964253cf5d1fcc37", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking azul v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `strum_macros` [INFO] [stdout] --> src/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `strum_macros` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `strum_macros` [INFO] [stdout] --> src/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `strum_macros` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `shuffle` in crate `rand` [INFO] [stdout] --> src/types.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 80 | rand::shuffle(&mut self.0, rng); [INFO] [stdout] | ^^^^^^^ not found in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OVERFLOW_CUMMULATIVE_COST` in this scope [INFO] [stdout] --> src/types.rs:126:54 [INFO] [stdout] | [INFO] [stdout] 12 | const OVERFLOW_CUMULATIVE_COST: [u32; 7] = { [INFO] [stdout] | ------------------------------------------ similarly named constant `OVERFLOW_CUMULATIVE_COST` defined here [INFO] [stdout] ... [INFO] [stdout] 126 | "overflow exceeded maximum of {} tiles", OVERFLOW_CUMMULATIVE_COST.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `OVERFLOW_CUMULATIVE_COST` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/types.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/types.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{bail, Context, ensure, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:42 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:50 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: an array of type `[u32; 7]` cannot be built directly from an iterator [INFO] [stdout] --> src/types.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | }).collect() [INFO] [stdout] | ^^^^^^^ try collecting into a `Vec`, then using `.try_into()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator` is not implemented for `[u32; 7]` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/types.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | OVERFLOW_COST.iter().scan(0, |acc, &x| { [INFO] [stdout] | _____-------------_------_^ [INFO] [stdout] | | | | [INFO] [stdout] | | | `Iterator::Item` is `&u32` here [INFO] [stdout] | | this expression has type `[u32; 7]` [INFO] [stdout] 14 | | *acc = *acc + x; [INFO] [stdout] 15 | | Some(*acc) [INFO] [stdout] 16 | | }).collect() [INFO] [stdout] | |______^ `Iterator::Item` changed to `u32` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/09fa13185567a1d9c37905d6a4a2ea56e7f44efc/library/core/src/iter/traits/iterator.rs:2001:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `shuffle` in crate `rand` [INFO] [stdout] --> src/types.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 80 | rand::shuffle(&mut self.0, rng); [INFO] [stdout] | ^^^^^^^ not found in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OVERFLOW_CUMMULATIVE_COST` in this scope [INFO] [stdout] --> src/types.rs:126:54 [INFO] [stdout] | [INFO] [stdout] 12 | const OVERFLOW_CUMULATIVE_COST: [u32; 7] = { [INFO] [stdout] | ------------------------------------------ similarly named constant `OVERFLOW_CUMULATIVE_COST` defined here [INFO] [stdout] ... [INFO] [stdout] 126 | "overflow exceeded maximum of {} tiles", OVERFLOW_CUMMULATIVE_COST.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `OVERFLOW_CUMULATIVE_COST` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/types.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/types.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{bail, Context, ensure, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:42 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:50 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/types.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | const OVERFLOW_COST: [u32; 7] = [-1, -1, -2, -2, -2, -3, -3]; [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | f.write_str(self.0.iter().map(ToString::to_string).join()) [INFO] [stdout] | ------ ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: an array of type `[u32; 7]` cannot be built directly from an iterator [INFO] [stdout] --> src/types.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | }).collect() [INFO] [stdout] | ^^^^^^^ try collecting into a `Vec`, then using `.try_into()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator` is not implemented for `[u32; 7]` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/types.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | OVERFLOW_COST.iter().scan(0, |acc, &x| { [INFO] [stdout] | _____-------------_------_^ [INFO] [stdout] | | | | [INFO] [stdout] | | | `Iterator::Item` is `&u32` here [INFO] [stdout] | | this expression has type `[u32; 7]` [INFO] [stdout] 14 | | *acc = *acc + x; [INFO] [stdout] 15 | | Some(*acc) [INFO] [stdout] 16 | | }).collect() [INFO] [stdout] | |______^ `Iterator::Item` changed to `u32` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/09fa13185567a1d9c37905d6a4a2ea56e7f44efc/library/core/src/iter/traits/iterator.rs:2001:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect` found for enum `Result, anyhow::Error>` in the current scope [INFO] [stdout] --> src/types.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | self.0 = bag.take(4).collect(); [INFO] [stdout] | ^^^^^^^ `Result, anyhow::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 71 | self.0 = bag.take(4).into_iter().collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:101:67 [INFO] [stdout] | [INFO] [stdout] 101 | f.write_str(self.0[i].iter().map(ToString::to_string).join())?; [INFO] [stdout] | --------- ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:114:67 [INFO] [stdout] | [INFO] [stdout] 114 | f.write_str(self.0[i].iter().map(ToString::to_string).join())?; [INFO] [stdout] | --------- ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | f.write_str(self.0.iter().map(ToString::to_string).join()) [INFO] [stdout] | ------ ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `PatternLines` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 142 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 147 | pattern_lines: PatternLines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PatternLines` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `PatternLines` [INFO] [stdout] = note: add `#[derive(Debug)]` to `PatternLines` or manually `impl Debug for PatternLines` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `PatternLines` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 107 + #[derive(Debug)] [INFO] [stdout] 108 | pub struct PatternLines(Vec>); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PatternLines: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 142 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 147 | pattern_lines: PatternLines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `PatternLines` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `PatternLines` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 107 + #[derive(Clone)] [INFO] [stdout] 108 | pub struct PatternLines(Vec>); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `Wall` in the current scope [INFO] [stdout] --> src/types.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Wall([[Tile; 5]; 5]); [INFO] [stdout] | --------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 156 | wall: Wall::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `Wall` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `PatternLines` in the current scope [INFO] [stdout] --> src/types.rs:157:42 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct PatternLines(Vec>); [INFO] [stdout] | ----------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 157 | pattern_lines: PatternLines::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `PatternLines` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `FloorLine` in the current scope [INFO] [stdout] --> src/types.rs:158:36 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct FloorLine(Vec); [INFO] [stdout] | -------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 158 | floor_line: FloorLine::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `FloorLine` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | f.write_str(self.0.iter().map(ToString::to_string).join()) [INFO] [stdout] | ------ ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Bag` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 164 | pub struct Game { [INFO] [stdout] 165 | bag: Bag, [INFO] [stdout] | ^^^^^^^^ `Bag` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Bag` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Bag` or manually `impl Debug for Bag` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Bag` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 76 + #[derive(Debug)] [INFO] [stdout] 77 | pub struct Bag(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Factory` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 167 | factories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Factory` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Factory`, which is required by `Vec: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Factory` or manually `impl Debug for Factory` [INFO] [stdout] = help: the trait `Debug` is implemented for `Vec` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Factory` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 61 + #[derive(Debug)] [INFO] [stdout] 62 | pub struct Factory(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect` found for enum `Result, anyhow::Error>` in the current scope [INFO] [stdout] --> src/types.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | self.0 = bag.take(4).collect(); [INFO] [stdout] | ^^^^^^^ `Result, anyhow::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 71 | self.0 = bag.take(4).into_iter().collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Bag: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 164 | pub struct Game { [INFO] [stdout] 165 | bag: Bag, [INFO] [stdout] | ^^^^^^^^ the trait `Clone` is not implemented for `Bag` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Bag` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 76 + #[derive(Clone)] [INFO] [stdout] 77 | pub struct Bag(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Factory: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 167 | factories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `Factory`, which is required by `Vec: Clone` [INFO] [stdout] | [INFO] [stdout] = note: required for `Vec` to implement `Clone` [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Factory` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 61 + #[derive(Clone)] [INFO] [stdout] 62 | pub struct Factory(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 172 | fn new(players: u32) -> Self { [INFO] [stdout] | ---- expected `Game` because of return type [INFO] [stdout] 173 | ensure!(players <= 4, "maximum of 4 players"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Game`, found `Result<_, Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Game` [INFO] [stdout] found enum `Result<_, anyhow::Error>` [INFO] [stdout] = note: this error originates in the macro `$crate::__fallback_ensure` which comes from the expansion of the macro `ensure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:101:67 [INFO] [stdout] | [INFO] [stdout] 101 | f.write_str(self.0[i].iter().map(ToString::to_string).join())?; [INFO] [stdout] | --------- ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `PlayerColor` in the current scope [INFO] [stdout] --> src/types.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum PlayerColor { [INFO] [stdout] | -------------------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 174 | let players = PlayerColor::iter().take(players as usize).map(|color| Player::new(color)); [INFO] [stdout] | ^^^^ variant or associated item not found in `PlayerColor` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoEnumIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `std::ops::Range` in the current scope [INFO] [stdout] --> src/types.rs:175:53 [INFO] [stdout] | [INFO] [stdout] 175 | let factories = (0..FACTORY_COUNT[players]).iter().map(|| Factory::new()).collect(); [INFO] [stdout] | ----------------------------^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `std::ops::Range<{integer}>::iter()` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `IntoEnumIterator` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/strum-0.24.1/src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | fn iter() -> Self::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `filter` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/09fa13185567a1d9c37905d6a4a2ea56e7f44efc/library/core/src/iter/traits/iterator.rs:884:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:114:67 [INFO] [stdout] | [INFO] [stdout] 114 | f.write_str(self.0[i].iter().map(ToString::to_string).join())?; [INFO] [stdout] | --------- ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Factory` in the current scope [INFO] [stdout] --> src/types.rs:175:76 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Factory(Vec); [INFO] [stdout] | ------------------ function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 175 | let factories = (0..FACTORY_COUNT[players]).iter().map(|| Factory::new()).collect(); [INFO] [stdout] | ^^^ function or associated item not found in `Factory` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Bag` in the current scope [INFO] [stdout] --> src/types.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Bag(Vec); [INFO] [stdout] | -------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 177 | bag: Bag::new(), [INFO] [stdout] | ^^^ function or associated item not found in `Bag` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/types.rs:185:81 [INFO] [stdout] | [INFO] [stdout] 185 | self.factories.iter_mut().for_each(|factory| factory.fill(&mut self.bag)?); [INFO] [stdout] | --------- ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] | | [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] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> src/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `Map` in the current scope [INFO] [stdout] --> src/types.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | f.write_str(self.0.iter().map(ToString::to_string).join()) [INFO] [stdout] | ------ ^^^^ method not found in `Map, fn(&Tile) -> String {::to_string}>` [INFO] [stdout] | | [INFO] [stdout] | method `join` is available on `&[Tile]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `PatternLines` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 142 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 147 | pattern_lines: PatternLines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PatternLines` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `PatternLines` [INFO] [stdout] = note: add `#[derive(Debug)]` to `PatternLines` or manually `impl Debug for PatternLines` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `PatternLines` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 107 + #[derive(Debug)] [INFO] [stdout] 108 | pub struct PatternLines(Vec>); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PatternLines: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 142 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 147 | pattern_lines: PatternLines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `PatternLines` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `PatternLines` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 107 + #[derive(Clone)] [INFO] [stdout] 108 | pub struct PatternLines(Vec>); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 32 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0599, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `Wall` in the current scope [INFO] [stdout] --> src/types.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Wall([[Tile; 5]; 5]); [INFO] [stdout] | --------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 156 | wall: Wall::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `Wall` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `PatternLines` in the current scope [INFO] [stdout] --> src/types.rs:157:42 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct PatternLines(Vec>); [INFO] [stdout] | ----------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 157 | pattern_lines: PatternLines::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `PatternLines` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `FloorLine` in the current scope [INFO] [stdout] --> src/types.rs:158:36 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct FloorLine(Vec); [INFO] [stdout] | -------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 158 | floor_line: FloorLine::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `FloorLine` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Bag` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 164 | pub struct Game { [INFO] [stdout] 165 | bag: Bag, [INFO] [stdout] | ^^^^^^^^ `Bag` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Bag` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Bag` or manually `impl Debug for Bag` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Bag` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 76 + #[derive(Debug)] [INFO] [stdout] 77 | pub struct Bag(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `azul` (bin "azul" test) due to 33 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `Factory` doesn't implement `Debug` [INFO] [stdout] --> src/types.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 167 | factories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Factory` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Factory`, which is required by `Vec: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Factory` or manually `impl Debug for Factory` [INFO] [stdout] = help: the trait `Debug` is implemented for `Vec` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Factory` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 61 + #[derive(Debug)] [INFO] [stdout] 62 | pub struct Factory(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Bag: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 164 | pub struct Game { [INFO] [stdout] 165 | bag: Bag, [INFO] [stdout] | ^^^^^^^^ the trait `Clone` is not implemented for `Bag` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Bag` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 76 + #[derive(Clone)] [INFO] [stdout] 77 | pub struct Bag(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Factory: Clone` is not satisfied [INFO] [stdout] --> src/types.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 163 | #[derive(Debug, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 167 | factories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `Factory`, which is required by `Vec: Clone` [INFO] [stdout] | [INFO] [stdout] = note: required for `Vec` to implement `Clone` [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Factory` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 61 + #[derive(Clone)] [INFO] [stdout] 62 | pub struct Factory(Vec); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 172 | fn new(players: u32) -> Self { [INFO] [stdout] | ---- expected `Game` because of return type [INFO] [stdout] 173 | ensure!(players <= 4, "maximum of 4 players"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Game`, found `Result<_, Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Game` [INFO] [stdout] found enum `Result<_, anyhow::Error>` [INFO] [stdout] = note: this error originates in the macro `$crate::__fallback_ensure` which comes from the expansion of the macro `ensure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `PlayerColor` in the current scope [INFO] [stdout] --> src/types.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum PlayerColor { [INFO] [stdout] | -------------------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 174 | let players = PlayerColor::iter().take(players as usize).map(|color| Player::new(color)); [INFO] [stdout] | ^^^^ variant or associated item not found in `PlayerColor` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoEnumIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `std::ops::Range` in the current scope [INFO] [stdout] --> src/types.rs:175:53 [INFO] [stdout] | [INFO] [stdout] 175 | let factories = (0..FACTORY_COUNT[players]).iter().map(|| Factory::new()).collect(); [INFO] [stdout] | ----------------------------^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `std::ops::Range<{integer}>::iter()` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `IntoEnumIterator` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/strum-0.24.1/src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | fn iter() -> Self::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `filter` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/09fa13185567a1d9c37905d6a4a2ea56e7f44efc/library/core/src/iter/traits/iterator.rs:884:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Factory` in the current scope [INFO] [stdout] --> src/types.rs:175:76 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Factory(Vec); [INFO] [stdout] | ------------------ function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 175 | let factories = (0..FACTORY_COUNT[players]).iter().map(|| Factory::new()).collect(); [INFO] [stdout] | ^^^ function or associated item not found in `Factory` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Bag` in the current scope [INFO] [stdout] --> src/types.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Bag(Vec); [INFO] [stdout] | -------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 177 | bag: Bag::new(), [INFO] [stdout] | ^^^ function or associated item not found in `Bag` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `UniformSampler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/types.rs:185:81 [INFO] [stdout] | [INFO] [stdout] 185 | self.factories.iter_mut().for_each(|factory| factory.fill(&mut self.bag)?); [INFO] [stdout] | --------- ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] | | [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] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> src/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 32 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0599, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `azul` (bin "azul") due to 33 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "537f87902d718988b987c38bbd0edcddf7b6f5e7f6b68f63964253cf5d1fcc37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "537f87902d718988b987c38bbd0edcddf7b6f5e7f6b68f63964253cf5d1fcc37", kill_on_drop: false }` [INFO] [stdout] 537f87902d718988b987c38bbd0edcddf7b6f5e7f6b68f63964253cf5d1fcc37