[INFO] cloning repository https://github.com/m-mekhlafi/CodeShield-AI
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/m-mekhlafi/CodeShield-AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 38b67aff0f22afb0d573d868c2dd5e1401cf4c35
[INFO] checking m-mekhlafi/CodeShield-AI against 92b5b8c87c61b20adc9001b41baf587634a74734 for pr-165238
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/m-mekhlafi/CodeShield-AI
[INFO] finished tweaking git repo https://github.com/m-mekhlafi/CodeShield-AI
[INFO] tweaked toml for git repo https://github.com/m-mekhlafi/CodeShield-AI written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/m-mekhlafi/CodeShield-AI on toolchain 92b5b8c87c61b20adc9001b41baf587634a74734
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+92b5b8c87c61b20adc9001b41baf587634a74734" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/m-mekhlafi/CodeShield-AI 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" "+92b5b8c87c61b20adc9001b41baf587634a74734" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tree-sitter v0.22.6
[INFO] [stderr]   Downloaded indicatif v0.18.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61
[INFO] running `Command { std: "docker" "start" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61", 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" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61" "/opt/rustwide/cargo-home/bin/cargo" "+92b5b8c87c61b20adc9001b41baf587634a74734" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61", 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" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61" "/opt/rustwide/cargo-home/bin/cargo" "+92b5b8c87c61b20adc9001b41baf587634a74734" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]    Compiling memchr v2.8.1
[INFO] [stderr]     Checking log v0.4.32
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]     Checking tokio v1.52.3
[INFO] [stderr]    Compiling zerofrom v0.1.8
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]     Checking yoke v0.8.3
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling rustls v0.23.40
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling rustls-pki-types v1.14.1
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling cc v1.2.63
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling mio v1.2.1
[INFO] [stderr]    Compiling socket2 v0.6.4
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling foldhash v0.2.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling crc-catalog v2.5.0
[INFO] [stderr]    Compiling chrono v0.4.45
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling cmake v0.1.58
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]    Compiling webpki-roots v1.0.7
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling uuid v1.23.3
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling flume v0.12.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling aws-lc-sys v0.41.0
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.37.0
[INFO] [stderr]    Compiling hashlink v0.11.1
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking serde_json v1.0.150
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]     Checking either v1.16.0
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling portable-atomic v1.13.1
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking dirs-sys v0.5.0
[INFO] [stderr]     Checking rustls-native-certs v0.8.4
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]    Compiling tree-sitter v0.22.6
[INFO] [stderr]     Checking console v0.16.3
[INFO] [stderr]     Checking dirs v6.0.0
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking errno v0.2.8
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tokio-stream v0.1.18
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking unit-prefix v0.5.2
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking shellexpand v3.1.2
[INFO] [stderr]     Checking indicatif v0.18.4
[INFO] [stderr]     Checking colored v3.1.1
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]     Checking h2 v0.4.14
[INFO] [stderr]    Compiling regex v1.12.4
[INFO] [stderr]    Compiling pcap v2.4.0
[INFO] [stderr]    Compiling rustls-webpki v0.103.13
[INFO] [stderr]     Checking hyper v1.10.1
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]    Compiling sqlx-core v0.9.0
[INFO] [stderr]    Compiling aws-lc-rs v1.17.0
[INFO] [stderr]    Compiling sqlx-sqlite v0.9.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.9.0
[INFO] [stderr]    Compiling sqlx-macros v0.9.0
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking rustls-platform-verifier v0.7.0
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking reqwest v0.13.4
[INFO] [stderr]     Checking sqlx v0.9.0
[INFO] [stderr]     Checking codeshield v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/capture.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::{Result, Context};
[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: `Capture` and `Device`
[INFO] [stdout]  --> src/capture.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use pcap::{Capture, Device};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `collections::HashMap`
[INFO] [stdout]  --> src/capture.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::{collections::HashMap, time::{Duration, SystemTime}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/ast_chunker.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/capture.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::{Result, Context};
[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: `Capture` and `Device`
[INFO] [stdout]  --> src/capture.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use pcap::{Capture, Device};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `collections::HashMap`
[INFO] [stdout]  --> src/capture.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::{collections::HashMap, time::{Duration, SystemTime}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/ast_chunker.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FlowFeatures` is never constructed
[INFO] [stdout]   --> src/capture.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct FlowFeatures {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IdsAlert` is never constructed
[INFO] [stdout]   --> src/capture.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct IdsAlert {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `detect_anomaly` is never used
[INFO] [stdout]   --> src/capture.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub fn detect_anomaly(flow: &FlowFeatures) -> Option<IdsAlert> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `entropy` is never used
[INFO] [stdout]    --> src/capture.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn entropy(data: &[u8]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `line_start` and `line_end` are never read
[INFO] [stdout]   --> src/ast_chunker.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CodeChunk {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 12 |     pub content: String,          // numbered lines: "  42 | let x = ..."
[INFO] [stdout] 13 |     pub line_start: usize,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub line_end: usize,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeChunk` 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: struct `FlowFeatures` is never constructed
[INFO] [stdout]   --> src/capture.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct FlowFeatures {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IdsAlert` is never constructed
[INFO] [stdout]   --> src/capture.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct IdsAlert {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `detect_anomaly` is never used
[INFO] [stdout]   --> src/capture.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub fn detect_anomaly(flow: &FlowFeatures) -> Option<IdsAlert> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `entropy` is never used
[INFO] [stdout]    --> src/capture.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn entropy(data: &[u8]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `line_start` and `line_end` are never read
[INFO] [stdout]   --> src/ast_chunker.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CodeChunk {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 12 |     pub content: String,          // numbered lines: "  42 | let x = ..."
[INFO] [stdout] 13 |     pub line_start: usize,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub line_end: usize,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeChunk` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: unused dependency `thiserror`
[INFO] [stderr]   --> Cargo.toml:10:1
[INFO] [stderr]    |
[INFO] [stderr] 10 | thiserror = "1.0"
[INFO] [stderr]    | ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `thiserror`
[INFO] [stderr] warning: unused dependency `tree-sitter`
[INFO] [stderr]   --> Cargo.toml:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | tree-sitter = "0.22"
[INFO] [stderr]    | ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `tree-sitter`
[INFO] [stderr] warning: `codeshield` (manifest) generated 2 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 30s
[INFO] running `Command { std: "docker" "inspect" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61", kill_on_drop: false }`
[INFO] [stdout] 25368544845ffb3d4c184ace3ef03b12aa17e238fd8c92c69999dbb031871c61
