[INFO] fetching crate rlocc 0.2.1... [INFO] checking rlocc-0.2.1 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate rlocc 0.2.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate rlocc 0.2.1 [INFO] finished tweaking crates.io crate rlocc 0.2.1 [INFO] tweaked toml for crates.io crate rlocc 0.2.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rlocc 0.2.1 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rlocc 0.2.1 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3db84c93b690b618551457e81e1254e213823f86c231ba35ba31fc214b4158a [INFO] running `Command { std: "docker" "start" "-a" "a3db84c93b690b618551457e81e1254e213823f86c231ba35ba31fc214b4158a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3db84c93b690b618551457e81e1254e213823f86c231ba35ba31fc214b4158a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3db84c93b690b618551457e81e1254e213823f86c231ba35ba31fc214b4158a", kill_on_drop: false }` [INFO] [stdout] a3db84c93b690b618551457e81e1254e213823f86c231ba35ba31fc214b4158a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88797ee82ed2c0b7b0f736c0e55296b2e8c1f2101b45e5e4b886ba92a53198ec [INFO] running `Command { std: "docker" "start" "-a" "88797ee82ed2c0b7b0f736c0e55296b2e8c1f2101b45e5e4b886ba92a53198ec", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-channel v0.4.3 [INFO] [stderr] Checking rlocc v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on macro defs [INFO] [stdout] --> src/locc/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to crates, extern crates, and modules [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on macro defs [INFO] [stdout] --> src/locc/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to crates, extern crates, and modules [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/locc/count.rs:366:26 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn count_all(config: &Config) -> io::Result { [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 366 | pub fn count_all(config: &Config) -> io::Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/locc/states.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | struct A<'a> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/locc/states.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 466 | impl A<'_> { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 467 | #[inline] [INFO] [stdout] 468 | fn new(lang: &'static Language) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `state_initial_empty_line` is never used [INFO] [stdout] --> src/locc/states.rs:480:8 [INFO] [stdout] | [INFO] [stdout] 480 | fn state_initial_empty_line() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/locc/config.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | .map(|arg| PathBuf::from_str(arg).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/locc/count.rs:366:26 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn count_all(config: &Config) -> io::Result { [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 366 | pub fn count_all(config: &Config) -> io::Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rlocc` (lib test) due to 1 previous error; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "88797ee82ed2c0b7b0f736c0e55296b2e8c1f2101b45e5e4b886ba92a53198ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88797ee82ed2c0b7b0f736c0e55296b2e8c1f2101b45e5e4b886ba92a53198ec", kill_on_drop: false }` [INFO] [stdout] 88797ee82ed2c0b7b0f736c0e55296b2e8c1f2101b45e5e4b886ba92a53198ec