[INFO] cloning repository https://github.com/deepu105/battleship-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/deepu105/battleship-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepu105%2Fbattleship-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepu105%2Fbattleship-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43f6eedca151e57bdf2d93c50cf7ec4ac53ec0ab [INFO] testing deepu105/battleship-rs against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepu105%2Fbattleship-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/deepu105/battleship-rs [INFO] finished tweaking git repo https://github.com/deepu105/battleship-rs [INFO] tweaked toml for git repo https://github.com/deepu105/battleship-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/deepu105/battleship-rs on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/deepu105/battleship-rs 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded structopt v0.3.21 [INFO] [stderr] Downloaded termion v2.0.3 [INFO] [stderr] Downloaded structopt-derive v0.4.14 [INFO] [stderr] Downloaded ratatui v0.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79ed22e8b173adeab56b8fde75262e14f2e7e0bb338d12176d6b8ac9c7a87fe9 [INFO] running `Command { std: "docker" "start" "-a" "79ed22e8b173adeab56b8fde75262e14f2e7e0bb338d12176d6b8ac9c7a87fe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79ed22e8b173adeab56b8fde75262e14f2e7e0bb338d12176d6b8ac9c7a87fe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79ed22e8b173adeab56b8fde75262e14f2e7e0bb338d12176d6b8ac9c7a87fe9", kill_on_drop: false }` [INFO] [stdout] 79ed22e8b173adeab56b8fde75262e14f2e7e0bb338d12176d6b8ac9c7a87fe9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ce0a4e98a46eaf146b791812ce72a575fe3326bfd6b050d65130c3fbcc11391e [INFO] running `Command { std: "docker" "start" "-a" "ce0a4e98a46eaf146b791812ce72a575fe3326bfd6b050d65130c3fbcc11391e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling termion v2.0.3 [INFO] [stderr] Compiling termion v1.5.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling ratatui v0.23.0 [INFO] [stderr] Compiling structopt v0.3.21 [INFO] [stderr] Compiling battleship-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/app.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ---- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/app.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 206 | pub fn block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.01s [INFO] running `Command { std: "docker" "inspect" "ce0a4e98a46eaf146b791812ce72a575fe3326bfd6b050d65130c3fbcc11391e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce0a4e98a46eaf146b791812ce72a575fe3326bfd6b050d65130c3fbcc11391e", kill_on_drop: false }` [INFO] [stdout] ce0a4e98a46eaf146b791812ce72a575fe3326bfd6b050d65130c3fbcc11391e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b38f4138221c6b10a4de04676860223423dd71aebe0d0e0a29d61b97fe8e3bf0 [INFO] running `Command { std: "docker" "start" "-a" "b38f4138221c6b10a4de04676860223423dd71aebe0d0e0a29d61b97fe8e3bf0", kill_on_drop: false }` [INFO] [stderr] Compiling battleship-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/app.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ---- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/app.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn block(&self) -> Block { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 206 | pub fn block(&self) -> Block<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.66s [INFO] running `Command { std: "docker" "inspect" "b38f4138221c6b10a4de04676860223423dd71aebe0d0e0a29d61b97fe8e3bf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b38f4138221c6b10a4de04676860223423dd71aebe0d0e0a29d61b97fe8e3bf0", kill_on_drop: false }` [INFO] [stdout] b38f4138221c6b10a4de04676860223423dd71aebe0d0e0a29d61b97fe8e3bf0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d3ec2e80bd737142d1e84fc9436aea8a067a297b43788e182bd7c8af4bb28c72 [INFO] running `Command { std: "docker" "start" "-a" "d3ec2e80bd737142d1e84fc9436aea8a067a297b43788e182bd7c8af4bb28c72", kill_on_drop: false }` [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/app.rs:133:15 [INFO] [stderr] | [INFO] [stderr] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell { [INFO] [stderr] | ^^^^^ this lifetime flows to the output ---- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 133 | pub fn cell(&self, c: Coordinate, read_only: bool) -> Cell<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/app.rs:206:16 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn block(&self) -> Block { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 206 | pub fn block(&self) -> Block<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `battleship-rs` (bin "battleship" test) generated 2 warnings (run `cargo fix --bin "battleship" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/battleship-84a58cce02d246c5) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test game::tests::test_board_update_status ... ok [INFO] [stdout] test game::tests::test_game_fire ... ok [INFO] [stdout] test game::tests::test_transpose ... ok [INFO] [stdout] test game::tests::test_get_random_coordinate ... ok [INFO] [stdout] test game::tests::test_reverse_cols_of_rows ... ok [INFO] [stdout] test game::tests::test_board_take_fire ... ok [INFO] [stdout] test game::tests::test_ship_is_overlapping ... ok [INFO] [stdout] test game::tests::test_reverse_rows_of_cols ... ok [INFO] [stdout] test game::tests::test_game_is_valid_rule ... ok [INFO] [stdout] test game::tests::test_game_generate_firing_coordinates ... ok [INFO] [stdout] test game::tests::test_ship_type_get_shape ... ok [INFO] [stdout] test game::tests::test_ship_draw ... ok [INFO] [stdout] test game::tests::test_board_new ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d3ec2e80bd737142d1e84fc9436aea8a067a297b43788e182bd7c8af4bb28c72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3ec2e80bd737142d1e84fc9436aea8a067a297b43788e182bd7c8af4bb28c72", kill_on_drop: false }` [INFO] [stdout] d3ec2e80bd737142d1e84fc9436aea8a067a297b43788e182bd7c8af4bb28c72