[INFO] cloning repository https://github.com/imeenz/ddos-mitigation-tool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/imeenz/ddos-mitigation-tool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimeenz%2Fddos-mitigation-tool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimeenz%2Fddos-mitigation-tool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8e813b5e37cb344d015a5d7f88fa89458c8b087 [INFO] checking imeenz/ddos-mitigation-tool against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimeenz%2Fddos-mitigation-tool" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/imeenz/ddos-mitigation-tool [INFO] finished tweaking git repo https://github.com/imeenz/ddos-mitigation-tool [INFO] tweaked toml for git repo https://github.com/imeenz/ddos-mitigation-tool written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/imeenz/ddos-mitigation-tool on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/imeenz/ddos-mitigation-tool 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pcap v2.4.0 [INFO] [stderr] Downloaded crc32fast v1.5.1 [INFO] [stderr] Downloaded indexmap v2.14.1 [INFO] [stderr] Downloaded aya v0.14.0 [INFO] [stderr] Downloaded aya-obj v0.3.0 [INFO] [stderr] Downloaded etherparse v0.21.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb [INFO] running `Command { std: "docker" "start" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb", 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" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb", 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" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling aho-corasick v1.1.5 [INFO] [stderr] Compiling crc32fast v1.5.1 [INFO] [stderr] Compiling regex-syntax v0.8.11 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Compiling thiserror v2.0.20 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling syn v3.0.3 [INFO] [stderr] Checking memchr v2.8.3 [INFO] [stderr] Compiling object v0.39.1 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling syn v2.0.119 [INFO] [stderr] Compiling serde_json v1.0.151 [INFO] [stderr] Checking indexmap v2.14.1 [INFO] [stderr] Compiling anyhow v1.0.104 [INFO] [stderr] Compiling serde v1.0.229 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking errno v0.2.8 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking bitflags v2.13.1 [INFO] [stderr] Checking arrayvec v0.7.8 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking etherparse v0.21.0 [INFO] [stderr] Compiling regex-automata v0.4.18 [INFO] [stderr] Compiling thiserror-impl v2.0.20 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling tokio-macros v2.7.2 [INFO] [stderr] Checking tokio v1.53.1 [INFO] [stderr] Compiling regex v1.13.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling pcap v2.4.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking aya-obj v0.3.0 [INFO] [stderr] Checking aya v0.14.0 [INFO] [stderr] Checking ddos-mitigation-tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `enforcer::FirewallEnforcer` [INFO] [stdout] --> src/mitigation/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use enforcer::FirewallEnforcer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `critical`, `high`, `medium`, and `low` are never used [INFO] [stdout] --> src/alerts/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Alert { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 35 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn critical( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn high( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn medium( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn low( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_empty`, `latest`, and `clear` are never used [INFO] [stdout] --> src/alerts/mod.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl AlertManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn latest(&self) -> Option<&Alert> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `baseline_ready` is never used [INFO] [stdout] --> src/detection/detector.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl DetectionEngine { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn baseline_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_alert` and `reset` are never used [INFO] [stdout] --> src/metrics/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Metrics { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn record_alert(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unblock` is never constructed [INFO] [stdout] --> src/mitigation/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MitigationAction { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 10 | Block, [INFO] [stdout] 11 | Unblock, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MitigationAction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source_ip` is never read [INFO] [stdout] --> src/mitigation/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BlockEntry { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | pub source_ip: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `should_mitigate`, `is_blocked`, and `unblock_ip` are never used [INFO] [stdout] --> src/mitigation/mod.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl MitigationManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn should_mitigate(&self, anomaly_score: f64, threshold: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn is_blocked(&mut self, source_ip: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn unblock_ip(&mut self, source_ip: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unblock_ip` is never used [INFO] [stdout] --> src/mitigation/enforcer.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl FirewallEnforcer { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn unblock_ip(&self, source_ip: &str) -> EnforcementResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unblock` is never used [INFO] [stdout] --> src/mitigation/xdp.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl XdpBlocker { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn unblock(&mut self, ip: Ipv4Addr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enforcer::FirewallEnforcer` [INFO] [stdout] --> src/mitigation/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use enforcer::FirewallEnforcer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `medium` is never used [INFO] [stdout] --> src/alerts/mod.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Alert { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn medium( [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 `source_ip` is never read [INFO] [stdout] --> src/mitigation/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BlockEntry { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | pub source_ip: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unblock` is never used [INFO] [stdout] --> src/mitigation/xdp.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl XdpBlocker { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn unblock(&mut self, ip: Ipv4Addr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.29s [INFO] running `Command { std: "docker" "inspect" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb", kill_on_drop: false }` [INFO] [stdout] 46adb2ecae5e3c17ba5502464c4f90bdf5edc4757a7742693ab20fff6c71fbbb