[INFO] cloning repository https://github.com/Diptorr/IVT_SNAK3
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Diptorr/IVT_SNAK3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiptorr%2FIVT_SNAK3", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiptorr%2FIVT_SNAK3'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7c7936154ddd412aa2ff63db6a5bdd8816c5b1dd
[INFO] building Diptorr/IVT_SNAK3 against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiptorr%2FIVT_SNAK3" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Diptorr/IVT_SNAK3 on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Diptorr/IVT_SNAK3
[INFO] finished tweaking git repo https://github.com/Diptorr/IVT_SNAK3
[INFO] tweaked toml for git repo https://github.com/Diptorr/IVT_SNAK3 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/Diptorr/IVT_SNAK3 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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded log v0.4.18
[INFO] [stderr]   Downloaded error-type v0.1.2
[INFO] [stderr]   Downloaded web-sys v0.3.63
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cadbab4386d20ddb41d1f5ce762a2e1f9022427b3870183b6a6a9ff8c63a6656
[INFO] running `Command { std: "docker" "start" "-a" "cadbab4386d20ddb41d1f5ce762a2e1f9022427b3870183b6a6a9ff8c63a6656", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cadbab4386d20ddb41d1f5ce762a2e1f9022427b3870183b6a6a9ff8c63a6656", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cadbab4386d20ddb41d1f5ce762a2e1f9022427b3870183b6a6a9ff8c63a6656", kill_on_drop: false }`
[INFO] [stdout] cadbab4386d20ddb41d1f5ce762a2e1f9022427b3870183b6a6a9ff8c63a6656
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a951e21a0598075753d7fe8a51820e0a53689f51333f81a27bd9de75741a09ea
[INFO] running `Command { std: "docker" "start" "-a" "a951e21a0598075753d7fe8a51820e0a53689f51333f81a27bd9de75741a09ea", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.60
[INFO] [stderr]    Compiling unicode-ident v1.0.9
[INFO] [stderr]    Compiling quote v1.0.28
[INFO] [stderr]    Compiling libc v0.2.146
[INFO] [stderr]    Compiling log v0.4.18
[INFO] [stderr]    Compiling once_cell v1.18.0
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.86
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling rustix v0.37.19
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling bumpalo v3.13.0
[INFO] [stderr]    Compiling linux-raw-sys v0.3.8
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling futures-sink v0.3.28
[INFO] [stderr]    Compiling futures-io v0.3.28
[INFO] [stderr]    Compiling wasm-bindgen v0.2.86
[INFO] [stderr]    Compiling anstyle-parse v0.2.0
[INFO] [stderr]    Compiling tokio v1.28.2
[INFO] [stderr]    Compiling anstyle v1.0.0
[INFO] [stderr]    Compiling bytes v1.4.0
[INFO] [stderr]    Compiling itoa v1.0.6
[INFO] [stderr]    Compiling tracing-core v0.1.31
[INFO] [stderr]    Compiling clap_lex v0.5.0
[INFO] [stderr]    Compiling try-lock v0.2.4
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling futures v0.1.31
[INFO] [stderr]    Compiling syn v2.0.18
[INFO] [stderr]    Compiling error-type v0.1.2
[INFO] [stderr]    Compiling tracing v0.1.37
[INFO] [stderr]    Compiling num_cpus v1.15.0
[INFO] [stderr]    Compiling net2 v0.2.38
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling futures-cpupool v0.1.8
[INFO] [stderr]    Compiling is-terminal v0.4.7
[INFO] [stderr]    Compiling anstream v0.3.2
[INFO] [stderr]    Compiling clap_builder v4.3.1
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.86
[INFO] [stderr]    Compiling futures-macro v0.3.28
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.86
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.86
[INFO] [stderr]    Compiling clap v4.3.2
[INFO] [stderr]    Compiling js-sys v0.3.63
[INFO] [stderr]    Compiling futures-executor v0.3.28
[INFO] [stderr]    Compiling hyper v0.14.26
[INFO] [stderr]    Compiling futures v0.3.28
[INFO] [stderr]    Compiling web-sys v0.3.63
[INFO] [stderr]    Compiling snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found `thread_local`
[INFO] [stdout]   --> src/lib.rs:9:25
[INFO] [stdout]    |
[INFO] [stdout] 9  | use std::rand::Rng::Rang
[INFO] [stdout]    |                         ^ help: add `;` here
[INFO] [stdout] 10 |
[INFO] [stdout] 11 | thread_local! {
[INFO] [stdout]    | ------------ unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `(`, `,`, `=`, `{`, or `}`, found `Left`
[INFO] [stdout]   --> src/snake.rs:11:3
[INFO] [stdout]    |
[INFO] [stdout] 10 |   Right
[INFO] [stdout]    |        -
[INFO] [stdout]    |        |
[INFO] [stdout]    |        expected one of `(`, `,`, `=`, `{`, or `}`
[INFO] [stdout]    |        help: missing `,`
[INFO] [stdout] 11 |   Left,
[INFO] [stdout]    |   ^^^^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `=>`, `if`, or `|`, found `(`
[INFO] [stdout]   --> src/snake.rs:30:7
[INFO] [stdout]    |
[INFO] [stdout] 29 |       (Direction::Up, Direction::Up)
[INFO] [stdout]    |                                     - expected one of `=>`, `if`, or `|`
[INFO] [stdout] 30 |       (Direction::Up, Direction::Down)
[INFO] [stdout]    |       ^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `!` or `::`, found `.`
[INFO] [stdout]   --> src/snake.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |     impl SnakGame {
[INFO] [stdout]    |                   - while parsing this item list starting here
[INFO] [stdout] ...
[INFO] [stdout] 94 |         self.food = free_positions[random_range(0, free_positions.len())];
[INFO] [stdout]    |             ^ expected one of `!` or `::`
[INFO] [stdout] 95 |       }
[INFO] [stdout]    |       - the item list ends here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]   --> src/snake.rs:24:27
[INFO] [stdout]    |
[INFO] [stdout] 24 |   pub fn change_direction(&mut self, direction: Direction) {
[INFO] [stdout]    |                           ^^^^^^^^^ not semantically valid as function parameter
[INFO] [stdout]    |
[INFO] [stdout]    = note: associated functions are those in `impl` or `trait` definitions
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]   --> src/snake.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 |   pub fn tick(&mut self) {
[INFO] [stdout]    |               ^^^^^^^^^ not semantically valid as function parameter
[INFO] [stdout]    |
[INFO] [stdout]    = note: associated functions are those in `impl` or `trait` definitions
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]   --> src/snake.rs:50:17
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub fn is_valid(&self, (x, y): Position) -> bool {
[INFO] [stdout]    |                 ^^^^^ not semantically valid as function parameter
[INFO] [stdout]    |
[INFO] [stdout]    = note: associated functions are those in `impl` or `trait` definitions
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `rand` in `std`
[INFO] [stdout]  --> src/lib.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::rand::Rng::Rang
[INFO] [stdout]   |          ^^^^ could not find `rand` in `std`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `snake::SnakeGame`
[INFO] [stdout]  --> src/lib.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use snake::{Direction, SnakeGame};
[INFO] [stdout]   |                        ^^^^^^^^^
[INFO] [stdout]   |                        |
[INFO] [stdout]   |                        no `SnakeGame` in `snake`
[INFO] [stdout]   |                        help: a similar name exists in the module: `SnakGame`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::random::random_range`
[INFO] [stdout]  --> src/snake.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::random::random_range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `snake` (lib) due to 9 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "a951e21a0598075753d7fe8a51820e0a53689f51333f81a27bd9de75741a09ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a951e21a0598075753d7fe8a51820e0a53689f51333f81a27bd9de75741a09ea", kill_on_drop: false }`
[INFO] [stdout] a951e21a0598075753d7fe8a51820e0a53689f51333f81a27bd9de75741a09ea
