[INFO] cloning repository https://github.com/davetttt/ttt_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davetttt/ttt_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da0b52d21262d7f8c8fc70ea1f5b02a978d43af2 [INFO] checking davetttt/ttt_rust/da0b52d21262d7f8c8fc70ea1f5b02a978d43af2 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavetttt%2Fttt_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davetttt/ttt_rust on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/davetttt/ttt_rust [INFO] finished tweaking git repo https://github.com/davetttt/ttt_rust [INFO] tweaked toml for git repo https://github.com/davetttt/ttt_rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/davetttt/ttt_rust 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b252da303f61dcaecc747436b41dd2b59491752c1ccfaa4aa045b49320e8cdf [INFO] running `Command { std: "docker" "start" "-a" "7b252da303f61dcaecc747436b41dd2b59491752c1ccfaa4aa045b49320e8cdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b252da303f61dcaecc747436b41dd2b59491752c1ccfaa4aa045b49320e8cdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b252da303f61dcaecc747436b41dd2b59491752c1ccfaa4aa045b49320e8cdf", kill_on_drop: false }` [INFO] [stdout] 7b252da303f61dcaecc747436b41dd2b59491752c1ccfaa4aa045b49320e8cdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e6ab87cab56c14bacbccb6d33bde463e7e42903943393b9809a2a8a7f46ffd8 [INFO] running `Command { std: "docker" "start" "-a" "0e6ab87cab56c14bacbccb6d33bde463e7e42903943393b9809a2a8a7f46ffd8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking ttt_rust v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/minimax.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for index in range(0, scores.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/minimax.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | for index in range(0, scores.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/board.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | Board { board:[0us; 9] } [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/minimax.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for index in range(0, scores.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/minimax.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | for index in range(0, scores.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/board.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | Board { board:[0us; 9] } [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/player.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | let space: Option = response.trim().parse(); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<_, _>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 50 | let space: Option = response.trim().parse().expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/board.rs:32:37 [INFO] [stdout] | [INFO] [stdout] 30 | result.push_str(format!(" {} |", [INFO] [stdout] | _____________________________- [INFO] [stdout] 31 | | self.render_token(*space)). [INFO] [stdout] 32 | | as_slice()); [INFO] [stdout] | | -^^^^^^^^ method not found in `String` [INFO] [stdout] | |____________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/io_test.rs:7:46 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!("answer", io.prompt(question).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/player.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | let space: Option = response.trim().parse(); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<_, _>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 50 | let space: Option = response.trim().parse().expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/board.rs:47:69 [INFO] [stdout] | [INFO] [stdout] 47 | result.push_str((format!("\n{}", self.render_row(row))).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/board.rs:32:37 [INFO] [stdout] | [INFO] [stdout] 30 | result.push_str(format!(" {} |", [INFO] [stdout] | _____________________________- [INFO] [stdout] 31 | | self.render_token(*space)). [INFO] [stdout] 32 | | as_slice()); [INFO] [stdout] | | -^^^^^^^^ method not found in `String` [INFO] [stdout] | |____________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/board.rs:47:69 [INFO] [stdout] | [INFO] [stdout] 47 | result.push_str((format!("\n{}", self.render_row(row))).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_some` found for enum `Result` in the current scope [INFO] [stdout] --> src/main.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | if choice.is_some() && [1, 2, 3].contains(&choice.unwrap()) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `is_ok` with a similar name [INFO] [stdout] | [INFO] [stdout] 34 | if choice.is_ok() && [1, 2, 3].contains(&choice.unwrap()) { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_some` found for enum `Result` in the current scope [INFO] [stdout] --> src/main.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | if choice.is_some() && [1, 2, 3].contains(&choice.unwrap()) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `is_ok` with a similar name [INFO] [stdout] | [INFO] [stdout] 34 | if choice.is_ok() && [1, 2, 3].contains(&choice.unwrap()) { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ttt_rust` (bin "ttt_rust") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ttt_rust` (bin "ttt_rust" test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "0e6ab87cab56c14bacbccb6d33bde463e7e42903943393b9809a2a8a7f46ffd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e6ab87cab56c14bacbccb6d33bde463e7e42903943393b9809a2a8a7f46ffd8", kill_on_drop: false }` [INFO] [stdout] 0e6ab87cab56c14bacbccb6d33bde463e7e42903943393b9809a2a8a7f46ffd8