[INFO] cloning repository https://github.com/PiotrAleksander/roguelike-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PiotrAleksander/roguelike-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPiotrAleksander%2Froguelike-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPiotrAleksander%2Froguelike-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 662cc7e3d7d4b66d5e6761826f672eee8b0b5148 [INFO] checking PiotrAleksander/roguelike-template/662cc7e3d7d4b66d5e6761826f672eee8b0b5148 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPiotrAleksander%2Froguelike-template" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PiotrAleksander/roguelike-template on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PiotrAleksander/roguelike-template [INFO] finished tweaking git repo https://github.com/PiotrAleksander/roguelike-template [INFO] tweaked toml for git repo https://github.com/PiotrAleksander/roguelike-template written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/PiotrAleksander/roguelike-template 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v0.1.1 [INFO] [stderr] Downloaded tcod v0.15.0 [INFO] [stderr] Downloaded tcod-sys v5.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2da4c2279b8524ea9ed443a498048fad00fb0778eb6e282343a00097ae73d878 [INFO] running `Command { std: "docker" "start" "-a" "2da4c2279b8524ea9ed443a498048fad00fb0778eb6e282343a00097ae73d878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2da4c2279b8524ea9ed443a498048fad00fb0778eb6e282343a00097ae73d878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2da4c2279b8524ea9ed443a498048fad00fb0778eb6e282343a00097ae73d878", kill_on_drop: false }` [INFO] [stdout] 2da4c2279b8524ea9ed443a498048fad00fb0778eb6e282343a00097ae73d878 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78498a80a6f9994a8407f7b6f97a02f7e1a4702f7e72e7897a0461348c9081aa [INFO] running `Command { std: "docker" "start" "-a" "78498a80a6f9994a8407f7b6f97a02f7e1a4702f7e72e7897a0461348c9081aa", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Checking bitflags v0.1.1 [INFO] [stderr] Checking lazy_static v0.1.16 [INFO] [stderr] Compiling tcod-sys v5.0.1 [INFO] [stderr] Checking tcod v0.15.0 [INFO] [stderr] Checking roguelike v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `:` [INFO] [stdout] --> src/main.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | let num_monsters = rand: :thread_rng().gen_range(0, MAX_ROOMS_MONSTERS + 1); [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `:` [INFO] [stdout] --> src/main.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | let num_monsters = rand: :thread_rng().gen_range(0, MAX_ROOMS_MONSTERS + 1); [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: type ascription syntax has been removed, see issue #101728 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a pattern, found an expression [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut objects + vec![player]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ arbitrary expressions are not allowed in patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a pattern, found an expression [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut objects + vec![player]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ arbitrary expressions are not allowed in patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `mut` must be followed by a named binding [INFO] [stdout] --> src/main.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut objects + vec![player]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `mut` may be followed by `variable` and `variable @ pattern` [INFO] [stdout] help: remove the `mut` prefix [INFO] [stdout] | [INFO] [stdout] 186 - let mut objects + vec![player]; [INFO] [stdout] 186 + let objects + vec![player]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `mut` must be followed by a named binding [INFO] [stdout] --> src/main.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let mut objects + vec![player]; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `mut` may be followed by `variable` and `variable @ pattern` [INFO] [stdout] help: remove the `mut` prefix [INFO] [stdout] | [INFO] [stdout] 186 - let mut objects + vec![player]; [INFO] [stdout] 186 + let objects + vec![player]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `[`, or `{`, found `is_blocked` [INFO] [stdout] --> src/main.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | id !is_blocked(x + dx, y + dy, map, objects) { [INFO] [stdout] | ^^^^^^^^^^ expected one of `(`, `[`, or `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `[`, or `{`, found `is_blocked` [INFO] [stdout] --> src/main.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | id !is_blocked(x + dx, y + dy, map, objects) { [INFO] [stdout] | ^^^^^^^^^^ expected one of `(`, `[`, or `{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `root` in this scope [INFO] [stdout] --> src/main.rs:317:30 [INFO] [stdout] | [INFO] [stdout] 317 | let fullscreen = root.is_fullscreen(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `root` in this scope [INFO] [stdout] --> src/main.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | root.set_fullscreen(!fullscreen); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `root` in this scope [INFO] [stdout] --> src/main.rs:317:30 [INFO] [stdout] | [INFO] [stdout] 317 | let fullscreen = root.is_fullscreen(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `root` in this scope [INFO] [stdout] --> src/main.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | root.set_fullscreen(!fullscreen); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 6 arguments were supplied [INFO] [stdout] --> src/main.rs:187:22 [INFO] [stdout] | [INFO] [stdout] 187 | let mut player = Object::new(0, 0, '@', "player", WHITE, true); [INFO] [stdout] | ^^^^^^^^^^^ -------- ---- unexpected argument #6 of type `bool` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #4 of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/main.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(x: i32, y: i32, char: char, color: Color) -> Self { [INFO] [stdout] | ^^^ ------ ------ ---------- ------------ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 187 - let mut player = Object::new(0, 0, '@', "player", WHITE, true); [INFO] [stdout] 187 + let mut player = Object::new(0, 0, '@', WHITE); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 6 arguments were supplied [INFO] [stdout] --> src/main.rs:187:22 [INFO] [stdout] | [INFO] [stdout] 187 | let mut player = Object::new(0, 0, '@', "player", WHITE, true); [INFO] [stdout] | ^^^^^^^^^^^ -------- ---- unexpected argument #6 of type `bool` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #4 of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/main.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(x: i32, y: i32, char: char, color: Color) -> Self { [INFO] [stdout] | ^^^ ------ ------ ---------- ------------ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 187 - let mut player = Object::new(0, 0, '@', "player", WHITE, true); [INFO] [stdout] 187 + let mut player = Object::new(0, 0, '@', WHITE); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `alive` on type `Object` [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | player.alive = true; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `alive` on type `Object` [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | player.alive = true; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | let w = rand::thread_rng().gen_range(ROOM_MIN_SIZE, ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | let w = rand::thread_rng().gen_range(ROOM_MIN_SIZE, ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let h = rand::thread_rng().gen_range(ROOM_MIN_SIZE, ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | let x = rand::thread_rng().gen_range(0, MAP_WIDTH - w); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let h = rand::thread_rng().gen_range(ROOM_MIN_SIZE, ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | let x = rand::thread_rng().gen_range(0, MAP_WIDTH - w); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | let y = rand::thread_rng().gen_range(0, MAP_HEIGHT - h); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | let y = rand::thread_rng().gen_range(0, MAP_HEIGHT - h); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `&mut Object` [INFO] [stdout] --> src/main.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | objects[PLAYER].set_pos(new_x, new_y); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `&mut Object` [INFO] [stdout] --> src/main.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | objects[PLAYER].set_pos(new_x, new_y); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:213:20 [INFO] [stdout] | [INFO] [stdout] 213 | if rand::random() { [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/main.rs:213:20 [INFO] [stdout] | [INFO] [stdout] 213 | if rand::random() { [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 294 | (Key { code: Up, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 298 | (Key { code: Down, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 302 | (Key { code: Left, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 306 | (Key { code: Right, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 294 | (Key { code: Up, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 298 | (Key { code: Down, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 302 | (Key { code: Left, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 285 | match key { [INFO] [stdout] | --- this expression has type `tcod::input::Key` [INFO] [stdout] ... [INFO] [stdout] 306 | (Key { code: Right, .. }, _, true) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Key`, found `(_, _, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tcod::input::Key` [INFO] [stdout] found tuple `(_, _, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 296 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 296 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 300 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 300 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 304 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 304 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 296 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 296 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 300 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 300 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 308 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 308 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 304 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 304 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 319 | | DidntTakeTurn [INFO] [stdout] | | ^^^^^^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 319 | return DidntTakeTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `alive` on type `Object` [INFO] [stdout] --> src/main.rs:323:40 [INFO] [stdout] | [INFO] [stdout] 323 | let player_alive = objects[PLAYER].alive; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 308 | | TookTurn [INFO] [stdout] | | ^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 308 | return TookTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 324 | / match (key, key.text(), player_alive) { [INFO] [stdout] 325 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 326 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 280 | fn handle_keys(tcod: &mut Tcod, game: &Game, objects: &mut Vec) -> PlayerAction { [INFO] [stdout] | ------------ expected `PlayerAction` because of return type [INFO] [stdout] ... [INFO] [stdout] 326 | false [INFO] [stdout] | ^^^^^ expected `PlayerAction`, found `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 285 | / match key { [INFO] [stdout] 286 | | Key { [INFO] [stdout] 287 | | code: Enter, [INFO] [stdout] 288 | | alt: true, [INFO] [stdout] ... | [INFO] [stdout] 319 | | DidntTakeTurn [INFO] [stdout] | | ^^^^^^^^^^^^^ expected `()`, found `PlayerAction` [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 319 | return DidntTakeTurn [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `alive` on type `Object` [INFO] [stdout] --> src/main.rs:323:40 [INFO] [stdout] | [INFO] [stdout] 323 | let player_alive = objects[PLAYER].alive; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 324 | / match (key, key.text(), player_alive) { [INFO] [stdout] 325 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 326 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 280 | fn handle_keys(tcod: &mut Tcod, game: &Game, objects: &mut Vec) -> PlayerAction { [INFO] [stdout] | ------------ expected `PlayerAction` because of return type [INFO] [stdout] ... [INFO] [stdout] 326 | false [INFO] [stdout] | ^^^^^ expected `PlayerAction`, found `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pos` found for struct `Object` in the current scope [INFO] [stdout] --> src/main.rs:330:30 [INFO] [stdout] | [INFO] [stdout] 115 | struct Object { [INFO] [stdout] | ------------- method `pos` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 330 | let (x, y) = objects[id].pos(); [INFO] [stdout] | ^^^ method not found in `Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pos` found for struct `Object` in the current scope [INFO] [stdout] --> src/main.rs:330:30 [INFO] [stdout] | [INFO] [stdout] 115 | struct Object { [INFO] [stdout] | ------------- method `pos` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 330 | let (x, y) = objects[id].pos(); [INFO] [stdout] | ^^^ method not found in `Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pos` found for reference `&Object` in the current scope [INFO] [stdout] --> src/main.rs:347:61 [INFO] [stdout] | [INFO] [stdout] 347 | let target_id = objects.iter().position(|object| object.pos() == (x, y)); [INFO] [stdout] | ^^^ method not found in `&Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pos` found for reference `&Object` in the current scope [INFO] [stdout] --> src/main.rs:347:61 [INFO] [stdout] | [INFO] [stdout] 347 | let target_id = objects.iter().position(|object| object.pos() == (x, y)); [INFO] [stdout] | ^^^ method not found in `&Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `name` on type `Object` [INFO] [stdout] --> src/main.rs:353:36 [INFO] [stdout] | [INFO] [stdout] 353 | objects[target_id].name [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `name` on type `Object` [INFO] [stdout] --> src/main.rs:353:36 [INFO] [stdout] | [INFO] [stdout] 353 | objects[target_id].name [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `x`, `y`, `char`, `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:411:50 [INFO] [stdout] | [INFO] [stdout] 411 | let exit = handle_keys(&mut tcod, &game, player); [INFO] [stdout] | ----------- ^^^^^^ expected `&mut Vec`, found `&mut Object` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Object` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:280:4 [INFO] [stdout] | [INFO] [stdout] 280 | fn handle_keys(tcod: &mut Tcod, game: &Game, objects: &mut Vec) -> PlayerAction { [INFO] [stdout] | ^^^^^^^^^^^ ------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | if exit { [INFO] [stdout] | ^^^^ expected `bool`, found `PlayerAction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:411:50 [INFO] [stdout] | [INFO] [stdout] 411 | let exit = handle_keys(&mut tcod, &game, player); [INFO] [stdout] | ----------- ^^^^^^ expected `&mut Vec`, found `&mut Object` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Object` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:280:4 [INFO] [stdout] | [INFO] [stdout] 280 | fn handle_keys(tcod: &mut Tcod, game: &Game, objects: &mut Vec) -> PlayerAction { [INFO] [stdout] | ^^^^^^^^^^^ ------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | if exit { [INFO] [stdout] | ^^^^ expected `bool`, found `PlayerAction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0432, E0433, E0599, E0608, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0432, E0433, E0599, E0608, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `roguelike` (bin "roguelike") due to 32 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `roguelike` (bin "roguelike" test) due to 32 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "78498a80a6f9994a8407f7b6f97a02f7e1a4702f7e72e7897a0461348c9081aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78498a80a6f9994a8407f7b6f97a02f7e1a4702f7e72e7897a0461348c9081aa", kill_on_drop: false }` [INFO] [stdout] 78498a80a6f9994a8407f7b6f97a02f7e1a4702f7e72e7897a0461348c9081aa