[INFO] cloning repository https://github.com/SappieKonig/rust_alphazero [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SappieKonig/rust_alphazero" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSappieKonig%2Frust_alphazero", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSappieKonig%2Frust_alphazero'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a221d3ed8c6e5c1e1d3132dcd9823b8b8e3fa746 [INFO] building SappieKonig/rust_alphazero against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSappieKonig%2Frust_alphazero" "/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/SappieKonig/rust_alphazero on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SappieKonig/rust_alphazero [INFO] finished tweaking git repo https://github.com/SappieKonig/rust_alphazero [INFO] tweaked toml for git repo https://github.com/SappieKonig/rust_alphazero written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SappieKonig/rust_alphazero 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d5fc09067f4516cd299039d2a4ba90cceda1685ea1df8062316fa2d61a1cdf3 [INFO] running `Command { std: "docker" "start" "-a" "9d5fc09067f4516cd299039d2a4ba90cceda1685ea1df8062316fa2d61a1cdf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d5fc09067f4516cd299039d2a4ba90cceda1685ea1df8062316fa2d61a1cdf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d5fc09067f4516cd299039d2a4ba90cceda1685ea1df8062316fa2d61a1cdf3", kill_on_drop: false }` [INFO] [stdout] 9d5fc09067f4516cd299039d2a4ba90cceda1685ea1df8062316fa2d61a1cdf3 [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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e037bef440d81dc960f0ce82f85de774a3525de2e8e4d753ada02893d6abdf2 [INFO] running `Command { std: "docker" "start" "-a" "7e037bef440d81dc960f0ce82f85de774a3525de2e8e4d753ada02893d6abdf2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling alphazero_2000 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AddAssign` [INFO] [stdout] --> src/matrix.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Add, Index, IndexMut, SubAssign, AddAssign}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `score` is never read [INFO] [stdout] --> src/mcts.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut score: f32 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut p_clone = p.clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | let mut move_index; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mcts.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | fn new(state: TicTacToe, policy: Vec, value: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec` and `print_size` are never used [INFO] [stdout] --> src/matrix.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vector { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn from_vec(data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn print_size(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rand`, `full`, `print`, `print_shape`, `tanh`, and `apply` are never used [INFO] [stdout] --> src/matrix.rs:126:19 [INFO] [stdout] | [INFO] [stdout] 109 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub(crate) fn rand(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn full(rows: usize, cols: usize, val: f32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub(crate) fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn print_shape(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub(crate) fn tanh(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub(crate) fn apply(&mut self, f: F) -> &mut Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_state` and `show` are never used [INFO] [stdout] --> src/game.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl TicTacToe { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | fn with_state(board: Vec, turn: i8) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub(crate) fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Output { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | fn new(policy: Vector, value: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dWp` should have a snake case name [INFO] [stdout] --> src/net.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let dWp = x2.transpose().matmul(&dp_loss); // Gradient of W_p [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_wp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dWv` should have a snake case name [INFO] [stdout] --> src/net.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let dWv = x2.transpose().matmul(&dsoft_dl); // Gradient of W_v [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_wv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dW2` should have a snake case name [INFO] [stdout] --> src/net.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let dW2 = x1.transpose().matmul(&dx2); // Gradient of W2 [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dW1` should have a snake case name [INFO] [stdout] --> src/net.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let dW1 = input.transpose().matmul(&dx1); // Gradient of W1 [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "7e037bef440d81dc960f0ce82f85de774a3525de2e8e4d753ada02893d6abdf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e037bef440d81dc960f0ce82f85de774a3525de2e8e4d753ada02893d6abdf2", kill_on_drop: false }` [INFO] [stdout] 7e037bef440d81dc960f0ce82f85de774a3525de2e8e4d753ada02893d6abdf2 [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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64785ed57ac1cbb2eed844151d760f78bd99377b18987dee9ab2c87395b1cb7e [INFO] running `Command { std: "docker" "start" "-a" "64785ed57ac1cbb2eed844151d760f78bd99377b18987dee9ab2c87395b1cb7e", kill_on_drop: false }` [INFO] [stderr] Compiling alphazero_2000 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AddAssign` [INFO] [stdout] --> src/matrix.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Add, Index, IndexMut, SubAssign, AddAssign}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `score` is never read [INFO] [stdout] --> src/mcts.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut score: f32 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut p_clone = p.clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | let mut move_index; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mcts.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | fn new(state: TicTacToe, policy: Vec, value: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec` and `print_size` are never used [INFO] [stdout] --> src/matrix.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vector { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn from_vec(data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn print_size(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rand`, `full`, `print`, `print_shape`, `tanh`, and `apply` are never used [INFO] [stdout] --> src/matrix.rs:126:19 [INFO] [stdout] | [INFO] [stdout] 109 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub(crate) fn rand(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn full(rows: usize, cols: usize, val: f32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub(crate) fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn print_shape(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub(crate) fn tanh(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub(crate) fn apply(&mut self, f: F) -> &mut Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_state` and `show` are never used [INFO] [stdout] --> src/game.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl TicTacToe { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | fn with_state(board: Vec, turn: i8) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub(crate) fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Output { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | fn new(policy: Vector, value: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dWp` should have a snake case name [INFO] [stdout] --> src/net.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let dWp = x2.transpose().matmul(&dp_loss); // Gradient of W_p [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_wp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dWv` should have a snake case name [INFO] [stdout] --> src/net.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let dWv = x2.transpose().matmul(&dsoft_dl); // Gradient of W_v [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_wv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dW2` should have a snake case name [INFO] [stdout] --> src/net.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let dW2 = x1.transpose().matmul(&dx2); // Gradient of W2 [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dW1` should have a snake case name [INFO] [stdout] --> src/net.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let dW1 = input.transpose().matmul(&dx1); // Gradient of W1 [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `d_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "64785ed57ac1cbb2eed844151d760f78bd99377b18987dee9ab2c87395b1cb7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64785ed57ac1cbb2eed844151d760f78bd99377b18987dee9ab2c87395b1cb7e", kill_on_drop: false }` [INFO] [stdout] 64785ed57ac1cbb2eed844151d760f78bd99377b18987dee9ab2c87395b1cb7e