[INFO] cloning repository https://github.com/Zokol/overlapping-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zokol/overlapping-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZokol%2Foverlapping-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZokol%2Foverlapping-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9341d4ca0dccf343dc3fbb2fffbd63a090e4e97 [INFO] checking Zokol/overlapping-rust against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZokol%2Foverlapping-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Zokol/overlapping-rust [INFO] finished tweaking git repo https://github.com/Zokol/overlapping-rust [INFO] tweaked toml for git repo https://github.com/Zokol/overlapping-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Zokol/overlapping-rust on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Zokol/overlapping-rust 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f99a9d54a97eba76a99a302f47776e520cc207f3e163227afdcc00461cba52ba [INFO] running `Command { std: "docker" "start" "-a" "f99a9d54a97eba76a99a302f47776e520cc207f3e163227afdcc00461cba52ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f99a9d54a97eba76a99a302f47776e520cc207f3e163227afdcc00461cba52ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f99a9d54a97eba76a99a302f47776e520cc207f3e163227afdcc00461cba52ba", kill_on_drop: false }` [INFO] [stdout] f99a9d54a97eba76a99a302f47776e520cc207f3e163227afdcc00461cba52ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1019b02241533f5e614dcc7172d2757f5f83ba8f93509e7cfd6b27430fbeed2f [INFO] running `Command { std: "docker" "start" "-a" "1019b02241533f5e614dcc7172d2757f5f83ba8f93509e7cfd6b27430fbeed2f", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.9 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking overlapping-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | if(permutation.2.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - if(permutation.2.len() == 0) { [INFO] [stdout] 95 + if permutation.2.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:100:15 [INFO] [stdout] | [INFO] [stdout] 100 | if(permutation.0.eq(next_word) && !used_words.contains(&permutation.1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 100 - if(permutation.0.eq(next_word) && !used_words.contains(&permutation.1)) { [INFO] [stdout] 100 + if permutation.0.eq(next_word) && !used_words.contains(&permutation.1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | if(cannot_find_next_word) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(cannot_find_next_word) { [INFO] [stdout] 112 + if cannot_find_next_word { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 116 | if(!cannot_find_next_word) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if(!cannot_find_next_word) { [INFO] [stdout] 116 + if !cannot_find_next_word { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::RangeBounds` [INFO] [stdout] --> src/main.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{collections::{HashMap, HashSet}, ops::RangeBounds}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_compressed` is never used [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn print_compressed(permutations: &Permutations) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_overlap` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn print_overlap(word1: &str, word2: &str, overlap_range: Range) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let mut next_word = best_starting_word.0.clone().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | let mut next_word = best_starting_word.0.clone().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/main.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | fn score_overlaps<'a>(word_list: &'a Vec<&'a str>) -> Permutations { [INFO] [stdout] | -- -- ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 126 | fn score_overlaps<'a>(word_list: &'a Vec<&'a str>) -> Permutations<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | if(permutation.2.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - if(permutation.2.len() == 0) { [INFO] [stdout] 95 + if permutation.2.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:100:15 [INFO] [stdout] | [INFO] [stdout] 100 | if(permutation.0.eq(next_word) && !used_words.contains(&permutation.1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 100 - if(permutation.0.eq(next_word) && !used_words.contains(&permutation.1)) { [INFO] [stdout] 100 + if permutation.0.eq(next_word) && !used_words.contains(&permutation.1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | if(cannot_find_next_word) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(cannot_find_next_word) { [INFO] [stdout] 112 + if cannot_find_next_word { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 116 | if(!cannot_find_next_word) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - if(!cannot_find_next_word) { [INFO] [stdout] 116 + if !cannot_find_next_word { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::RangeBounds` [INFO] [stdout] --> src/main.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{collections::{HashMap, HashSet}, ops::RangeBounds}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_overlap` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn print_overlap(word1: &str, word2: &str, overlap_range: Range) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let mut next_word = best_starting_word.0.clone().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | let mut next_word = best_starting_word.0.clone().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/main.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | fn score_overlaps<'a>(word_list: &'a Vec<&'a str>) -> Permutations { [INFO] [stdout] | -- -- ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 126 | fn score_overlaps<'a>(word_list: &'a Vec<&'a str>) -> Permutations<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.10s [INFO] running `Command { std: "docker" "inspect" "1019b02241533f5e614dcc7172d2757f5f83ba8f93509e7cfd6b27430fbeed2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1019b02241533f5e614dcc7172d2757f5f83ba8f93509e7cfd6b27430fbeed2f", kill_on_drop: false }` [INFO] [stdout] 1019b02241533f5e614dcc7172d2757f5f83ba8f93509e7cfd6b27430fbeed2f