[INFO] cloning repository https://github.com/psyomn/wasteland [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psyomn/wasteland" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsyomn%2Fwasteland", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsyomn%2Fwasteland'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eced94e74eafc476d387dbb8ab3c3503f0438fd1 [INFO] testing psyomn/wasteland/eced94e74eafc476d387dbb8ab3c3503f0438fd1 against master#595316b4006932405a63862d8fe65f71a6356293 for pr-128254 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsyomn%2Fwasteland" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psyomn/wasteland on toolchain 595316b4006932405a63862d8fe65f71a6356293 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+595316b4006932405a63862d8fe65f71a6356293" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psyomn/wasteland [INFO] finished tweaking git repo https://github.com/psyomn/wasteland [INFO] tweaked toml for git repo https://github.com/psyomn/wasteland written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/psyomn/wasteland 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" "+595316b4006932405a63862d8fe65f71a6356293" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `src/main.rs` was erroneously implicitly accepted for binary `wasteland-client`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating git repository `https://github.com/jeaye/ncurses-rs.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+595316b4006932405a63862d8fe65f71a6356293" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d92f44e229cd77ec4d6add14d3c35a24b480bdf9f2a40351cc5959c2d2dcc94c [INFO] running `Command { std: "docker" "start" "-a" "d92f44e229cd77ec4d6add14d3c35a24b480bdf9f2a40351cc5959c2d2dcc94c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d92f44e229cd77ec4d6add14d3c35a24b480bdf9f2a40351cc5959c2d2dcc94c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d92f44e229cd77ec4d6add14d3c35a24b480bdf9f2a40351cc5959c2d2dcc94c", kill_on_drop: false }` [INFO] [stdout] d92f44e229cd77ec4d6add14d3c35a24b480bdf9f2a40351cc5959c2d2dcc94c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+595316b4006932405a63862d8fe65f71a6356293" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ab5cd7c582d7566b5f375645a6d09747596fa6c1dcdd537369ec1ecc068d031 [INFO] running `Command { std: "docker" "start" "-a" "2ab5cd7c582d7566b5f375645a6d09747596fa6c1dcdd537369ec1ecc068d031", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `src/main.rs` was erroneously implicitly accepted for binary `wasteland-client`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.1.5 [INFO] [stderr] Compiling ncurses v5.71.1 (https://github.com/jeaye/ncurses-rs.git#5f2dc724) [INFO] [stderr] Compiling wasteland v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `,` or `>`, found `Map` [INFO] [stdout] --> src/session.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn set_current_map<'a>(&mut self, m: Box<'a Map>) { [INFO] [stdout] | ^^^ expected one of `,` or `>` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to end the type parameters here [INFO] [stdout] | [INFO] [stdout] 14 | pub fn set_current_map<'a>(&mut self, m: Box<'a> Map>) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/stats.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/stats.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand::Rng; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/helpers/map_helper.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/ui/ncurses_ui.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::old_io::timer::{sleep}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/helpers/map_helper.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand::Rng; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/ui/ncurses_ui.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope [INFO] [stdout] --> src/session.rs:14:28 [INFO] [stdout] | [INFO] [stdout] 8 | impl <'a>Session<'a> { [INFO] [stdout] | -- first declared here [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn set_current_map<'a>(&mut self, m: Box<'a Map>) { [INFO] [stdout] | ^^ lifetime `'a` already in scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/session.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | self.current_map = m; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/session.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use game_entity::{Entity}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `static_data` [INFO] [stdout] --> src/ui/ncurses_ui.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use static_data; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::ncurses::*` [INFO] [stdout] --> src/ui/root_window.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use self::ncurses::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `globs` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(globs)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/builders/session_builder.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn build_session<'a>(player_name: String) -> Box> { [INFO] [stdout] | ---------------- expected `Box>` because of return type [INFO] [stdout] ... [INFO] [stdout] 13 | s [INFO] [stdout] | ^ expected `Box>`, found `Session<'_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box>` [INFO] [stdout] found struct `Session<'_>` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 13 | Box::new(s) [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `all` [INFO] [stdout] --> src/stats.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let all: i32 = if with_defense < 0 { 0 } else { with_defense }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_all` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tile.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut res : fmt::Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x32` [INFO] [stdout] --> src/session.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let x32 = x; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_x32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y32` [INFO] [stdout] --> src/session.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let y32 = y; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_y32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of extern static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/ui/ncurses_ui.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | keypad(stdscr, true); [INFO] [stdout] | ^^^^^^ use of extern static [INFO] [stdout] | [INFO] [stdout] = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0308, E0425, E0432, E0433, E0496. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasteland` (lib) due to 12 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "2ab5cd7c582d7566b5f375645a6d09747596fa6c1dcdd537369ec1ecc068d031", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ab5cd7c582d7566b5f375645a6d09747596fa6c1dcdd537369ec1ecc068d031", kill_on_drop: false }` [INFO] [stdout] 2ab5cd7c582d7566b5f375645a6d09747596fa6c1dcdd537369ec1ecc068d031