[INFO] cloning repository https://github.com/alexandraorth/snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alexandraorth/snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexandraorth%2Fsnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexandraorth%2Fsnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 776a1f99328cfe3728ba60cfe8c908175b630d94 [INFO] testing alexandraorth/snake against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexandraorth%2Fsnake" "/workspace/builds/worker-31/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-31/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexandraorth/snake on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alexandraorth/snake [INFO] finished tweaking git repo https://github.com/alexandraorth/snake [INFO] tweaked toml for git repo https://github.com/alexandraorth/snake written to /workspace/builds/worker-31/source/Cargo.toml [INFO] crate git repo https://github.com/alexandraorth/snake already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3df5cca17020c183f5f698edd5ddc379569a0301d2e40c53920cfebebbd17f8a [INFO] running `Command { std: "docker" "start" "-a" "3df5cca17020c183f5f698edd5ddc379569a0301d2e40c53920cfebebbd17f8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3df5cca17020c183f5f698edd5ddc379569a0301d2e40c53920cfebebbd17f8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3df5cca17020c183f5f698edd5ddc379569a0301d2e40c53920cfebebbd17f8a", kill_on_drop: false }` [INFO] [stdout] 3df5cca17020c183f5f698edd5ddc379569a0301d2e40c53920cfebebbd17f8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c34210657c00dd0998ddbf4f566b01e3f760c067fb8d4e1addb915147a1d84e [INFO] running `Command { std: "docker" "start" "-a" "0c34210657c00dd0998ddbf4f566b01e3f760c067fb8d4e1addb915147a1d84e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling termion v1.5.1 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/snake.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | pub body: VecDeque<(Segment)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - pub body: VecDeque<(Segment)>, [INFO] [stdout] 18 + pub body: VecDeque, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 - fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stdout] 105 + fn update_direction(stdin: &mut dyn Read, game: &mut Game){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 42 | Direction::UP => self.body.push_front(Segment{x: head.x, y: head.y - 1, direction: Direction::UP}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | Direction::DOWN => self.body.push_front(Segment{x: head.x, y: head.y + 1, direction: Direction::DOWN}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | Direction::LEFT => self.body.push_front(Segment{x: head.x - 1, y: head.y, direction: Direction::LEFT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 44 | Direction::RIGHT => self.body.push_front(Segment{x: head.x + 1, y: head.y, direction: Direction::RIGHT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 59 | Direction::RIGHT => self.body.push_back(Segment{x: tail.x - 1, y: tail.y, direction: Direction::RIGHT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 57 | Direction::UP => self.body.push_back(Segment{x: tail.x, y: tail.y + 1, direction: Direction::UP}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | Direction::LEFT => self.body.push_back(Segment{x: tail.x + 1, y: tail.y, direction: Direction::LEFT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | Direction::DOWN => self.body.push_back(Segment{x: tail.x, y: tail.y - 1, direction: Direction::DOWN}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 57.26s [INFO] running `Command { std: "docker" "inspect" "0c34210657c00dd0998ddbf4f566b01e3f760c067fb8d4e1addb915147a1d84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c34210657c00dd0998ddbf4f566b01e3f760c067fb8d4e1addb915147a1d84e", kill_on_drop: false }` [INFO] [stdout] 0c34210657c00dd0998ddbf4f566b01e3f760c067fb8d4e1addb915147a1d84e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 972a2d79d6499c3ce26af9a2d4cc50ce967b5bcf7fce33033cc901833a966d7e [INFO] running `Command { std: "docker" "start" "-a" "972a2d79d6499c3ce26af9a2d4cc50ce967b5bcf7fce33033cc901833a966d7e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/snake.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | pub body: VecDeque<(Segment)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - pub body: VecDeque<(Segment)>, [INFO] [stdout] 18 + pub body: VecDeque, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 - fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stdout] 105 + fn update_direction(stdin: &mut dyn Read, game: &mut Game){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 42 | Direction::UP => self.body.push_front(Segment{x: head.x, y: head.y - 1, direction: Direction::UP}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | Direction::DOWN => self.body.push_front(Segment{x: head.x, y: head.y + 1, direction: Direction::DOWN}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | Direction::LEFT => self.body.push_front(Segment{x: head.x - 1, y: head.y, direction: Direction::LEFT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ----------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 44 | Direction::RIGHT => self.body.push_front(Segment{x: head.x + 1, y: head.y, direction: Direction::RIGHT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 59 | Direction::RIGHT => self.body.push_back(Segment{x: tail.x - 1, y: tail.y, direction: Direction::RIGHT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 57 | Direction::UP => self.body.push_back(Segment{x: tail.x, y: tail.y + 1, direction: Direction::UP}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | Direction::LEFT => self.body.push_back(Segment{x: tail.x + 1, y: tail.y, direction: Direction::LEFT}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/snake.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stdout] | ---------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | Direction::DOWN => self.body.push_back(Segment{x: tail.x, y: tail.y - 1, direction: Direction::DOWN}), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.09s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/snake-39ff1e9e0f3352c8) [INFO] running `Command { std: "docker" "inspect" "972a2d79d6499c3ce26af9a2d4cc50ce967b5bcf7fce33033cc901833a966d7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "972a2d79d6499c3ce26af9a2d4cc50ce967b5bcf7fce33033cc901833a966d7e", kill_on_drop: false }` [INFO] [stdout] 972a2d79d6499c3ce26af9a2d4cc50ce967b5bcf7fce33033cc901833a966d7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b699dd35990311c8028e5f19452926c7faf170920343387be9afabfd852cf4bc [INFO] running `Command { std: "docker" "start" "-a" "b699dd35990311c8028e5f19452926c7faf170920343387be9afabfd852cf4bc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/snake.rs:18:24 [INFO] [stderr] | [INFO] [stderr] 18 | pub body: VecDeque<(Segment)>, [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 18 - pub body: VecDeque<(Segment)>, [INFO] [stderr] 18 + pub body: VecDeque, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:105:33 [INFO] [stderr] | [INFO] [stderr] 105 | fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 105 - fn update_direction(stdin: &mut Read, game: &mut Game){ [INFO] [stderr] 105 + fn update_direction(stdin: &mut dyn Read, game: &mut Game){ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:42:34 [INFO] [stderr] | [INFO] [stderr] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ----------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 42 | Direction::UP => self.body.push_front(Segment{x: head.x, y: head.y - 1, direction: Direction::UP}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:43:34 [INFO] [stderr] | [INFO] [stderr] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ----------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 43 | Direction::DOWN => self.body.push_front(Segment{x: head.x, y: head.y + 1, direction: Direction::DOWN}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:45:34 [INFO] [stderr] | [INFO] [stderr] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ----------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 45 | Direction::LEFT => self.body.push_front(Segment{x: head.x - 1, y: head.y, direction: Direction::LEFT}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:44:34 [INFO] [stderr] | [INFO] [stderr] 39 | let head = self.body.front().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ----------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 44 | Direction::RIGHT => self.body.push_front(Segment{x: head.x + 1, y: head.y, direction: Direction::RIGHT}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:59:34 [INFO] [stderr] | [INFO] [stderr] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ---------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 59 | Direction::RIGHT => self.body.push_back(Segment{x: tail.x - 1, y: tail.y, direction: Direction::RIGHT}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:57:34 [INFO] [stderr] | [INFO] [stderr] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ---------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 57 | Direction::UP => self.body.push_back(Segment{x: tail.x, y: tail.y + 1, direction: Direction::UP}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:60:34 [INFO] [stderr] | [INFO] [stderr] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ---------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 60 | Direction::LEFT => self.body.push_back(Segment{x: tail.x + 1, y: tail.y, direction: Direction::LEFT}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.body` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/snake.rs:58:34 [INFO] [stderr] | [INFO] [stderr] 54 | let tail = self.body.back().unwrap(); //TODO dont use unwrap [INFO] [stderr] | ---------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 58 | Direction::DOWN => self.body.push_back(Segment{x: tail.x, y: tail.y - 1, direction: Direction::DOWN}), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: `snake` (bin "snake" test) generated 10 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.81s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/snake-39ff1e9e0f3352c8) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test snake::tests::crawling_snake_has_same_size ... ok [INFO] [stdout] test snake::tests::crawling_snake_has_moved ... ok [INFO] [stdout] test snake::tests::growing_snake_has_increased_size ... ok [INFO] [stdout] test snake::tests::snake_created_has_size_2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b699dd35990311c8028e5f19452926c7faf170920343387be9afabfd852cf4bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b699dd35990311c8028e5f19452926c7faf170920343387be9afabfd852cf4bc", kill_on_drop: false }` [INFO] [stdout] b699dd35990311c8028e5f19452926c7faf170920343387be9afabfd852cf4bc