[INFO] cloning repository https://github.com/Mau38/wordleBot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mau38/wordleBot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMau38%2FwordleBot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMau38%2FwordleBot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46cf36b77220ad57b47883b7ac9cf4e89d0e89a4 [INFO] checking Mau38/wordleBot against try#099e089ab723e6ee96175f3496051098c60a4cd4 for pr-140208 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMau38%2FwordleBot" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mau38/wordleBot on toolchain 099e089ab723e6ee96175f3496051098c60a4cd4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Mau38/wordleBot [INFO] finished tweaking git repo https://github.com/Mau38/wordleBot [INFO] tweaked toml for git repo https://github.com/Mau38/wordleBot written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Mau38/wordleBot 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" "+099e089ab723e6ee96175f3496051098c60a4cd4" "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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6aa75053be3ca2d0c982a0139deda2257558f88ffc46e16202e54066c1d9cd55 [INFO] running `Command { std: "docker" "start" "-a" "6aa75053be3ca2d0c982a0139deda2257558f88ffc46e16202e54066c1d9cd55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6aa75053be3ca2d0c982a0139deda2257558f88ffc46e16202e54066c1d9cd55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aa75053be3ca2d0c982a0139deda2257558f88ffc46e16202e54066c1d9cd55", kill_on_drop: false }` [INFO] [stdout] 6aa75053be3ca2d0c982a0139deda2257558f88ffc46e16202e54066c1d9cd55 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9e6bc2e8e0a3f067b87f54012f75b3dbf3024ecc4e3bd29441260a024179368 [INFO] running `Command { std: "docker" "start" "-a" "e9e6bc2e8e0a3f067b87f54012f75b3dbf3024ecc4e3bd29441260a024179368", kill_on_drop: false }` [INFO] [stderr] Checking wordleBot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in statics [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | static WORDS_PATH: String = String::from("./words.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `>::from` in statics [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | static WORDS_PATH: String = String::from("./words.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn solve( [INFO] [stdout] | ----- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 35 | ) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ expected `Vec<&String>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<&String>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: consider returning the local binding `words` [INFO] [stdout] | [INFO] [stdout] 36 | ) -> Vec<&String> { [INFO] [stdout] 37 + words [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn solve( [INFO] [stdout] | ----- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 35 | ) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ expected `Vec<&String>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<&String>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: consider returning the local binding `words` [INFO] [stdout] | [INFO] [stdout] 36 | ) -> Vec<&String> { [INFO] [stdout] 37 + words [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of static item `WORDS_PATH` [INFO] [stdout] --> src/main.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | let file = File::open(WORDS_PATH)?; [INFO] [stdout] | ^^^^^^^^^^ move occurs because `WORDS_PATH` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 14 | let file = File::open(WORDS_PATH.clone())?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of static item `WORDS_PATH` [INFO] [stdout] --> src/main.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | let file = File::open(WORDS_PATH)?; [INFO] [stdout] | ^^^^^^^^^^ move occurs because `WORDS_PATH` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 14 | let file = File::open(WORDS_PATH.clone())?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `word` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | words.push(&word); [INFO] [stdout] | ----- `word` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 27 | words [INFO] [stdout] | ^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `word` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | words.push(&word); [INFO] [stdout] | ----- `word` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 27 | words [INFO] [stdout] | ^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | // words [INFO] [stdout] 40 | || .to_owned() [INFO] [stdout] | ||___________________- temporary value created here [INFO] [stdout] 41 | | .iter() [INFO] [stdout] 42 | | .filter(|word| greys.iter().any(|grey| word.contains(*grey))) [INFO] [stdout] 43 | | .collect() [INFO] [stdout] | |___________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | // words [INFO] [stdout] 40 | || .to_owned() [INFO] [stdout] | ||___________________- temporary value created here [INFO] [stdout] 41 | | .iter() [INFO] [stdout] 42 | | .filter(|word| greys.iter().any(|grey| word.contains(*grey))) [INFO] [stdout] 43 | | .collect() [INFO] [stdout] | |___________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0308, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0308, E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wordleBot` (bin "wordleBot") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `wordleBot` (bin "wordleBot" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e9e6bc2e8e0a3f067b87f54012f75b3dbf3024ecc4e3bd29441260a024179368", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9e6bc2e8e0a3f067b87f54012f75b3dbf3024ecc4e3bd29441260a024179368", kill_on_drop: false }` [INFO] [stdout] e9e6bc2e8e0a3f067b87f54012f75b3dbf3024ecc4e3bd29441260a024179368