[INFO] cloning repository https://github.com/sungshen/linecount [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sungshen/linecount" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsungshen%2Flinecount", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsungshen%2Flinecount'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09e93602970e3010ee9905c216282658e0e74078 [INFO] checking sungshen/linecount against try#0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef for pr-147859 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsungshen%2Flinecount" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sungshen/linecount [INFO] finished tweaking git repo https://github.com/sungshen/linecount [INFO] tweaked toml for git repo https://github.com/sungshen/linecount written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sungshen/linecount on toolchain 0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sungshen/linecount 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" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 957021b3aa5fd524a49b22d8f73510d581d22bc1cd2c56ae64b64dca30b811fc [INFO] running `Command { std: "docker" "start" "-a" "957021b3aa5fd524a49b22d8f73510d581d22bc1cd2c56ae64b64dca30b811fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "957021b3aa5fd524a49b22d8f73510d581d22bc1cd2c56ae64b64dca30b811fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "957021b3aa5fd524a49b22d8f73510d581d22bc1cd2c56ae64b64dca30b811fc", kill_on_drop: false }` [INFO] [stdout] 957021b3aa5fd524a49b22d8f73510d581d22bc1cd2c56ae64b64dca30b811fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 505765591a680e4e8475f0730d97f754cd6b9c8992ec96eab456f31f23e2f3f7 [INFO] running `Command { std: "docker" "start" "-a" "505765591a680e4e8475f0730d97f754cd6b9c8992ec96eab456f31f23e2f3f7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling syn v2.0.113 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking linecount v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/counter/line.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fs::walker::Walker` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::fs::walker::Walker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fs::reader::Reader` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::fs::reader::Reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::counter::line::Line` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::counter::line::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` is never used [INFO] [stdout] --> src/fs/walker.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) fn Walker() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `A`, `B`, and `C` are never constructed [INFO] [stdout] --> src/error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 2 | A, [INFO] [stdout] | ^ [INFO] [stdout] 3 | B, [INFO] [stdout] | ^ [INFO] [stdout] 4 | C, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Runner` should have a snake case name [INFO] [stdout] --> src/runner.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn Runner(c: Config) -> Result{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `runner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` should have a snake case name [INFO] [stdout] --> src/runner.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn Walker(path: &str, mut i: usize) -> usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `walker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` should have a snake case name [INFO] [stdout] --> src/fs/walker.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) fn Walker() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `walker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Reader` should have a snake case name [INFO] [stdout] --> src/fs/reader.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn Reader(path:&str) -> String { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Line` should have a snake case name [INFO] [stdout] --> src/counter/line.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn Line(content : &str) -> usize { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/counter/line.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fs::walker::Walker` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::fs::walker::Walker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fs::reader::Reader` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::fs::reader::Reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::counter::line::Line` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::counter::line::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` is never used [INFO] [stdout] --> src/fs/walker.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) fn Walker() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `A`, `B`, and `C` are never constructed [INFO] [stdout] --> src/error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 2 | A, [INFO] [stdout] | ^ [INFO] [stdout] 3 | B, [INFO] [stdout] | ^ [INFO] [stdout] 4 | C, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Runner` should have a snake case name [INFO] [stdout] --> src/runner.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn Runner(c: Config) -> Result{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `runner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` should have a snake case name [INFO] [stdout] --> src/runner.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn Walker(path: &str, mut i: usize) -> usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `walker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Walker` should have a snake case name [INFO] [stdout] --> src/fs/walker.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) fn Walker() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `walker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Reader` should have a snake case name [INFO] [stdout] --> src/fs/reader.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn Reader(path:&str) -> String { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Line` should have a snake case name [INFO] [stdout] --> src/counter/line.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn Line(content : &str) -> usize { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `line` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.49s [INFO] running `Command { std: "docker" "inspect" "505765591a680e4e8475f0730d97f754cd6b9c8992ec96eab456f31f23e2f3f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "505765591a680e4e8475f0730d97f754cd6b9c8992ec96eab456f31f23e2f3f7", kill_on_drop: false }` [INFO] [stdout] 505765591a680e4e8475f0730d97f754cd6b9c8992ec96eab456f31f23e2f3f7