[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] checking alexandraorth/snake against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexandraorth%2Fsnake" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexandraorth/snake on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-7/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac8cc9def7103159fd7794333672780088182154399335b7732bf3c844f28b08 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ac8cc9def7103159fd7794333672780088182154399335b7732bf3c844f28b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac8cc9def7103159fd7794333672780088182154399335b7732bf3c844f28b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac8cc9def7103159fd7794333672780088182154399335b7732bf3c844f28b08", kill_on_drop: false }` [INFO] [stdout] ac8cc9def7103159fd7794333672780088182154399335b7732bf3c844f28b08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64eb2babc782bcdf54b8d1503a47b497399aa1a62c134215023089b069fa0f79 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "64eb2babc782bcdf54b8d1503a47b497399aa1a62c134215023089b069fa0f79", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking termion v1.5.1 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking 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] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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] | ^^^^^^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [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 3.58s [INFO] running `Command { std: "docker" "inspect" "64eb2babc782bcdf54b8d1503a47b497399aa1a62c134215023089b069fa0f79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64eb2babc782bcdf54b8d1503a47b497399aa1a62c134215023089b069fa0f79", kill_on_drop: false }` [INFO] [stdout] 64eb2babc782bcdf54b8d1503a47b497399aa1a62c134215023089b069fa0f79