[INFO] cloning repository https://github.com/kartew/claude-profiles [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kartew/claude-profiles" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkartew%2Fclaude-profiles", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkartew%2Fclaude-profiles'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ff497ba90d6fa41d6162dd3e50065e3fbfc12cb [INFO] linting kartew/claude-profiles against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkartew%2Fclaude-profiles" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kartew/claude-profiles [INFO] finished tweaking git repo https://github.com/kartew/claude-profiles [INFO] tweaked toml for git repo https://github.com/kartew/claude-profiles written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kartew/claude-profiles on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kartew/claude-profiles 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_complete v4.5.64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7402e49826564d7887e27270b7faab10d74458abe09661e5e7a5a184c450bf1 [INFO] running `Command { std: "docker" "start" "-a" "c7402e49826564d7887e27270b7faab10d74458abe09661e5e7a5a184c450bf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7402e49826564d7887e27270b7faab10d74458abe09661e5e7a5a184c450bf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7402e49826564d7887e27270b7faab10d74458abe09661e5e7a5a184c450bf1", kill_on_drop: false }` [INFO] [stdout] c7402e49826564d7887e27270b7faab10d74458abe09661e5e7a5a184c450bf1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54f72211197c26f45ce3586589f006413b7229cc277360352f7d0aba1e3948fb [INFO] running `Command { std: "docker" "start" "-a" "54f72211197c26f45ce3586589f006413b7229cc277360352f7d0aba1e3948fb", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling doc-comment v0.3.4 [INFO] [stderr] Compiling zmij v1.0.8 [INFO] [stderr] Compiling syn v2.0.112 [INFO] [stderr] Compiling serde_json v1.0.148 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking globset v0.4.18 [INFO] [stderr] Checking assert_cmd v2.1.1 [INFO] [stderr] Checking ignore v0.4.25 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking assert_fs v1.1.3 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking clap_complete v4.5.64 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking claude-profiles v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:150:28 [INFO] [stdout] | [INFO] [stdout] 150 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:171:28 [INFO] [stdout] | [INFO] [stdout] 171 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:249:28 [INFO] [stdout] | [INFO] [stdout] 249 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:266:28 [INFO] [stdout] | [INFO] [stdout] 266 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:312:28 [INFO] [stdout] | [INFO] [stdout] 312 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_test.rs:334:28 [INFO] [stdout] | [INFO] [stdout] 334 | let mut cmd = Command::cargo_bin("ccp").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/profile.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 26 - if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] 26 + if path.extension().is_some_and(|e| e == "json") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/profile.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 45 - if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] 45 + if path.extension().is_some_and(|e| e == "json") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | / if current == name { [INFO] [stdout] 199 | | if pm.profile_exists("default") && name != "default" { [INFO] [stdout] 200 | | use_profile("default")?; [INFO] [stdout] 201 | | } [INFO] [stdout] 202 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 198 ~ if current == name [INFO] [stdout] 199 ~ && pm.profile_exists("default") && name != "default" { [INFO] [stdout] 200 | use_profile("default")?; [INFO] [stdout] 201 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/profile.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 26 - if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] 26 + if path.extension().is_some_and(|e| e == "json") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/profile.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 45 - if path.extension().map_or(false, |e| e == "json") { [INFO] [stdout] 45 + if path.extension().is_some_and(|e| e == "json") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/profile.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | assert!(!data.get("model").is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.get("model").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/profile.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | assert!(!data["env"].get("ANTHROPIC_BASE_URL").is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data["env"].get("ANTHROPIC_BASE_URL").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | / if current == name { [INFO] [stdout] 199 | | if pm.profile_exists("default") && name != "default" { [INFO] [stdout] 200 | | use_profile("default")?; [INFO] [stdout] 201 | | } [INFO] [stdout] 202 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 198 ~ if current == name [INFO] [stdout] 199 ~ && pm.profile_exists("default") && name != "default" { [INFO] [stdout] 200 | use_profile("default")?; [INFO] [stdout] 201 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.35s [INFO] running `Command { std: "docker" "inspect" "54f72211197c26f45ce3586589f006413b7229cc277360352f7d0aba1e3948fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54f72211197c26f45ce3586589f006413b7229cc277360352f7d0aba1e3948fb", kill_on_drop: false }` [INFO] [stdout] 54f72211197c26f45ce3586589f006413b7229cc277360352f7d0aba1e3948fb