[INFO] cloning repository https://github.com/najeal/rust-license
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/najeal/rust-license" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnajeal%2Frust-license", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnajeal%2Frust-license'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 15b2bbc2ee425216f6db563a98759fc0f4023478
[INFO] testing najeal/rust-license against beta-2026-04-21 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnajeal%2Frust-license" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/najeal/rust-license
[INFO] finished tweaking git repo https://github.com/najeal/rust-license
[INFO] tweaked toml for git repo https://github.com/najeal/rust-license written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/najeal/rust-license on toolchain beta-2026-04-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/najeal/rust-license 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" "+beta-2026-04-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] testing najeal/rust-license against beta-2026-04-21 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnajeal%2Frust-license" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/najeal/rust-license
[INFO] finished tweaking git repo https://github.com/najeal/rust-license
[INFO] tweaked toml for git repo https://github.com/najeal/rust-license written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/najeal/rust-license on toolchain beta-2026-04-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/najeal/rust-license 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" "+beta-2026-04-21" "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] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tempdir v0.3.7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e90e0171e5c10936810422ce50b489195d78981d30c002342ba9875925542be5
[INFO] running `Command { std: "docker" "start" "-a" "e90e0171e5c10936810422ce50b489195d78981d30c002342ba9875925542be5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e90e0171e5c10936810422ce50b489195d78981d30c002342ba9875925542be5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e90e0171e5c10936810422ce50b489195d78981d30c002342ba9875925542be5", kill_on_drop: false }`
[INFO] [stdout] e90e0171e5c10936810422ce50b489195d78981d30c002342ba9875925542be5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aaa8d3103f81129aaf7f4e32ea6d6dc44a5f8f173c269e0d32e0cd64b76e6c22
[INFO] running `Command { std: "docker" "start" "-a" "aaa8d3103f81129aaf7f4e32ea6d6dc44a5f8f173c269e0d32e0cd64b76e6c22", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.83
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling utf8parse v0.2.1
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.0
[INFO] [stderr]    Compiling colorchoice v1.0.1
[INFO] [stderr]    Compiling anstyle-query v1.0.3
[INFO] [stderr]    Compiling memchr v2.7.2
[INFO] [stderr]    Compiling serde v1.0.202
[INFO] [stderr]    Compiling anstyle v1.0.7
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling regex-syntax v0.8.3
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling thiserror v1.0.61
[INFO] [stderr]    Compiling clap_lex v0.7.0
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling anstyle-parse v0.2.4
[INFO] [stderr]    Compiling ryu v1.0.18
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]    Compiling anstream v0.6.14
[INFO] [stderr]    Compiling clap_builder v4.5.2
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling syn v2.0.65
[INFO] [stderr]    Compiling tempdir v0.3.7
[INFO] [stderr]    Compiling regex-automata v0.4.6
[INFO] [stderr]    Compiling serde_derive v1.0.202
[INFO] [stderr]    Compiling thiserror-impl v1.0.61
[INFO] [stderr]    Compiling clap_derive v4.5.4
[INFO] [stderr]    Compiling regex v1.10.4
[INFO] [stderr]    Compiling clap v4.5.4
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling rust-license v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `cmp::Ordering`
[INFO] [stdout]  --> src/check.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::{cmp::Ordering, fs::File, os::unix::fs::FileExt};
[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 imports: `Seek` and `cmp::Ordering`
[INFO] [stdout]  --> src/licenser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     cmp::Ordering,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 6 |     fs::{File, OpenOptions},
[INFO] [stdout] 7 |     io::{self, Read, Seek, Write},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/licenser.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     io::{self, Read, Seek, Write},
[INFO] [stdout]   |                            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/main.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         RootSubCommand::LicenseHeader(cmd) => {
[INFO] [stdout]    |         ---------------------------------- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 58 |         _ => (),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fake_header` is never used
[INFO] [stdout]  --> src/check.rs:5:4
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn fake_header(header: &str) -> String {
[INFO] [stdout]   |    ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reg_header` is never used
[INFO] [stdout]   --> src/check.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn reg_header(header: &str) -> Regex {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `contains_header` is never used
[INFO] [stdout]   --> src/check.rs:17:4
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn contains_header(file: File, header: &str) -> bool {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `NotImplemented` is never constructed
[INFO] [stdout]  --> src/errors.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub enum LicenseError {
[INFO] [stdout]   |          ------------ variant in this enum
[INFO] [stdout] 6 |     #[error("not implemented")]
[INFO] [stdout] 7 |     NotImplemented,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `LicenseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cfg` is never read
[INFO] [stdout]   --> src/licenser.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Licenser {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 12 |     file_paths: Vec<String>,
[INFO] [stdout] 13 |     cfg: config::Config,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.93s
[INFO] running `Command { std: "docker" "inspect" "aaa8d3103f81129aaf7f4e32ea6d6dc44a5f8f173c269e0d32e0cd64b76e6c22", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aaa8d3103f81129aaf7f4e32ea6d6dc44a5f8f173c269e0d32e0cd64b76e6c22", kill_on_drop: false }`
[INFO] [stdout] aaa8d3103f81129aaf7f4e32ea6d6dc44a5f8f173c269e0d32e0cd64b76e6c22
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0be8d7eae955635c3e5b9c767e652ec36d2ba0ae05f7b632ef2c76c533379e8c
[INFO] running `Command { std: "docker" "start" "-a" "0be8d7eae955635c3e5b9c767e652ec36d2ba0ae05f7b632ef2c76c533379e8c", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust-license v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `cmp::Ordering`
[INFO] [stdout]  --> src/check.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::{cmp::Ordering, fs::File, os::unix::fs::FileExt};
[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 imports: `Seek` and `cmp::Ordering`
[INFO] [stdout]  --> src/licenser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     cmp::Ordering,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 6 |     fs::{File, OpenOptions},
[INFO] [stdout] 7 |     io::{self, Read, Seek, Write},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::read_to_string`
[INFO] [stdout]    --> src/licenser.rs:148:9
[INFO] [stdout]     |
[INFO] [stdout] 148 |     use std::fs::read_to_string;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `io`
[INFO] [stdout]    --> src/licenser.rs:149:19
[INFO] [stdout]     |
[INFO] [stdout] 149 |     use std::{fs, io};
[INFO] [stdout]     |                   ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/licenser.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     io::{self, Read, Seek, Write},
[INFO] [stdout]   |                            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/main.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         RootSubCommand::LicenseHeader(cmd) => {
[INFO] [stdout]    |         ---------------------------------- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 58 |         _ => (),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `NotImplemented` is never constructed
[INFO] [stdout]  --> src/errors.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub enum LicenseError {
[INFO] [stdout]   |          ------------ variant in this enum
[INFO] [stdout] 6 |     #[error("not implemented")]
[INFO] [stdout] 7 |     NotImplemented,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `LicenseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cfg` is never read
[INFO] [stdout]   --> src/licenser.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Licenser {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 12 |     file_paths: Vec<String>,
[INFO] [stdout] 13 |     cfg: config::Config,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `expected_headers` should have an upper case name
[INFO] [stdout]   --> src/check.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 28 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 28 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout] 28 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `expected_headers` should have an upper case name
[INFO] [stdout]   --> src/config.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 28 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 28 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout] 28 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `expected_headers` should have an upper case name
[INFO] [stdout]    --> src/licenser.rs:152:11
[INFO] [stdout]     |
[INFO] [stdout] 152 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]     |
[INFO] [stdout] 152 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stdout] 152 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] running `Command { std: "docker" "inspect" "0be8d7eae955635c3e5b9c767e652ec36d2ba0ae05f7b632ef2c76c533379e8c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0be8d7eae955635c3e5b9c767e652ec36d2ba0ae05f7b632ef2c76c533379e8c", kill_on_drop: false }`
[INFO] [stdout] 0be8d7eae955635c3e5b9c767e652ec36d2ba0ae05f7b632ef2c76c533379e8c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 32f92e4dafc475fe4ba239d7b2eb34b3334de0a788b828745a2307de9ce1b270
[INFO] running `Command { std: "docker" "start" "-a" "32f92e4dafc475fe4ba239d7b2eb34b3334de0a788b828745a2307de9ce1b270", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `cmp::Ordering`
[INFO] [stderr]  --> src/check.rs:2:11
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::{cmp::Ordering, fs::File, os::unix::fs::FileExt};
[INFO] [stderr]   |           ^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Seek` and `cmp::Ordering`
[INFO] [stderr]  --> src/licenser.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 |     cmp::Ordering,
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 6 |     fs::{File, OpenOptions},
[INFO] [stderr] 7 |     io::{self, Read, Seek, Write},
[INFO] [stderr]   |                      ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::fs::read_to_string`
[INFO] [stderr]    --> src/licenser.rs:148:9
[INFO] [stderr]     |
[INFO] [stderr] 148 |     use std::fs::read_to_string;
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `io`
[INFO] [stderr]    --> src/licenser.rs:149:19
[INFO] [stderr]     |
[INFO] [stderr] 149 |     use std::{fs, io};
[INFO] [stderr]     |                   ^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Write`
[INFO] [stderr]  --> src/licenser.rs:7:28
[INFO] [stderr]   |
[INFO] [stderr] 7 |     io::{self, Read, Seek, Write},
[INFO] [stderr]   |                            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> src/main.rs:58:9
[INFO] [stderr]    |
[INFO] [stderr] 38 |         RootSubCommand::LicenseHeader(cmd) => {
[INFO] [stderr]    |         ---------------------------------- matches all the relevant values
[INFO] [stderr] ...
[INFO] [stderr] 58 |         _ => (),
[INFO] [stderr]    |         ^ no value can reach this
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variant `NotImplemented` is never constructed
[INFO] [stderr]  --> src/errors.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub enum LicenseError {
[INFO] [stderr]   |          ------------ variant in this enum
[INFO] [stderr] 6 |     #[error("not implemented")]
[INFO] [stderr] 7 |     NotImplemented,
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `LicenseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `cfg` is never read
[INFO] [stderr]   --> src/licenser.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct Licenser {
[INFO] [stderr]    |            -------- field in this struct
[INFO] [stderr] 12 |     file_paths: Vec<String>,
[INFO] [stderr] 13 |     cfg: config::Config,
[INFO] [stderr]    |     ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `expected_headers` should have an upper case name
[INFO] [stderr]   --> src/check.rs:28:11
[INFO] [stderr]    |
[INFO] [stderr] 28 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]    |
[INFO] [stderr] 28 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr] 28 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: constant `expected_headers` should have an upper case name
[INFO] [stderr]   --> src/config.rs:28:11
[INFO] [stderr]    |
[INFO] [stderr] 28 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]    |
[INFO] [stderr] 28 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr] 28 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: constant `expected_headers` should have an upper case name
[INFO] [stderr]    --> src/licenser.rs:152:11
[INFO] [stderr]     |
[INFO] [stderr] 152 |     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]     |           ^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: convert the identifier to upper case
[INFO] [stderr]     |
[INFO] [stderr] 152 -     const expected_headers: &str = "// Copyright (c) Company 2024";
[INFO] [stderr] 152 +     const EXPECTED_HEADERS: &str = "// Copyright (c) Company 2024";
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: `rust-license` (bin "rust-license" test) generated 11 warnings (run `cargo fix --bin "rust-license" -p rust-license --tests` to apply 7 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/rust_license-b306f60d47d6516f)
[INFO] [stdout] 
[INFO] [stdout] running 10 tests
[INFO] [stdout] test licenser::tests::test_add_carriage_return ... ok
[INFO] [stdout] test config::tests::test_parse ... ok
[INFO] [stdout] test config::tests::test_load ... ok
[INFO] [stdout] test tests::test_cleanup_file_list ... ok
[INFO] [stdout] test check::tests::test_contains_header ... ok
[INFO] [stdout] test licenser::tests::test_generate_header_regex ... ok
[INFO] [stdout] test licenser::tests::test_remove_header ... ok
[INFO] [stdout] test licenser::tests::test_licenser_check_files_license ... ok
[INFO] [stdout] test licenser::tests::test_licenser_remove_files_license ... ok
[INFO] [stdout] test licenser::tests::test_licenser_apply_files_license ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "32f92e4dafc475fe4ba239d7b2eb34b3334de0a788b828745a2307de9ce1b270", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "32f92e4dafc475fe4ba239d7b2eb34b3334de0a788b828745a2307de9ce1b270", kill_on_drop: false }`
[INFO] [stdout] 32f92e4dafc475fe4ba239d7b2eb34b3334de0a788b828745a2307de9ce1b270
