[INFO] cloning repository https://github.com/vitiral/replace.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vitiral/replace.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitiral%2Freplace.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitiral%2Freplace.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 246ff7c9b8b91c5d81d8ee41d25d42020e731f03 [INFO] testing vitiral/replace.rs against master#9e297bf54d31eb3b30067208ff9af4416945a2ed for pr-125507 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitiral%2Freplace.rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vitiral/replace.rs on toolchain 9e297bf54d31eb3b30067208ff9af4416945a2ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vitiral/replace.rs [INFO] finished tweaking git repo https://github.com/vitiral/replace.rs [INFO] tweaked toml for git repo https://github.com/vitiral/replace.rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vitiral/replace.rs 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" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thread_local v0.3.2 [INFO] [stderr] Downloaded backtrace v0.3.0 [INFO] [stderr] Downloaded maplit v0.1.4 [INFO] [stderr] Downloaded backtrace-sys v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b59fd7099fbbeab7b060e7c7c3cd549be3ed1c3f657da2003e0f351743879e3b [INFO] running `Command { std: "docker" "start" "-a" "b59fd7099fbbeab7b060e7c7c3cd549be3ed1c3f657da2003e0f351743879e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b59fd7099fbbeab7b060e7c7c3cd549be3ed1c3f657da2003e0f351743879e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b59fd7099fbbeab7b060e7c7c3cd549be3ed1c3f657da2003e0f351743879e3b", kill_on_drop: false }` [INFO] [stdout] b59fd7099fbbeab7b060e7c7c3cd549be3ed1c3f657da2003e0f351743879e3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b47d31f8b8e1391e59b36673ce1d03c7fb3799c1ca02ab4042c05a009140c78a [INFO] running `Command { std: "docker" "start" "-a" "b47d31f8b8e1391e59b36673ce1d03c7fb3799c1ca02ab4042c05a009140c78a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.20 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling gcc v0.3.43 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling backtrace v0.3.0 [INFO] [stderr] Compiling cfg-if v0.1.0 [INFO] [stderr] Compiling rustc-demangle v0.1.3 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling same-file v0.1.3 [INFO] [stderr] Compiling unicode-segmentation v1.1.0 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling regex-syntax v0.4.0 [INFO] [stderr] Compiling vec_map v0.6.0 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling unreachable v0.1.1 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling maplit v0.1.4 [INFO] [stderr] Compiling walkdir v1.0.7 [INFO] [stderr] Compiling dbghelp-sys v0.2.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling thread-id v3.0.0 [INFO] [stderr] Compiling memchr v1.0.1 [INFO] [stderr] Compiling term_size v0.2.2 [INFO] [stderr] Compiling thread_local v0.3.2 [INFO] [stderr] Compiling clap v2.20.3 [INFO] [stderr] Compiling backtrace-sys v0.1.7 [INFO] [stderr] Compiling aho-corasick v0.6.2 [INFO] [stderr] Compiling regex v0.2.1 [INFO] [stderr] Compiling error-chain v0.9.0 [INFO] [stderr] Compiling replace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/types.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | /// Library Error and Result types [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` 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/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / error_chain! { [INFO] [stdout] 14 | | types { [INFO] [stdout] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stdout] 16 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / error_chain! { [INFO] [stdout] 14 | | types { [INFO] [stdout] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stdout] 16 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/replace.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | &Groups::Named(ref g) => panic!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_replace` is never used [INFO] [stdout] --> src/replace.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn do_replace(c: &Cmd, d: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Named` is never constructed [INFO] [stdout] --> src/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum Groups<'a> { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 51 | Named(NamedGroups<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Groups` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.53s [INFO] running `Command { std: "docker" "inspect" "b47d31f8b8e1391e59b36673ce1d03c7fb3799c1ca02ab4042c05a009140c78a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b47d31f8b8e1391e59b36673ce1d03c7fb3799c1ca02ab4042c05a009140c78a", kill_on_drop: false }` [INFO] [stdout] b47d31f8b8e1391e59b36673ce1d03c7fb3799c1ca02ab4042c05a009140c78a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 995d648ee534d658de16df3220bcfaa32cd99ff81a9fec83de3921eaac9e051e [INFO] running `Command { std: "docker" "start" "-a" "995d648ee534d658de16df3220bcfaa32cd99ff81a9fec83de3921eaac9e051e", kill_on_drop: false }` [INFO] [stderr] Compiling replace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/types.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | /// Library Error and Result types [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` 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/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / error_chain! { [INFO] [stdout] 14 | | types { [INFO] [stdout] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stdout] 16 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / error_chain! { [INFO] [stdout] 14 | | types { [INFO] [stdout] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stdout] 16 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/replace.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | &Groups::Named(ref g) => panic!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Named` is never constructed [INFO] [stdout] --> src/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum Groups<'a> { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 51 | Named(NamedGroups<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Groups` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | let cmd = Cmd::simple(pat.clone(), groups.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/replace.rs:128:34 [INFO] [stdout] | [INFO] [stdout] 128 | let cmd = Cmd::simple(pat.clone(), groups); [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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace.rs:138:34 [INFO] [stdout] | [INFO] [stdout] 138 | let cmd = Cmd::simple(pat.clone(), groups); [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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/replace.rs:148:34 [INFO] [stdout] | [INFO] [stdout] 148 | let cmd = Cmd::simple(pat.clone(), groups); [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "995d648ee534d658de16df3220bcfaa32cd99ff81a9fec83de3921eaac9e051e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "995d648ee534d658de16df3220bcfaa32cd99ff81a9fec83de3921eaac9e051e", kill_on_drop: false }` [INFO] [stdout] 995d648ee534d658de16df3220bcfaa32cd99ff81a9fec83de3921eaac9e051e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 462bae0fb7f5bfde16de0ebee5dcb3c1e39dcf89cf69d5c8ace1d0ef36dd0af2 [INFO] running `Command { std: "docker" "start" "-a" "462bae0fb7f5bfde16de0ebee5dcb3c1e39dcf89cf69d5c8ace1d0ef36dd0af2", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/types.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | /// Library Error and Result types [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/types.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | / error_chain! { [INFO] [stderr] 14 | | types { [INFO] [stderr] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stderr] 16 | | } [INFO] [stderr] ... | [INFO] [stderr] 37 | | } [INFO] [stderr] 38 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/types.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | / error_chain! { [INFO] [stderr] 14 | | types { [INFO] [stderr] 15 | | Error, ErrorKind, ResultExt, Result; [INFO] [stderr] 16 | | } [INFO] [stderr] ... | [INFO] [stderr] 37 | | } [INFO] [stderr] 38 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `g` [INFO] [stderr] --> src/replace.rs:86:32 [INFO] [stderr] | [INFO] [stderr] 86 | &Groups::Named(ref g) => panic!(), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `Named` is never constructed [INFO] [stderr] --> src/types.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub enum Groups<'a> { [INFO] [stderr] | ------ variant in this enum [INFO] [stderr] 51 | Named(NamedGroups<'a>), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Groups` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/replace.rs:117:34 [INFO] [stderr] | [INFO] [stderr] 117 | let cmd = Cmd::simple(pat.clone(), groups.clone()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/replace.rs:128:34 [INFO] [stderr] | [INFO] [stderr] 128 | let cmd = Cmd::simple(pat.clone(), groups); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/replace.rs:138:34 [INFO] [stderr] | [INFO] [stderr] 138 | let cmd = Cmd::simple(pat.clone(), groups); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/replace.rs:148:34 [INFO] [stderr] | [INFO] [stderr] 148 | let cmd = Cmd::simple(pat.clone(), groups); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `replace` (bin "replace" test) generated 9 warnings (run `cargo fix --bin "replace" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/replace-f0d5e2204902c284) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test replace::test_replace ... ok [INFO] [stdout] test cmd::test_parse ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "462bae0fb7f5bfde16de0ebee5dcb3c1e39dcf89cf69d5c8ace1d0ef36dd0af2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "462bae0fb7f5bfde16de0ebee5dcb3c1e39dcf89cf69d5c8ace1d0ef36dd0af2", kill_on_drop: false }` [INFO] [stdout] 462bae0fb7f5bfde16de0ebee5dcb3c1e39dcf89cf69d5c8ace1d0ef36dd0af2