[INFO] cloning repository https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcirerick%2FTic_Tac_Toe_Iter_Minimax", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcirerick%2FTic_Tac_Toe_Iter_Minimax'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e12cdf3396f873c2eced77f40ef22afddb165ac [INFO] checking cirerick/Tic_Tac_Toe_Iter_Minimax against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcirerick%2FTic_Tac_Toe_Iter_Minimax" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax [INFO] finished tweaking git repo https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax [INFO] tweaked toml for git repo https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax on toolchain 82310651b93a594a3fd69015e1562186a080d94c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cirerick/Tic_Tac_Toe_Iter_Minimax 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" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17f1d9587e05ed15791f0c35da9894a73e9bbe7ee3b14562359553f631abd712 [INFO] running `Command { std: "docker" "start" "-a" "17f1d9587e05ed15791f0c35da9894a73e9bbe7ee3b14562359553f631abd712", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17f1d9587e05ed15791f0c35da9894a73e9bbe7ee3b14562359553f631abd712", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17f1d9587e05ed15791f0c35da9894a73e9bbe7ee3b14562359553f631abd712", kill_on_drop: false }` [INFO] [stdout] 17f1d9587e05ed15791f0c35da9894a73e9bbe7ee3b14562359553f631abd712 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de72ac261ade1753b6d52291466d1af949cce8baf441789570721f72d20a79ad [INFO] running `Command { std: "docker" "start" "-a" "de72ac261ade1753b6d52291466d1af949cce8baf441789570721f72d20a79ad", kill_on_drop: false }` [INFO] [stderr] Checking implementation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/minimax_algo.rs:89:142 [INFO] [stdout] | [INFO] [stdout] 89 | ... let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| (-s)), depth, (_min_i,... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| (-s)), depth, (_min_i, _min_j)); [INFO] [stdout] 89 + let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| -s), depth, (_min_i, _min_j)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `implementation` (bin "implementation") due to 7 previous errors; 1 warning emitted [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 86 | if (&(*stack[elem]).board[_min_i])[_min_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 86 | if (&(*stack[elem]).board)[_min_i][_min_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 110 | if (&(*stack[elem]).board[_max_i])[_max_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 110 | if (&(*stack[elem]).board)[_max_i][_max_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(*ptr_state).branches[i]).score} { [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(*ptr_state).branches[i]).score} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(&(*ptr_state).branches)[i]).score} { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(*ptr_state).branches[0]).moved}; [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(*ptr_state).branches[0]).moved}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(&(*ptr_state).branches)[0]).moved}; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(*ptr_state).branches[0]).score} { [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(*ptr_state).branches[0]).score} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(&(*ptr_state).branches)[0]).score} { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/minimax_algo.rs:89:142 [INFO] [stdout] | [INFO] [stdout] 89 | ... let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| (-s)), depth, (_min_i,... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| (-s)), depth, (_min_i, _min_j)); [INFO] [stdout] 89 + let new_ptr: *mut State = allocate_state(temp_board.clone(), vec![], evaluate(&temp_board, min_char).map(|s| -s), depth, (_min_i, _min_j)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 86 | if (&(*stack[elem]).board[_min_i])[_min_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/minimax_algo.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | ... if (*stack[elem]).board[_min_i][_min_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 86 | if (&(*stack[elem]).board)[_min_i][_min_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 110 | if (&(*stack[elem]).board[_max_i])[_max_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^-----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/minimax_algo.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | ... if (*stack[elem]).board[_max_i][_max_j] == '_' { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 110 | if (&(*stack[elem]).board)[_max_i][_max_j] == '_' { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(*ptr_state).branches[i]).score} { [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(*ptr_state).branches[i]).score} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 158 | match unsafe{(*(&(*ptr_state).branches)[i]).score} { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(*ptr_state).branches[0]).moved}; [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(*ptr_state).branches[0]).moved}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 168 | best_move = unsafe{(*(&(*ptr_state).branches)[0]).moved}; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/minimax_algo.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(*ptr_state).branches[0]).score} { [INFO] [stdout] | ^^---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut State` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec<*mut State>` [INFO] [stdout] --> src/minimax_algo.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(*ptr_state).branches[0]).score} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 175 | match unsafe{(*(&(*ptr_state).branches)[0]).score} { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `implementation` (bin "implementation" test) due to 7 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "de72ac261ade1753b6d52291466d1af949cce8baf441789570721f72d20a79ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de72ac261ade1753b6d52291466d1af949cce8baf441789570721f72d20a79ad", kill_on_drop: false }` [INFO] [stdout] de72ac261ade1753b6d52291466d1af949cce8baf441789570721f72d20a79ad