[INFO] cloning repository https://github.com/chinnapongpsu/fileguard
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chinnapongpsu/fileguard" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinnapongpsu%2Ffileguard", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinnapongpsu%2Ffileguard'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0369f57e3ffeb356e4c7f4c0422e829c2c37e613
[INFO] checking chinnapongpsu/fileguard against 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d for pr-159598
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinnapongpsu%2Ffileguard" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/chinnapongpsu/fileguard
[INFO] finished tweaking git repo https://github.com/chinnapongpsu/fileguard
[INFO] tweaked toml for git repo https://github.com/chinnapongpsu/fileguard written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chinnapongpsu/fileguard on toolchain 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/chinnapongpsu/fileguard 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" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "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 bstr v1.12.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7
[INFO] running `Command { std: "docker" "start" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7", 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" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7", 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" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.100
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling bumpalo v3.17.0
[INFO] [stderr]    Compiling rustversion v1.0.21
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]    Compiling wasm-bindgen v0.2.100
[INFO] [stderr]     Checking regex-syntax v0.8.5
[INFO] [stderr]     Checking adler2 v2.0.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking crc32fast v1.4.2
[INFO] [stderr]     Checking miniz_oxide v0.8.8
[INFO] [stderr]     Checking flate2 v1.1.1
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking zip v0.6.6
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.100
[INFO] [stderr]     Checking bstr v1.12.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.100
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.100
[INFO] [stderr]     Checking js-sys v0.3.77
[INFO] [stderr]     Checking web-sys v0.3.77
[INFO] [stderr]     Checking rf_validator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: static `OPENACTION_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | static OPENACTION_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"/openaction\s+<<[^>]*(/js|/launch)[^>]*>>").unwrap());
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNC_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | static UNC_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"(?i)\\\\[a-z0-9][a-z0-9_.-]{1,98}[a-z0-9]\\[^\s\\/:*?"<>|]{2,}"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `URI_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | static URI_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"/\s*/uri\s*/uri\s*\(([^)]+)\)"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EICAR_SIGNATURE` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const EICAR_SIGNATURE: &[u8] = b"x5o!p%@ap[4\\pzx54(p^)7cc)7}$eicar-standard-antivirus-test-file!$h+h*";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENTROPY_SUSPICIOUS_THRESHOLD` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:51:7
[INFO] [stdout]    |
[INFO] [stdout] 51 | const ENTROPY_SUSPICIOUS_THRESHOLD: f64 = 7.9;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `display_analysis_result` is never used
[INFO] [stdout]    --> src/pdf_analysis.rs:300:6
[INFO] [stdout]     |
[INFO] [stdout] 300 |   fn display_analysis_result(data: &[u8]) {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `OPENACTION_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | static OPENACTION_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"/openaction\s+<<[^>]*(/js|/launch)[^>]*>>").unwrap());
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNC_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | static UNC_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"(?i)\\\\[a-z0-9][a-z0-9_.-]{1,98}[a-z0-9]\\[^\s\\/:*?"<>|]{2,}"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `URI_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | static URI_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"/\s*/uri\s*/uri\s*\(([^)]+)\)"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EICAR_SIGNATURE` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const EICAR_SIGNATURE: &[u8] = b"x5o!p%@ap[4\\pzx54(p^)7cc)7}$eicar-standard-antivirus-test-file!$h+h*";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENTROPY_SUSPICIOUS_THRESHOLD` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:51:7
[INFO] [stdout]    |
[INFO] [stdout] 51 | const ENTROPY_SUSPICIOUS_THRESHOLD: f64 = 7.9;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `analyze_file` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:60:8
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub fn analyze_file(file_path: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `display_analysis_result` is never used
[INFO] [stdout]    --> src/pdf_analysis.rs:300:6
[INFO] [stdout]     |
[INFO] [stdout] 300 |   fn display_analysis_result(data: &[u8]) {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `OPENACTION_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | static OPENACTION_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"/openaction\s+<<[^>]*(/js|/launch)[^>]*>>").unwrap());
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNC_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | static UNC_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"(?i)\\\\[a-z0-9][a-z0-9_.-]{1,98}[a-z0-9]\\[^\s\\/:*?"<>|]{2,}"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `URI_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | static URI_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"/\s*/uri\s*/uri\s*\(([^)]+)\)"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EICAR_SIGNATURE` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const EICAR_SIGNATURE: &[u8] = b"x5o!p%@ap[4\\pzx54(p^)7cc)7}$eicar-standard-antivirus-test-file!$h+h*";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENTROPY_SUSPICIOUS_THRESHOLD` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:51:7
[INFO] [stdout]    |
[INFO] [stdout] 51 | const ENTROPY_SUSPICIOUS_THRESHOLD: f64 = 7.9;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `display_analysis_result` is never used
[INFO] [stdout]    --> src/pdf_analysis.rs:300:6
[INFO] [stdout]     |
[INFO] [stdout] 300 |   fn display_analysis_result(data: &[u8]) {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `OPENACTION_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | static OPENACTION_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"/openaction\s+<<[^>]*(/js|/launch)[^>]*>>").unwrap());
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNC_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | static UNC_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"(?i)\\\\[a-z0-9][a-z0-9_.-]{1,98}[a-z0-9]\\[^\s\\/:*?"<>|]{2,}"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `URI_REGEX` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | static URI_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#"/\s*/uri\s*/uri\s*\(([^)]+)\)"#).unwrap());
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EICAR_SIGNATURE` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:21:7
[INFO] [stdout]    |
[INFO] [stdout] 21 | const EICAR_SIGNATURE: &[u8] = b"x5o!p%@ap[4\\pzx54(p^)7cc)7}$eicar-standard-antivirus-test-file!$h+h*";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENTROPY_SUSPICIOUS_THRESHOLD` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:51:7
[INFO] [stdout]    |
[INFO] [stdout] 51 | const ENTROPY_SUSPICIOUS_THRESHOLD: f64 = 7.9;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `analyze_file` is never used
[INFO] [stdout]   --> src/pdf_analysis.rs:60:8
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub fn analyze_file(file_path: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `display_analysis_result` is never used
[INFO] [stdout]    --> src/pdf_analysis.rs:300:6
[INFO] [stdout]     |
[INFO] [stdout] 300 |   fn display_analysis_result(data: &[u8]) {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.49s
[INFO] running `Command { std: "docker" "inspect" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7", kill_on_drop: false }`
[INFO] [stdout] ef9cf1fa66ad037e08cab35fbe72a501e0b6a9fe462998d51dcc7d47c62dbae7
