[INFO] fetching crate recurse 0.3.0... [INFO] checking recurse-0.3.0 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate recurse 0.3.0 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate recurse 0.3.0 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate recurse 0.3.0 [INFO] finished tweaking crates.io crate recurse 0.3.0 [INFO] tweaked toml for crates.io crate recurse 0.3.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate recurse 0.3.0 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded predicates v1.0.4 [INFO] [stderr] Downloaded assert_cmd v1.0.1 [INFO] [stderr] Downloaded float-cmp v0.6.0 [INFO] [stderr] Downloaded hermit-abi v0.1.13 [INFO] [stderr] Downloaded quote v1.0.6 [INFO] [stderr] Downloaded proc-macro2 v1.0.13 [INFO] [stderr] Downloaded syn v1.0.22 [INFO] [stderr] Downloaded libc v0.2.70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3ccc8606a1c4a08b18fe3e1e7d29019729167e2ce9c410470efef18d9c579fb [INFO] running `Command { std: "docker" "start" "-a" "d3ccc8606a1c4a08b18fe3e1e7d29019729167e2ce9c410470efef18d9c579fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3ccc8606a1c4a08b18fe3e1e7d29019729167e2ce9c410470efef18d9c579fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3ccc8606a1c4a08b18fe3e1e7d29019729167e2ce9c410470efef18d9c579fb", kill_on_drop: false }` [INFO] [stdout] d3ccc8606a1c4a08b18fe3e1e7d29019729167e2ce9c410470efef18d9c579fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 178276887f8dcc4346bc70ba94ce0142916be94000b45feeb1a72e00011903f3 [INFO] running `Command { std: "docker" "start" "-a" "178276887f8dcc4346bc70ba94ce0142916be94000b45feeb1a72e00011903f3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Checking predicates-core v1.0.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking predicates-tree v1.0.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking float-cmp v0.6.0 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking predicates v1.0.4 [INFO] [stderr] Checking assert_cmd v1.0.1 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling structopt-derive v0.4.8 [INFO] [stderr] Checking structopt v0.3.15 [INFO] [stderr] Checking recurse v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `OpenOptions`, `read_to_string` [INFO] [stdout] --> src/command/replace.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read_to_string, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `ErrorKind` [INFO] [stdout] --> src/command/replace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufWriter, ErrorKind, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/command/replace.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/command/replace.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ops::io::walk` [INFO] [stdout] --> src/command/replace.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ops::io::walk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path_has_extension`, `path_is_hidden` [INFO] [stdout] --> src/command/replace.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ops::path::{path_has_extension, path_is_hidden}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions`, `read_to_string` [INFO] [stdout] --> src/command/replace.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read_to_string, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `ErrorKind` [INFO] [stdout] --> src/command/replace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufWriter, ErrorKind, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/command/replace.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/command/replace.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ops::io::walk` [INFO] [stdout] --> src/command/replace.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ops::io::walk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path_has_extension`, `path_is_hidden` [INFO] [stdout] --> src/command/replace.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ops::path::{path_has_extension, path_is_hidden}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subcmd` [INFO] [stdout] --> src/command/replace.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_subcmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/command/replace.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/command/replace.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [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: multiple fields are never read [INFO] [stdout] --> src/lib.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 126 | Replace { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 129 | extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | hidden: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | nobu: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | mindepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | maxdepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | symlinks: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | find: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | replace: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | inpath: PathBuf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BACKUP_FILEPATH_EXTENSION` is never used [INFO] [stdout] --> src/command/replace.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const BACKUP_FILEPATH_EXTENSION: &str = "bu"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backup_filepath` is never used [INFO] [stdout] --> src/command/replace.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_backup_filepath(inpath: &Path) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_backup_extension` is never used [INFO] [stdout] --> src/command/replace.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn has_backup_extension(inpath: &Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root_filepath` is never used [INFO] [stdout] --> src/command/replace.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn is_root_filepath(inpath: &Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subcmd` [INFO] [stdout] --> src/command/replace.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_subcmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/command/replace.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/command/replace.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [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: multiple fields are never read [INFO] [stdout] --> src/lib.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 126 | Replace { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 129 | extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | hidden: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | nobu: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | mindepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | maxdepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | symlinks: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | find: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | replace: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | inpath: PathBuf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.56s [INFO] running `Command { std: "docker" "inspect" "178276887f8dcc4346bc70ba94ce0142916be94000b45feeb1a72e00011903f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "178276887f8dcc4346bc70ba94ce0142916be94000b45feeb1a72e00011903f3", kill_on_drop: false }` [INFO] [stdout] 178276887f8dcc4346bc70ba94ce0142916be94000b45feeb1a72e00011903f3 [INFO] checking recurse-0.3.0 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate recurse 0.3.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate recurse 0.3.0 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate recurse 0.3.0 [INFO] finished tweaking crates.io crate recurse 0.3.0 [INFO] tweaked toml for crates.io crate recurse 0.3.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate recurse 0.3.0 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83680a9b59ab4e7caf4f8305af4a47af0ef775d31d17f3853ce7aeae01dda9f2 [INFO] running `Command { std: "docker" "start" "-a" "83680a9b59ab4e7caf4f8305af4a47af0ef775d31d17f3853ce7aeae01dda9f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83680a9b59ab4e7caf4f8305af4a47af0ef775d31d17f3853ce7aeae01dda9f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83680a9b59ab4e7caf4f8305af4a47af0ef775d31d17f3853ce7aeae01dda9f2", kill_on_drop: false }` [INFO] [stdout] 83680a9b59ab4e7caf4f8305af4a47af0ef775d31d17f3853ce7aeae01dda9f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c16320e4c5a4979934691ad2a6bf7434ed049936ec612e13a03c84f4b0d6f78 [INFO] running `Command { std: "docker" "start" "-a" "5c16320e4c5a4979934691ad2a6bf7434ed049936ec612e13a03c84f4b0d6f78", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking predicates-core v1.0.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking predicates-tree v1.0.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking float-cmp v0.6.0 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking predicates v1.0.4 [INFO] [stderr] Checking assert_cmd v1.0.1 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling structopt-derive v0.4.8 [INFO] [stderr] Checking structopt v0.3.15 [INFO] [stderr] Checking recurse v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `OpenOptions`, `read_to_string` [INFO] [stdout] --> src/command/replace.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read_to_string, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `ErrorKind` [INFO] [stdout] --> src/command/replace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufWriter, ErrorKind, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/command/replace.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/command/replace.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ops::io::walk` [INFO] [stdout] --> src/command/replace.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ops::io::walk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path_has_extension`, `path_is_hidden` [INFO] [stdout] --> src/command/replace.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ops::path::{path_has_extension, path_is_hidden}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions`, `read_to_string` [INFO] [stdout] --> src/command/replace.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{read_to_string, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `ErrorKind` [INFO] [stdout] --> src/command/replace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufWriter, ErrorKind, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/command/replace.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/command/replace.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ops::io::walk` [INFO] [stdout] --> src/command/replace.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ops::io::walk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path_has_extension`, `path_is_hidden` [INFO] [stdout] --> src/command/replace.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ops::path::{path_has_extension, path_is_hidden}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subcmd` [INFO] [stdout] --> src/command/replace.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_subcmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/command/replace.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/command/replace.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [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: multiple fields are never read [INFO] [stdout] --> src/lib.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 126 | Replace { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 129 | extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | hidden: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | nobu: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | mindepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | maxdepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | symlinks: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | find: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | replace: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | inpath: PathBuf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BACKUP_FILEPATH_EXTENSION` is never used [INFO] [stdout] --> src/command/replace.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const BACKUP_FILEPATH_EXTENSION: &str = "bu"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backup_filepath` is never used [INFO] [stdout] --> src/command/replace.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_backup_filepath(inpath: &Path) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_backup_extension` is never used [INFO] [stdout] --> src/command/replace.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn has_backup_extension(inpath: &Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root_filepath` is never used [INFO] [stdout] --> src/command/replace.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn is_root_filepath(inpath: &Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subcmd` [INFO] [stdout] --> src/command/replace.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_subcmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/command/replace.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/command/replace.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn execute(subcmd: Recurse, mut writer: impl Write) -> Result<()> { [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: multiple fields are never read [INFO] [stdout] --> src/lib.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 126 | Replace { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 129 | extension: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | hidden: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | nobu: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | mindepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | maxdepth: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | symlinks: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | find: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | replace: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | inpath: PathBuf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.43s [INFO] running `Command { std: "docker" "inspect" "5c16320e4c5a4979934691ad2a6bf7434ed049936ec612e13a03c84f4b0d6f78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c16320e4c5a4979934691ad2a6bf7434ed049936ec612e13a03c84f4b0d6f78", kill_on_drop: false }` [INFO] [stdout] 5c16320e4c5a4979934691ad2a6bf7434ed049936ec612e13a03c84f4b0d6f78