[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#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [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 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_lex v0.2.4 [INFO] [stderr] Downloaded os_str_bytes v6.5.1 [INFO] [stderr] Downloaded ignore v0.4.20 [INFO] [stderr] Downloaded entropy-lib v1.0.2 [INFO] [stderr] Downloaded globset v0.4.11 [INFO] [stderr] Downloaded encoding_rs_io v0.1.7 [INFO] [stderr] Downloaded quote v1.0.31 [INFO] [stderr] Downloaded clap v4.3.17 [INFO] [stderr] Downloaded syn v2.0.26 [INFO] [stderr] Downloaded clap_builder v4.3.17 [INFO] [stderr] Downloaded clap v3.2.25 [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15d316104a183de731ef50b92bdbe08dfbd6e8ebb362b8a59f74059bc575712e [INFO] running `Command { std: "docker" "start" "-a" "15d316104a183de731ef50b92bdbe08dfbd6e8ebb362b8a59f74059bc575712e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15d316104a183de731ef50b92bdbe08dfbd6e8ebb362b8a59f74059bc575712e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15d316104a183de731ef50b92bdbe08dfbd6e8ebb362b8a59f74059bc575712e", kill_on_drop: false }` [INFO] [stdout] 15d316104a183de731ef50b92bdbe08dfbd6e8ebb362b8a59f74059bc575712e [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3908d3e9266cb46fdb99bec426657b1cacc9e66f7c87c91b1a1a6cab66b88655 [INFO] running `Command { std: "docker" "start" "-a" "3908d3e9266cb46fdb99bec426657b1cacc9e66f7c87c91b1a1a6cab66b88655", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking os_str_bytes v6.5.1 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking regex-automata v0.3.3 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking bstr v1.6.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking clap_lex v0.2.4 [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 chardet v0.2.4 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking rustix v0.38.4 [INFO] [stderr] Checking indexmap v1.9.3 [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 clap v3.2.25 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking regex v1.9.1 [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 globset v0.4.11 [INFO] [stderr] Checking clap_builder v4.3.17 [INFO] [stderr] Checking ignore v0.4.20 [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 thiserror v1.0.43 [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: 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/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: 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: 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: 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: 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 3.85s [INFO] running `Command { std: "docker" "inspect" "3908d3e9266cb46fdb99bec426657b1cacc9e66f7c87c91b1a1a6cab66b88655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3908d3e9266cb46fdb99bec426657b1cacc9e66f7c87c91b1a1a6cab66b88655", kill_on_drop: false }` [INFO] [stdout] 3908d3e9266cb46fdb99bec426657b1cacc9e66f7c87c91b1a1a6cab66b88655