[INFO] cloning repository https://github.com/lduchosal/battlesnake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lduchosal/battlesnake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flduchosal%2Fbattlesnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flduchosal%2Fbattlesnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0906c57460605be8f3aa55eedaa044abed3307eb [INFO] checking lduchosal/battlesnake against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flduchosal%2Fbattlesnake" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lduchosal/battlesnake on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lduchosal/battlesnake [INFO] finished tweaking git repo https://github.com/lduchosal/battlesnake [INFO] tweaked toml for git repo https://github.com/lduchosal/battlesnake written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/lduchosal/battlesnake already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.32 [INFO] [stderr] Downloaded syn v0.15.28 [INFO] [stderr] Downloaded indextree v3.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a6658339626e47a571d8e363fbefd5fcb381e6c215583bc208845451a23e629e [INFO] running `Command { std: "docker" "start" "-a" "a6658339626e47a571d8e363fbefd5fcb381e6c215583bc208845451a23e629e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6658339626e47a571d8e363fbefd5fcb381e6c215583bc208845451a23e629e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6658339626e47a571d8e363fbefd5fcb381e6c215583bc208845451a23e629e", kill_on_drop: false }` [INFO] [stdout] a6658339626e47a571d8e363fbefd5fcb381e6c215583bc208845451a23e629e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f429aab90def3086e5e68edcc17da8a56fba91c4bb43c9ae49786180c7f9e1e [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" "1f429aab90def3086e5e68edcc17da8a56fba91c4bb43c9ae49786180c7f9e1e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cc v1.0.32 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling serde v1.0.89 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Compiling backtrace v0.3.14 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling syn v0.15.28 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking num-integer v0.1.39 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.89 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking indextree v3.1.1 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking battlesnake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 397 | | let head = &snake.body.first()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:404:19 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 404 | | let min = distances.first()?.0; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:408:16 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 408 | | && distances.first()?.1.id == game.you.id { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:409:35 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 409 | | nearest_my_food.push((distances.first()?.0, food)); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:415:16 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 415 | | let food = nearest_my_food.first()?.1; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:417:15 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 417 | | let you = game.you.body.first()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:397:25 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 397 | | let head = &snake.body.first()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:404:19 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 404 | | let min = distances.first()?.0; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:408:16 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 408 | | && distances.first()?.1.id == game.you.id { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:409:35 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 409 | | nearest_my_food.push((distances.first()?.0, food)); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:415:16 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 415 | | let food = nearest_my_food.first()?.1; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:417:15 [INFO] [stdout] | [INFO] [stdout] 384 | / fn eat_my_food(game: &Game, ps: &mut Vec) -> Result<(), Error> { [INFO] [stdout] 385 | | [INFO] [stdout] 386 | | [INFO] [stdout] 387 | | let eat_my_food_value = 5; [INFO] [stdout] ... | [INFO] [stdout] 417 | | let you = game.you.body.first()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 452 | | [INFO] [stdout] 453 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `battlesnake` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1f429aab90def3086e5e68edcc17da8a56fba91c4bb43c9ae49786180c7f9e1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f429aab90def3086e5e68edcc17da8a56fba91c4bb43c9ae49786180c7f9e1e", kill_on_drop: false }` [INFO] [stdout] 1f429aab90def3086e5e68edcc17da8a56fba91c4bb43c9ae49786180c7f9e1e