[INFO] cloning repository https://github.com/MrGreger/rust-replacer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrGreger/rust-replacer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrGreger%2Frust-replacer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrGreger%2Frust-replacer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f5f2e9f818b027271b144b63875389f5f3aa5fa [INFO] building MrGreger/rust-replacer against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrGreger%2Frust-replacer" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrGreger/rust-replacer on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MrGreger/rust-replacer [INFO] finished tweaking git repo https://github.com/MrGreger/rust-replacer [INFO] tweaked toml for git repo https://github.com/MrGreger/rust-replacer written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MrGreger/rust-replacer 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d59bae41d8fc42ec65e5e2e1df4288c819d80bfe93805f72ebd100b406bbaf6e [INFO] running `Command { std: "docker" "start" "-a" "d59bae41d8fc42ec65e5e2e1df4288c819d80bfe93805f72ebd100b406bbaf6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d59bae41d8fc42ec65e5e2e1df4288c819d80bfe93805f72ebd100b406bbaf6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d59bae41d8fc42ec65e5e2e1df4288c819d80bfe93805f72ebd100b406bbaf6e", kill_on_drop: false }` [INFO] [stdout] d59bae41d8fc42ec65e5e2e1df4288c819d80bfe93805f72ebd100b406bbaf6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f62dd43dc6411949d0f8ae0e117cef99e6586c95e3f9f64d370d5eeeff4d06e2 [INFO] running `Command { std: "docker" "start" "-a" "f62dd43dc6411949d0f8ae0e117cef99e6586c95e3f9f64d370d5eeeff4d06e2", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling rust-replacer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/TextSplitting/mod.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | if (quotes_counter == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - if (quotes_counter == 2) { [INFO] [stdout] 80 + if quotes_counter == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut replacements_collection: Arc> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Female` is never constructed [INFO] [stdout] --> src/ReplacementsCollection/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Gender { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 4 | Male, [INFO] [stdout] 5 | Female, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ReplacementsCollection` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod ReplacementsCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `replacements_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextAttributes` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod TextAttributes; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextReplacing` should have a snake case name [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mod TextReplacing; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_replacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextSplitting` should have a snake case name [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mod TextSplitting; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_splitting` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.92s [INFO] running `Command { std: "docker" "inspect" "f62dd43dc6411949d0f8ae0e117cef99e6586c95e3f9f64d370d5eeeff4d06e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f62dd43dc6411949d0f8ae0e117cef99e6586c95e3f9f64d370d5eeeff4d06e2", kill_on_drop: false }` [INFO] [stdout] f62dd43dc6411949d0f8ae0e117cef99e6586c95e3f9f64d370d5eeeff4d06e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47c55df4ba4c954d9ce78ad48897077197e0f38ab3ba3595527ef09a3693b506 [INFO] running `Command { std: "docker" "start" "-a" "47c55df4ba4c954d9ce78ad48897077197e0f38ab3ba3595527ef09a3693b506", kill_on_drop: false }` [INFO] [stderr] Compiling rust-replacer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/TextSplitting/mod.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | if (quotes_counter == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - if (quotes_counter == 2) { [INFO] [stdout] 80 + if quotes_counter == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut replacements_collection: Arc> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Female` is never constructed [INFO] [stdout] --> src/ReplacementsCollection/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Gender { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 4 | Male, [INFO] [stdout] 5 | Female, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ReplacementsCollection` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod ReplacementsCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `replacements_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextAttributes` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod TextAttributes; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextReplacing` should have a snake case name [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mod TextReplacing; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_replacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `TextSplitting` should have a snake case name [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mod TextSplitting; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `text_splitting` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "47c55df4ba4c954d9ce78ad48897077197e0f38ab3ba3595527ef09a3693b506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47c55df4ba4c954d9ce78ad48897077197e0f38ab3ba3595527ef09a3693b506", kill_on_drop: false }` [INFO] [stdout] 47c55df4ba4c954d9ce78ad48897077197e0f38ab3ba3595527ef09a3693b506