[INFO] updating cached repository https://github.com/AngelVI13/rustoe [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 51a0b26d56662d94b6a24e3495bb719fef82ee31 [INFO] testing AngelVI13/rustoe against 1.38.0 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngelVI13%2Frustoe" "work/builds/worker-0/source"` [INFO] [stderr] Cloning into 'work/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AngelVI13/rustoe on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/AngelVI13/rustoe [INFO] finished tweaking git repo https://github.com/AngelVI13/rustoe [INFO] tweaked toml for git repo https://github.com/AngelVI13/rustoe written to work/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/AngelVI13/rustoe already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-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" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] 4dfefb91a1366ea22888819a132c483978c139d6f9daa58efe8cb536f78d6ee0 [INFO] running `"docker" "start" "-a" "4dfefb91a1366ea22888819a132c483978c139d6f9daa58efe8cb536f78d6ee0"` [INFO] [stderr] Compiling tttoe v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `crate::defines::*` [INFO] [stderr] --> src/uct.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::defines::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `NodeData`, `NodeId` [INFO] [stderr] --> src/uct.rs:5:32 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::node::{Arena, Node, NodeId, NodeData}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NodeData` [INFO] [stderr] --> src/main.rs:8:19 [INFO] [stderr] | [INFO] [stderr] 8 | use node::{Arena, NodeData}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uct::uct` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use uct::uct; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arena` [INFO] [stderr] --> src/main.rs:18:13 [INFO] [stderr] | [INFO] [stderr] 18 | let mut arena = Arena::new(); [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_arena` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let mut arena = Arena::new(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0502]: cannot borrow `*arena` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/uct.rs:20:55 [INFO] [stderr] | [INFO] [stderr] 14 | let mut node = &mut arena.nodes[rootnode_id.index]; [INFO] [stderr] | ----------- mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 20 | let selected_child_id = node.select_child(arena); [INFO] [stderr] | ------------ ^^^^^ immutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] | mutable borrow later used by call [INFO] [stderr] [INFO] [stderr] error[E0499]: cannot borrow `*arena` as mutable more than once at a time [INFO] [stderr] --> src/uct.rs:33:47 [INFO] [stderr] | [INFO] [stderr] 14 | let mut node = &mut arena.nodes[rootnode_id.index]; [INFO] [stderr] | ----------- first mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 33 | let new_child_id = node.add_child(arena, move_, &state); [INFO] [stderr] | --------- ^^^^^ second mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] | first borrow later used by call [INFO] [stderr] [INFO] [stderr] error[E0499]: cannot borrow `*arena` as mutable more than once at a time [INFO] [stderr] --> src/uct.rs:64:21 [INFO] [stderr] | [INFO] [stderr] 62 | let rootnode = arena.get(&rootnode_id); [INFO] [stderr] | ----- first mutable borrow occurs here [INFO] [stderr] 63 | for child_id in rootnode.children.iter() { [INFO] [stderr] | ------------------------ first borrow later used here [INFO] [stderr] 64 | let child = arena.get(child_id); [INFO] [stderr] | ^^^^^ second mutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0499, E0502. [INFO] [stderr] For more information about an error, try `rustc --explain E0499`. [INFO] [stderr] error: Could not compile `tttoe`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "4dfefb91a1366ea22888819a132c483978c139d6f9daa58efe8cb536f78d6ee0"` [INFO] running `"docker" "rm" "-f" "4dfefb91a1366ea22888819a132c483978c139d6f9daa58efe8cb536f78d6ee0"` [INFO] [stdout] 4dfefb91a1366ea22888819a132c483978c139d6f9daa58efe8cb536f78d6ee0