[INFO] cloning repository https://github.com/bastian-heinen/wordle [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bastian-heinen/wordle" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbastian-heinen%2Fwordle", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbastian-heinen%2Fwordle'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9a13abee0ce69d4d4277c79eb1c5ebad8ab83e8 [INFO] testing bastian-heinen/wordle against try#a7ee93192a766fb0dafa23def7154fc03cfcfc3e for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbastian-heinen%2Fwordle" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bastian-heinen/wordle [INFO] finished tweaking git repo https://github.com/bastian-heinen/wordle [INFO] tweaked toml for git repo https://github.com/bastian-heinen/wordle written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bastian-heinen/wordle on toolchain a7ee93192a766fb0dafa23def7154fc03cfcfc3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bastian-heinen/wordle 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" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14cb701a2092760f734b9b3c7da536746221708eca9318d751eaf0bc9d8fa188 [INFO] running `Command { std: "docker" "start" "-a" "14cb701a2092760f734b9b3c7da536746221708eca9318d751eaf0bc9d8fa188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14cb701a2092760f734b9b3c7da536746221708eca9318d751eaf0bc9d8fa188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14cb701a2092760f734b9b3c7da536746221708eca9318d751eaf0bc9d8fa188", kill_on_drop: false }` [INFO] [stdout] 14cb701a2092760f734b9b3c7da536746221708eca9318d751eaf0bc9d8fa188 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a19a77aa06eee36e745a034c36881c28935baf88218a477556a3dab9bd216d03 [INFO] running `Command { std: "docker" "start" "-a" "a19a77aa06eee36e745a034c36881c28935baf88218a477556a3dab9bd216d03", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling wordle v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let boo = Trie::lookup(t, "bla"); [INFO] [stdout] | ------------ ^ expected `&Box`, found `Box` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Box<_>` [INFO] [stdout] found struct `Box<_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/dict.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn lookup(t: &Box, word: &str) -> bool { [INFO] [stdout] | ^^^^^^ ------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let boo = Trie::lookup(&t, "bla"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `temp.weight`, which is behind a `&` reference [INFO] [stdout] --> src/dict.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | temp.weight += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `temp` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 21 | let mut temp = &mut t; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `temp.children[_]`, which is behind a `&` reference [INFO] [stdout] --> src/dict.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | temp.children[*b as usize] = Some(new_node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `temp` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 21 | let mut temp = &mut t; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `new_node` does not live long enough [INFO] [stdout] --> src/dict.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 30 | let new_node = Box::new(Self::create()); [INFO] [stdout] | -------- binding `new_node` declared here [INFO] [stdout] 31 | temp.children[*b as usize] = Some(new_node); [INFO] [stdout] 32 | &new_node [INFO] [stdout] | ^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 33 | }, [INFO] [stdout] | - `new_node` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `new_node` [INFO] [stdout] --> src/dict.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 30 | let new_node = Box::new(Self::create()); [INFO] [stdout] | -------- move occurs because `new_node` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] 31 | temp.children[*b as usize] = Some(new_node); [INFO] [stdout] | -------- value moved here [INFO] [stdout] 32 | &new_node [INFO] [stdout] | ^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: if `Trie` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/dict.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Trie { [INFO] [stdout] | ^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 31 | temp.children[*b as usize] = Some(new_node); [INFO] [stdout] | -------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `temp.weight`, which is behind a `&` reference [INFO] [stdout] --> src/dict.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | temp.weight += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `temp` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 21 | let mut temp = &mut t; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `temp.children[_]` as enum variant `Some` which is behind a shared reference [INFO] [stdout] --> src/dict.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(t) = temp.children[*b as usize] { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `t` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(t) = &temp.children[*b as usize] { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t` does not live long enough [INFO] [stdout] --> src/dict.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(t) = temp.children[*b as usize] { [INFO] [stdout] | - -------------------------- borrow later used here [INFO] [stdout] | | [INFO] [stdout] | binding `t` declared here [INFO] [stdout] 48 | temp = &t; [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] 49 | } else { [INFO] [stdout] | - `t` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/dict.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | fn read_dict_from_file(filename : &str, k: u32) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/dict.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 87 | fn read_dict_from_file(filename : &str, k: u32) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0507, E0594, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wordle` (bin "wordle") due to 8 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a19a77aa06eee36e745a034c36881c28935baf88218a477556a3dab9bd216d03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a19a77aa06eee36e745a034c36881c28935baf88218a477556a3dab9bd216d03", kill_on_drop: false }` [INFO] [stdout] a19a77aa06eee36e745a034c36881c28935baf88218a477556a3dab9bd216d03