[INFO] cloning repository https://github.com/tantk/permission-hook
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tantk/permission-hook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftantk%2Fpermission-hook", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftantk%2Fpermission-hook'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] aeb72f4d5e12f34d359090d52c5f232315a602c9
[INFO] checking tantk/permission-hook against 8773d2c75a8e90130dcce745a7ec4e66bb9963db+rustflags=-Aunfulfilled-lint-expectations for pr-163637
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftantk%2Fpermission-hook" "/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/tantk/permission-hook
[INFO] finished tweaking git repo https://github.com/tantk/permission-hook
[INFO] tweaked toml for git repo https://github.com/tantk/permission-hook written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tantk/permission-hook on toolchain 8773d2c75a8e90130dcce745a7ec4e66bb9963db
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tantk/permission-hook 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" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "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 rodio v0.19.0
[INFO] [stderr]   Downloaded zbus v5.13.2
[INFO] [stderr]   Downloaded zvariant_derive v5.9.2
[INFO] [stderr]   Downloaded zvariant v5.9.2
[INFO] [stderr]   Downloaded mac-notification-sys v0.6.9
[INFO] [stderr]   Downloaded time v0.3.46
[INFO] [stderr]   Downloaded zbus_macros v5.13.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0
[INFO] running `Command { std: "docker" "start" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0" "/opt/rustwide/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Aunfulfilled-lint-expectations" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0" "/opt/rustwide/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]    Compiling winnow v0.7.14
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling toml_datetime v0.7.5+spec-1.1.0
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling cc v1.2.54
[INFO] [stderr]    Compiling rustix v1.1.3
[INFO] [stderr]     Checking unicode-ident v1.0.22
[INFO] [stderr]     Checking linux-raw-sys v0.11.0
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking socket2 v0.6.2
[INFO] [stderr]     Checking event-listener v5.4.1
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking endi v1.1.1
[INFO] [stderr]    Compiling zmij v1.0.16
[INFO] [stderr]     Checking futures-lite v2.6.1
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking piper v0.2.4
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking tokio v1.49.0
[INFO] [stderr]     Checking uuid v1.19.0
[INFO] [stderr]     Checking event-listener-strategy v0.5.4
[INFO] [stderr]     Checking async-channel v2.5.0
[INFO] [stderr]     Checking async-lock v3.4.2
[INFO] [stderr]     Checking async-broadcast v0.7.2
[INFO] [stderr]     Checking ordered-stream v0.2.0
[INFO] [stderr]     Checking dirs-sys v0.4.1
[INFO] [stderr]     Checking serde_json v1.0.149
[INFO] [stderr]     Checking chrono v0.4.43
[INFO] [stderr]     Checking syn v2.0.114
[INFO] [stderr]     Checking dirs v5.0.1
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]     Checking blocking v1.6.2
[INFO] [stderr]     Checking async-executor v1.13.3
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling toml_parser v1.0.6+spec-1.1.0
[INFO] [stderr]    Compiling toml_edit v0.23.10+spec-1.0.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling proc-macro-crate v3.4.0
[INFO] [stderr]     Checking polling v3.11.0
[INFO] [stderr]     Checking tempfile v3.24.0
[INFO] [stderr]     Checking async-io v2.6.0
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking async-signal v0.2.13
[INFO] [stderr]     Checking async-process v2.5.0
[INFO] [stderr]     Checking sct v0.7.1
[INFO] [stderr]     Checking rustls-webpki v0.101.7
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling enumflags2_derive v0.7.12
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling serde_repr v0.1.20
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking yoke v0.8.1
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking zerovec v0.11.5
[INFO] [stderr]     Checking zerotrie v0.2.3
[INFO] [stderr]     Checking tinystr v0.8.2
[INFO] [stderr]     Checking potential_utf v0.1.4
[INFO] [stderr]     Checking icu_locale_core v2.1.1
[INFO] [stderr]     Checking icu_collections v2.1.1
[INFO] [stderr]     Checking tokio-rustls v0.24.1
[INFO] [stderr]     Checking icu_provider v2.1.1
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]     Checking icu_properties v2.1.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking zvariant_utils v3.3.0
[INFO] [stderr]     Checking enumflags2 v0.7.12
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling zvariant_derive v5.9.2
[INFO] [stderr]    Compiling zvariant v5.9.2
[INFO] [stderr]     Checking hyper-rustls v0.24.2
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking zbus_names v4.3.1
[INFO] [stderr]    Compiling zbus_macros v5.13.2
[INFO] [stderr]     Checking zbus v5.13.2
[INFO] [stderr]     Checking notify-rust v4.11.7
[INFO] [stderr]     Checking claude-permission-hook v1.0.6 (/opt/rustwide/workdir)
[INFO] [stdout] warning: constant `PASSIVE_TOOLS` is never used
[INFO] [stdout]   --> src/analyzer.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 | const PASSIVE_TOOLS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PASSIVE_TOOLS` is never used
[INFO] [stdout]   --> src/analyzer.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 | const PASSIVE_TOOLS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PASSIVE_TOOLS` is never used
[INFO] [stdout]   --> src/analyzer.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 | const PASSIVE_TOOLS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `suppress_question_after_task_complete_seconds` is never read
[INFO] [stdout]    --> src/config.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 120 | pub struct NotificationsConfig {
[INFO] [stdout]     |            ------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 126 |     pub suppress_question_after_task_complete_seconds: i64,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `NotificationsConfig` has derived impls for the traits `Clone` and `Debug`, but these are 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: associated function `deny` is never used
[INFO] [stdout]   --> src/permission.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl HookResponse {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn deny(reason: &str) -> Self {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_last_assistant_messages` is never used
[INFO] [stdout]    --> src/jsonl.rs:129:8
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub fn get_last_assistant_messages(messages: &[Message], count: usize) -> Vec<&Message> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PASSIVE_TOOLS` is never used
[INFO] [stdout]   --> src/analyzer.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 | const PASSIVE_TOOLS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `delete`, `should_suppress_question`, and `is_duplicate_message` are never used
[INFO] [stdout]    --> src/state.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout]  34 | impl Manager {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  77 |     pub fn delete(&self, session_id: &str) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn should_suppress_question(&self, session_id: &str, cooldown_seconds: i64) -> Result<bool, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 167 |     pub fn is_duplicate_message(&self, session_id: &str, message: &str, window_seconds: i64) -> Result<bool, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_content_lock_path`, `release_lock`, `acquire_content_lock`, `release_content_lock`, and `cleanup_for_session` are never used
[INFO] [stdout]    --> src/dedup.rs:30:8
[INFO] [stdout]     |
[INFO] [stdout]  13 | impl Manager {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  30 |     fn get_content_lock_path(&self, session_id: &str) -> PathBuf {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  91 |     pub fn release_lock(&self, session_id: &str, hook_event: Option<&str>) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn acquire_content_lock(&self, session_id: &str) -> Result<bool, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     pub fn release_content_lock(&self, session_id: &str) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 171 |     pub fn cleanup_for_session(&self, session_id: &str) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.55s
[INFO] running `Command { std: "docker" "inspect" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0", kill_on_drop: false }`
[INFO] [stdout] 710c57b0aec1edff116a92fc71be1dc2d6c85541da65d268c94ac58b72a3fdf0
