[INFO] updating cached repository https://github.com/alexandraorth/snake [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 776a1f99328cfe3728ba60cfe8c908175b630d94 [INFO] testing alexandraorth/snake against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexandraorth%2Fsnake" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexandraorth/snake on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [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-0/source/Cargo.toml [INFO] crate git repo https://github.com/alexandraorth/snake already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 938b74909eca54413f5c223161b3e2f8a48cf5759d0c1f22056965ddc97262cf [INFO] running `"docker" "start" "-a" "938b74909eca54413f5c223161b3e2f8a48cf5759d0c1f22056965ddc97262cf"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [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] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/snake.rs:18:24 [INFO] [stderr] | [INFO] [stderr] 18 | pub body: VecDeque<(Segment)>, [INFO] [stderr] | ^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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: 10 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.02s [INFO] running `"docker" "inspect" "938b74909eca54413f5c223161b3e2f8a48cf5759d0c1f22056965ddc97262cf"` [INFO] running `"docker" "rm" "-f" "938b74909eca54413f5c223161b3e2f8a48cf5759d0c1f22056965ddc97262cf"` [INFO] [stdout] 938b74909eca54413f5c223161b3e2f8a48cf5759d0c1f22056965ddc97262cf [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] dbce131f715b3e92d539bb7fa9158af45165cce4af6e01b42b2b193cc0ea991c [INFO] running `"docker" "start" "-a" "dbce131f715b3e92d539bb7fa9158af45165cce4af6e01b42b2b193cc0ea991c"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [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] | ^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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: 10 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `"docker" "inspect" "dbce131f715b3e92d539bb7fa9158af45165cce4af6e01b42b2b193cc0ea991c"` [INFO] running `"docker" "rm" "-f" "dbce131f715b3e92d539bb7fa9158af45165cce4af6e01b42b2b193cc0ea991c"` [INFO] [stdout] dbce131f715b3e92d539bb7fa9158af45165cce4af6e01b42b2b193cc0ea991c [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen"` [INFO] [stdout] be4a30eea13d2184e9b44b69d38f80ec6742a4e9826cbabd34189228e42510b0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "be4a30eea13d2184e9b44b69d38f80ec6742a4e9826cbabd34189228e42510b0"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [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] | ^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stderr] | | [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: 10 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/snake-48c1cd5d8e8a6548 [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test snake::tests::crawling_snake_has_same_size ... ok [INFO] [stdout] test snake::tests::growing_snake_has_increased_size ... ok [INFO] [stdout] test snake::tests::crawling_snake_has_moved ... 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 [INFO] [stdout] [INFO] running `"docker" "inspect" "be4a30eea13d2184e9b44b69d38f80ec6742a4e9826cbabd34189228e42510b0"` [INFO] running `"docker" "rm" "-f" "be4a30eea13d2184e9b44b69d38f80ec6742a4e9826cbabd34189228e42510b0"` [INFO] [stdout] be4a30eea13d2184e9b44b69d38f80ec6742a4e9826cbabd34189228e42510b0