[INFO] updating cached repository https://github.com/PewPewPewcoding/rust-tictactoe [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd9ad914e74fa39179925f40556282fda686f6cc [INFO] testing PewPewPewcoding/rust-tictactoe against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPewPewPewcoding%2Frust-tictactoe" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PewPewPewcoding/rust-tictactoe on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PewPewPewcoding/rust-tictactoe [INFO] finished tweaking git repo https://github.com/PewPewPewcoding/rust-tictactoe [INFO] tweaked toml for git repo https://github.com/PewPewPewcoding/rust-tictactoe written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/PewPewPewcoding/rust-tictactoe already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 783f2d6a751f0162a227023f348fbe232b73639d187d20246a5def722a4102ec [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" "783f2d6a751f0162a227023f348fbe232b73639d187d20246a5def722a4102ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "783f2d6a751f0162a227023f348fbe232b73639d187d20246a5def722a4102ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "783f2d6a751f0162a227023f348fbe232b73639d187d20246a5def722a4102ec", kill_on_drop: false }` [INFO] [stdout] 783f2d6a751f0162a227023f348fbe232b73639d187d20246a5def722a4102ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=forbid" "-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@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ae33f644d291cdb2d929aaec64fad23ca57181536faae217e8246dec71394a2 [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" "0ae33f644d291cdb2d929aaec64fad23ca57181536faae217e8246dec71394a2", kill_on_drop: false }` [INFO] [stderr] Compiling tictactoe v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `mut` must be attached to each individual binding [INFO] [stdout] --> src/lib.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut (x, o, e) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ help: add `mut` to each binding: `(mut x, mut o, mut e)` [INFO] [stdout] | [INFO] [stdout] = note: `mut` may be followed by `variable` and `variable @ pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `std::string::String` is not an iterator [INFO] [stdout] --> src/lib.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | for i in input { [INFO] [stdout] | ^^^^^ `std::string::String` is not an iterator; try calling `.chars()` or `.bytes()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::iter::Iterator` is not implemented for `std::string::String` [INFO] [stdout] = note: required by `std::iter::IntoIterator::into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[TicTacToe]` cannot be indexed by `char` [INFO] [stdout] --> src/lib.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | 'X' => board[i] = TicTacToe::X, [INFO] [stdout] | ^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::slice::SliceIndex<[TicTacToe]>` is not implemented for `char` [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index` for `[TicTacToe]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[TicTacToe]` cannot be indexed by `char` [INFO] [stdout] --> src/lib.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | 'O' => board[i] = TicTacToe::O, [INFO] [stdout] | ^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::slice::SliceIndex<[TicTacToe]>` is not implemented for `char` [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index` for `[TicTacToe]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[TicTacToe; 9]` is not an iterator [INFO] [stdout] --> src/lib.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | for i in self.board { [INFO] [stdout] | ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::iter::Iterator` is not implemented for `[TicTacToe; 9]` [INFO] [stdout] = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]` [INFO] [stdout] = note: required by `std::iter::IntoIterator::into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[TicTacToe; 9]` is not an iterator [INFO] [stdout] --> src/lib.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | for i in self.board { [INFO] [stdout] | ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::iter::Iterator` is not implemented for `[TicTacToe; 9]` [INFO] [stdout] = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]` [INFO] [stdout] = note: required by `std::iter::IntoIterator::into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `&GameState` [INFO] [stdout] --> src/lib.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | tmp[i] = TicTacToe::X; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | result.push(tmp); [INFO] [stdout] | ^^^ expected struct `GameState`, found `&GameState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[TicTacToe; 9]` is not an iterator [INFO] [stdout] --> src/lib.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | for i in self.board { [INFO] [stdout] | ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::iter::Iterator` is not implemented for `[TicTacToe; 9]` [INFO] [stdout] = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]` [INFO] [stdout] = note: required by `std::iter::IntoIterator::into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `&GameState` [INFO] [stdout] --> src/lib.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | tmp[i] = TicTacToe::O; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | result.push(tmp); [INFO] [stdout] | ^^^ expected struct `GameState`, found `&GameState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0608. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tictactoe`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "0ae33f644d291cdb2d929aaec64fad23ca57181536faae217e8246dec71394a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ae33f644d291cdb2d929aaec64fad23ca57181536faae217e8246dec71394a2", kill_on_drop: false }` [INFO] [stdout] 0ae33f644d291cdb2d929aaec64fad23ca57181536faae217e8246dec71394a2