[INFO] cloning repository https://github.com/henke443/reno [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/henke443/reno" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenke443%2Freno", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenke443%2Freno'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 176fdaf47bbd531fdc7cc28b2e94e3f5a78b6560 [INFO] checking henke443/reno against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenke443%2Freno" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/henke443/reno on toolchain 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/henke443/reno [INFO] finished tweaking git repo https://github.com/henke443/reno [INFO] tweaked toml for git repo https://github.com/henke443/reno written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/henke443/reno 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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded entropy-lib v1.0.2 [INFO] [stderr] Downloaded globset v0.4.11 [INFO] [stderr] Downloaded clap v4.3.17 [INFO] [stderr] Downloaded clap_builder v4.3.17 [INFO] [stderr] Downloaded chardet v0.2.4 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f9f30edd6d201c5132f3969736d6b9fc7ad137b32b935a4c7e68beb0b2cb0b0 [INFO] running `Command { std: "docker" "start" "-a" "7f9f30edd6d201c5132f3969736d6b9fc7ad137b32b935a4c7e68beb0b2cb0b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f9f30edd6d201c5132f3969736d6b9fc7ad137b32b935a4c7e68beb0b2cb0b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f9f30edd6d201c5132f3969736d6b9fc7ad137b32b935a4c7e68beb0b2cb0b0", kill_on_drop: false }` [INFO] [stdout] 7f9f30edd6d201c5132f3969736d6b9fc7ad137b32b935a4c7e68beb0b2cb0b0 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] deb316bc0377bb3f254f39d502b99434a711ee838c05e5df82b93e4719fceda9 [INFO] running `Command { std: "docker" "start" "-a" "deb316bc0377bb3f254f39d502b99434a711ee838c05e5df82b93e4719fceda9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking os_str_bytes v6.5.1 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking chardet v0.2.4 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking bstr v1.6.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Compiling syn v2.0.26 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking regex-automata v0.3.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking tempfile v3.7.0 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking clap_builder v4.3.17 [INFO] [stderr] Checking entropy-lib v1.0.2 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking globset v0.4.11 [INFO] [stderr] Checking ignore v0.4.20 [INFO] [stderr] Checking clap v4.3.17 [INFO] [stderr] Checking reno v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/replace/contents.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/replace/contents.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:217:16 [INFO] [stdout] | [INFO] [stdout] 217 | if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] 217 + if search_byte.value != potential_match[search_i] && !search_byte.is_wildcard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - if (matched) { [INFO] [stdout] 223 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (matched) { [INFO] [stdout] 239 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/walk.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | ... if (!b_bin || b_verbose) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (!b_bin || b_verbose) { [INFO] [stdout] 105 + if !b_bin || b_verbose { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `contents::*` [INFO] [stdout] --> src/replace/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use contents::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `names::*` [INFO] [stdout] --> src/replace/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use names::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/replace/contents.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/replace/contents.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:217:16 [INFO] [stdout] | [INFO] [stdout] 217 | if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] 217 + if search_byte.value != potential_match[search_i] && !search_byte.is_wildcard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - if (matched) { [INFO] [stdout] 223 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (matched) { [INFO] [stdout] 239 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/walk.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | ... if (!b_bin || b_verbose) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (!b_bin || b_verbose) { [INFO] [stdout] 105 + if !b_bin || b_verbose { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `contents::*` [INFO] [stdout] --> src/replace/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use contents::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `names::*` [INFO] [stdout] --> src/replace/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use names::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/glob_walk.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | self.0.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/glob_walk.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | self.0.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `replacement_infos` is never read [INFO] [stdout] --> src/replace/contents.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replacement_infos: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `file_size` is assigned to, but never used [INFO] [stdout] --> src/replace/walk.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let file_size; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_file_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_size` is never read [INFO] [stdout] --> src/replace/walk.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | file_size = metadata.len(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/glob_walk.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GlobWalkerBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn new(base: P, pattern: S) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn min_depth(mut self, depth: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn max_open(mut self, n: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn sort_by(mut self, cmp: F) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn contents_first(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn case_insensitive(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn file_type(mut self, file_type: FileType) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glob_builder` is never used [INFO] [stdout] --> src/glob_walk.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn glob_builder>(pattern: S) -> GlobWalkerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glob` is never used [INFO] [stdout] --> src/glob_walk.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 470 | pub fn glob>(pattern: S) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyFile` and `NoMatchesFound` are never constructed [INFO] [stdout] --> src/replace/contents.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum DoContentError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | #[error("Empty file\n")] [INFO] [stdout] 28 | EmptyFile, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | NoMatchesFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoContentError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/replace/contents.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ContentReplacementInfo { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/replace/names.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct NameReplacementInfo { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 26 | pub did_change: bool, [INFO] [stdout] 27 | pub path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NameReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/names.rs:43:70 [INFO] [stdout] | [INFO] [stdout] 43 | .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 44 | | .clone() [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::ffi::OsStr` does not implement `Clone`, so calling `clone` on `&std::ffi::OsStr` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 43 - .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] 44 - .clone() [INFO] [stdout] 43 + .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/walk.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | println!("Replace regex: {}", replacer_string.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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `replacement_infos` is never read [INFO] [stdout] --> src/replace/contents.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replacement_infos: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `file_size` is assigned to, but never used [INFO] [stdout] --> src/replace/walk.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let file_size; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_file_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_size` is never read [INFO] [stdout] --> src/replace/walk.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | file_size = metadata.len(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/test.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let expected: Vec<_> = [ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob` [INFO] [stdout] --> src/test.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let glob = GlobWalkerBuilder::from_patterns(dir_path, &patterns) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_glob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `min_depth`, `max_open`, and `contents_first` are never used [INFO] [stdout] --> src/glob_walk.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GlobWalkerBuilder { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn min_depth(mut self, depth: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn max_open(mut self, n: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn contents_first(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyFile` and `NoMatchesFound` are never constructed [INFO] [stdout] --> src/replace/contents.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum DoContentError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | #[error("Empty file\n")] [INFO] [stdout] 28 | EmptyFile, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | NoMatchesFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoContentError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/replace/contents.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ContentReplacementInfo { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/replace/names.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct NameReplacementInfo { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 26 | pub did_change: bool, [INFO] [stdout] 27 | pub path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NameReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equate_to_expected` is never used [INFO] [stdout] --> src/test.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn equate_to_expected(g: GlobWalker, mut expected: Vec, dir_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/names.rs:43:70 [INFO] [stdout] | [INFO] [stdout] 43 | .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 44 | | .clone() [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::ffi::OsStr` does not implement `Clone`, so calling `clone` on `&std::ffi::OsStr` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 43 - .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] 44 - .clone() [INFO] [stdout] 43 + .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/walk.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | println!("Replace regex: {}", replacer_string.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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.60s [INFO] running `Command { std: "docker" "inspect" "deb316bc0377bb3f254f39d502b99434a711ee838c05e5df82b93e4719fceda9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "deb316bc0377bb3f254f39d502b99434a711ee838c05e5df82b93e4719fceda9", kill_on_drop: false }` [INFO] [stdout] deb316bc0377bb3f254f39d502b99434a711ee838c05e5df82b93e4719fceda9 [INFO] checking henke443/reno against try#6289438dbad80b1a0029c66dd3f6abf57c2c51be for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenke443%2Freno" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/henke443/reno on toolchain 6289438dbad80b1a0029c66dd3f6abf57c2c51be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/henke443/reno [INFO] finished tweaking git repo https://github.com/henke443/reno [INFO] tweaked toml for git repo https://github.com/henke443/reno written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/henke443/reno 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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06465fc6e8f6f15d939b54a3bf4ef084172bd360b4604122aaacb5c670267c04 [INFO] running `Command { std: "docker" "start" "-a" "06465fc6e8f6f15d939b54a3bf4ef084172bd360b4604122aaacb5c670267c04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06465fc6e8f6f15d939b54a3bf4ef084172bd360b4604122aaacb5c670267c04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06465fc6e8f6f15d939b54a3bf4ef084172bd360b4604122aaacb5c670267c04", kill_on_drop: false }` [INFO] [stdout] 06465fc6e8f6f15d939b54a3bf4ef084172bd360b4604122aaacb5c670267c04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04a52f1aaa10df4b76527d84bd456bac24899c5a7a00f36ef9991290d093f9c9 [INFO] running `Command { std: "docker" "start" "-a" "04a52f1aaa10df4b76527d84bd456bac24899c5a7a00f36ef9991290d093f9c9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking os_str_bytes v6.5.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking bstr v1.6.0 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking chardet v0.2.4 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling syn v2.0.26 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking regex-automata v0.3.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking tempfile v3.7.0 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking clap_builder v4.3.17 [INFO] [stderr] Checking entropy-lib v1.0.2 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking globset v0.4.11 [INFO] [stderr] Checking ignore v0.4.20 [INFO] [stderr] Checking clap v4.3.17 [INFO] [stderr] Checking reno v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/replace/contents.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/replace/contents.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:217:16 [INFO] [stdout] | [INFO] [stdout] 217 | if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] 217 + if search_byte.value != potential_match[search_i] && !search_byte.is_wildcard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - if (matched) { [INFO] [stdout] 223 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (matched) { [INFO] [stdout] 239 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/walk.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | ... if (!b_bin || b_verbose) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (!b_bin || b_verbose) { [INFO] [stdout] 105 + if !b_bin || b_verbose { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `contents::*` [INFO] [stdout] --> src/replace/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use contents::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `names::*` [INFO] [stdout] --> src/replace/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use names::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/glob_walk.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | self.0.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/replace/contents.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/replace/contents.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:217:16 [INFO] [stdout] | [INFO] [stdout] 217 | if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (search_byte.value != potential_match[search_i] && !search_byte.is_wildcard) { [INFO] [stdout] 217 + if search_byte.value != potential_match[search_i] && !search_byte.is_wildcard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - if (matched) { [INFO] [stdout] 223 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/contents.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | if (matched) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (matched) { [INFO] [stdout] 239 + if matched { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/replace/walk.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | ... if (!b_bin || b_verbose) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (!b_bin || b_verbose) { [INFO] [stdout] 105 + if !b_bin || b_verbose { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `contents::*` [INFO] [stdout] --> src/replace/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use contents::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `names::*` [INFO] [stdout] --> src/replace/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use names::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `replacement_infos` is never read [INFO] [stdout] --> src/replace/contents.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replacement_infos: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/glob_walk.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | self.0.description() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `file_size` is assigned to, but never used [INFO] [stdout] --> src/replace/walk.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let file_size; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_file_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_size` is never read [INFO] [stdout] --> src/replace/walk.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | file_size = metadata.len(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/glob_walk.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GlobWalkerBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn new(base: P, pattern: S) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn min_depth(mut self, depth: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn max_open(mut self, n: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn sort_by(mut self, cmp: F) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn contents_first(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn case_insensitive(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn file_type(mut self, file_type: FileType) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glob_builder` is never used [INFO] [stdout] --> src/glob_walk.rs:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | pub fn glob_builder>(pattern: S) -> GlobWalkerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glob` is never used [INFO] [stdout] --> src/glob_walk.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 470 | pub fn glob>(pattern: S) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyFile` and `NoMatchesFound` are never constructed [INFO] [stdout] --> src/replace/contents.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum DoContentError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | #[error("Empty file\n")] [INFO] [stdout] 28 | EmptyFile, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | NoMatchesFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoContentError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/replace/contents.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ContentReplacementInfo { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/replace/names.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct NameReplacementInfo { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 26 | pub did_change: bool, [INFO] [stdout] 27 | pub path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NameReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/names.rs:43:70 [INFO] [stdout] | [INFO] [stdout] 43 | .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 44 | | .clone() [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::ffi::OsStr` does not implement `Clone`, so calling `clone` on `&std::ffi::OsStr` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 43 - .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] 44 - .clone() [INFO] [stdout] 43 + .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/walk.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | println!("Replace regex: {}", replacer_string.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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `replacement_infos` is never read [INFO] [stdout] --> src/replace/contents.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replacement_infos: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `file_size` is assigned to, but never used [INFO] [stdout] --> src/replace/walk.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let file_size; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_file_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_size` is never read [INFO] [stdout] --> src/replace/walk.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | file_size = metadata.len(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/test.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let expected: Vec<_> = [ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob` [INFO] [stdout] --> src/test.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let glob = GlobWalkerBuilder::from_patterns(dir_path, &patterns) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_glob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `min_depth`, `max_open`, and `contents_first` are never used [INFO] [stdout] --> src/glob_walk.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GlobWalkerBuilder { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn min_depth(mut self, depth: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn max_open(mut self, n: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn contents_first(mut self, yes: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EmptyFile` and `NoMatchesFound` are never constructed [INFO] [stdout] --> src/replace/contents.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum DoContentError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | #[error("Empty file\n")] [INFO] [stdout] 28 | EmptyFile, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | NoMatchesFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoContentError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/replace/contents.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ContentReplacementInfo { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/replace/names.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct NameReplacementInfo { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 26 | pub did_change: bool, [INFO] [stdout] 27 | pub path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NameReplacementInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equate_to_expected` is never used [INFO] [stdout] --> src/test.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn equate_to_expected(g: GlobWalker, mut expected: Vec, dir_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/names.rs:43:70 [INFO] [stdout] | [INFO] [stdout] 43 | .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 44 | | .clone() [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::ffi::OsStr` does not implement `Clone`, so calling `clone` on `&std::ffi::OsStr` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 43 - .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] 44 - .clone() [INFO] [stdout] 43 + .context(DoNamesError::InvalidFilename(Box::from(old_path)))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace/walk.rs:60:50 [INFO] [stdout] | [INFO] [stdout] 60 | println!("Replace regex: {}", replacer_string.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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.61s [INFO] running `Command { std: "docker" "inspect" "04a52f1aaa10df4b76527d84bd456bac24899c5a7a00f36ef9991290d093f9c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04a52f1aaa10df4b76527d84bd456bac24899c5a7a00f36ef9991290d093f9c9", kill_on_drop: false }` [INFO] [stdout] 04a52f1aaa10df4b76527d84bd456bac24899c5a7a00f36ef9991290d093f9c9