[INFO] cloning repository https://github.com/fuguier001/rust-mitm-proxy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fuguier001/rust-mitm-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 051e2a46c05d9fe7afc086751bfed66d53a2ec8c
[INFO] testing fuguier001/rust-mitm-proxy against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy" "/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/fuguier001/rust-mitm-proxy
[INFO] finished tweaking git repo https://github.com/fuguier001/rust-mitm-proxy
[INFO] tweaked toml for git repo https://github.com/fuguier001/rust-mitm-proxy written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/fuguier001/rust-mitm-proxy on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/fuguier001/rust-mitm-proxy 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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.113
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.113
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.113
[INFO] [stderr]   Downloaded tempfile v3.26.0
[INFO] [stderr]   Downloaded rcgen v0.11.3
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.113
[INFO] [stderr]   Downloaded js-sys v0.3.90
[INFO] [stderr]   Downloaded web-sys v0.3.90
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0b9bc9681534c09ba54b118fb52909c85af41c9a24f245673e9864fcb10e1a04
[INFO] running `Command { std: "docker" "start" "-a" "0b9bc9681534c09ba54b118fb52909c85af41c9a24f245673e9864fcb10e1a04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0b9bc9681534c09ba54b118fb52909c85af41c9a24f245673e9864fcb10e1a04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0b9bc9681534c09ba54b118fb52909c85af41c9a24f245673e9864fcb10e1a04", kill_on_drop: false }`
[INFO] [stdout] 0b9bc9681534c09ba54b118fb52909c85af41c9a24f245673e9864fcb10e1a04
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 305fccb91322df00708924b4285b88cb5767e211574dd6f3b2d3a7f75d0c64b6
[INFO] running `Command { std: "docker" "start" "-a" "305fccb91322df00708924b4285b88cb5767e211574dd6f3b2d3a7f75d0c64b6", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.24
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling socket2 v0.6.2
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling bitflags v2.11.0
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling deranged v0.5.8
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling openssl-probe v0.2.1
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling getrandom v0.4.1
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]    Compiling clap_lex v1.0.0
[INFO] [stderr]    Compiling time v0.3.47
[INFO] [stderr]    Compiling clap_builder v4.5.60
[INFO] [stderr]    Compiling pem v3.0.6
[INFO] [stderr]    Compiling dirs-sys v0.4.1
[INFO] [stderr]    Compiling yasna v0.5.2
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling rustls-native-certs v0.6.3
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling uuid v1.21.0
[INFO] [stderr]    Compiling dirs v5.0.1
[INFO] [stderr]    Compiling rcgen v0.11.3
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling clap_derive v4.5.55
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling clap v4.5.60
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling rust_mitm_proxy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `KeyPair`
[INFO] [stdout]  --> src/proxy/certificate.rs:3:78
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[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 import: `AsyncWriteExt`
[INFO] [stdout]   --> src/proxy/http.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stdout]    --> src/proxy/http.rs:270:13
[INFO] [stdout]     |
[INFO] [stdout] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]  --> src/utils/network.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stdout]   |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/capture/recorder.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stdout]    |                         ------- any code following this expression is unreachable
[INFO] [stdout] 33 |             request: request.clone(),
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/proxy/certificate.rs:114:16
[INFO] [stdout]     |
[INFO] [stdout] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/capture/recorder.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         request: &RequestInfo,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/capture/recorder.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         response: &ResponseInfo,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `duration_ms`
[INFO] [stdout]   --> src/capture/recorder.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         duration_ms: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `record`
[INFO] [stdout]   --> src/capture/recorder.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let record = TrafficRecord {
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `records` are never read
[INFO] [stdout]   --> src/capture/recorder.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct TrafficRecorder {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout]  9 |     config: CaptureConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[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 `record`, `get_all`, and `print_record` are never used
[INFO] [stdout]   --> src/capture/recorder.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TrafficRecorder {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub async fn record(
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Exporter` is never constructed
[INFO] [stdout]  --> src/capture/exporter.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct Exporter;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stdout]   --> src/capture/exporter.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Exporter {
[INFO] [stdout]    | ------------- associated functions in this implementation
[INFO] [stdout] 12 |     /// 导出流量记录
[INFO] [stdout] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_file` is never used
[INFO] [stdout]   --> src/config.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum ProxyError {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     TlsError(String),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     ProxyError(String),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `ca_cert_der` is never read
[INFO] [stdout]   --> src/proxy/certificate.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct CertificateManager {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     ca_cert_der: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_ca_cert_der`, `save_ca_cert`, and `get_cache_stats` are never used
[INFO] [stdout]    --> src/proxy/certificate.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout]  28 | impl CertificateManager {
[INFO] [stdout]     | ----------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn get_ca_cert_der(&self) -> Result<Vec<u8>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub async fn get_cache_stats(&self) -> (usize, usize) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `extract_query` is never used
[INFO] [stdout]    --> src/proxy/http.rs:458:8
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl HttpHandler {
[INFO] [stdout]     | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_config` is never used
[INFO] [stdout]   --> src/utils/config_utils.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ConfigUtils {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/config.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         if self.server.port > 65535 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 39s
[INFO] running `Command { std: "docker" "inspect" "305fccb91322df00708924b4285b88cb5767e211574dd6f3b2d3a7f75d0c64b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "305fccb91322df00708924b4285b88cb5767e211574dd6f3b2d3a7f75d0c64b6", kill_on_drop: false }`
[INFO] [stdout] 305fccb91322df00708924b4285b88cb5767e211574dd6f3b2d3a7f75d0c64b6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3cf7896d8e8241f02710968d3f3302fe1bc4bc95568eaf1240d05359f087ab23
[INFO] running `Command { std: "docker" "start" "-a" "3cf7896d8e8241f02710968d3f3302fe1bc4bc95568eaf1240d05359f087ab23", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling tokio-test v0.4.5
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling rust_mitm_proxy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `KeyPair`
[INFO] [stdout]  --> src/proxy/certificate.rs:3:78
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[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 import: `AsyncWriteExt`
[INFO] [stdout]   --> src/proxy/http.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stdout]    --> src/proxy/http.rs:270:13
[INFO] [stdout]     |
[INFO] [stdout] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]  --> src/utils/network.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stdout]   |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/capture/recorder.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stdout]    |                         ------- any code following this expression is unreachable
[INFO] [stdout] 33 |             request: request.clone(),
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/proxy/certificate.rs:114:16
[INFO] [stdout]     |
[INFO] [stdout] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/capture/recorder.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         request: &RequestInfo,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/capture/recorder.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         response: &ResponseInfo,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `duration_ms`
[INFO] [stdout]   --> src/capture/recorder.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         duration_ms: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `record`
[INFO] [stdout]   --> src/capture/recorder.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let record = TrafficRecord {
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `records` are never read
[INFO] [stdout]   --> src/capture/recorder.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct TrafficRecorder {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout]  9 |     config: CaptureConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[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 `record`, `get_all`, and `print_record` are never used
[INFO] [stdout]   --> src/capture/recorder.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TrafficRecorder {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub async fn record(
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Exporter` is never constructed
[INFO] [stdout]  --> src/capture/exporter.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct Exporter;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stdout]   --> src/capture/exporter.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Exporter {
[INFO] [stdout]    | ------------- associated functions in this implementation
[INFO] [stdout] 12 |     /// 导出流量记录
[INFO] [stdout] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_file` is never used
[INFO] [stdout]   --> src/config.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum ProxyError {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     TlsError(String),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     ProxyError(String),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `save_ca_cert` is never used
[INFO] [stdout]    --> src/proxy/certificate.rs:166:18
[INFO] [stdout]     |
[INFO] [stdout]  28 | impl CertificateManager {
[INFO] [stdout]     | ----------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `extract_query` is never used
[INFO] [stdout]    --> src/proxy/http.rs:458:8
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl HttpHandler {
[INFO] [stdout]     | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_config` is never used
[INFO] [stdout]   --> src/utils/config_utils.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ConfigUtils {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/config.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         if self.server.port > 65535 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 22.39s
[INFO] running `Command { std: "docker" "inspect" "3cf7896d8e8241f02710968d3f3302fe1bc4bc95568eaf1240d05359f087ab23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3cf7896d8e8241f02710968d3f3302fe1bc4bc95568eaf1240d05359f087ab23", kill_on_drop: false }`
[INFO] [stdout] 3cf7896d8e8241f02710968d3f3302fe1bc4bc95568eaf1240d05359f087ab23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 17d9878ac179acc0cbffed3a2d3ed6f4eab63d423623ccce44b0014283574749
[INFO] running `Command { std: "docker" "start" "-a" "17d9878ac179acc0cbffed3a2d3ed6f4eab63d423623ccce44b0014283574749", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `KeyPair`
[INFO] [stderr]  --> src/proxy/certificate.rs:3:78
[INFO] [stderr]   |
[INFO] [stderr] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[INFO] [stderr]   |                                                                              ^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `AsyncWriteExt`
[INFO] [stderr]   --> src/proxy/http.rs:30:56
[INFO] [stderr]    |
[INFO] [stderr] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stderr]    |                                                        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stderr]    --> src/proxy/http.rs:270:13
[INFO] [stderr]     |
[INFO] [stderr] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Ipv4Addr`
[INFO] [stderr]  --> src/utils/network.rs:2:24
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stderr]   |                        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]   --> src/capture/recorder.rs:33:22
[INFO] [stderr]    |
[INFO] [stderr] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stderr]    |                         ------- any code following this expression is unreachable
[INFO] [stderr] 33 |             request: request.clone(),
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: irrefutable `if let` pattern
[INFO] [stderr]    --> src/proxy/certificate.rs:114:16
[INFO] [stderr]     |
[INFO] [stderr] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stderr]     = help: consider replacing the `if let` with a `let`
[INFO] [stderr]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `request`
[INFO] [stderr]   --> src/capture/recorder.rs:25:9
[INFO] [stderr]    |
[INFO] [stderr] 25 |         request: &RequestInfo,
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `response`
[INFO] [stderr]   --> src/capture/recorder.rs:26:9
[INFO] [stderr]    |
[INFO] [stderr] 26 |         response: &ResponseInfo,
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `duration_ms`
[INFO] [stderr]   --> src/capture/recorder.rs:27:9
[INFO] [stderr]    |
[INFO] [stderr] 27 |         duration_ms: u64,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `record`
[INFO] [stderr]   --> src/capture/recorder.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 |         let record = TrafficRecord {
[INFO] [stderr]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record`
[INFO] [stderr] 
[INFO] [stderr] warning: fields `config` and `records` are never read
[INFO] [stderr]   --> src/capture/recorder.rs:9:5
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub struct TrafficRecorder {
[INFO] [stderr]    |            --------------- fields in this struct
[INFO] [stderr]  9 |     config: CaptureConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: methods `record`, `get_all`, and `print_record` are never used
[INFO] [stderr]   --> src/capture/recorder.rs:23:18
[INFO] [stderr]    |
[INFO] [stderr] 13 | impl TrafficRecorder {
[INFO] [stderr]    | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub async fn record(
[INFO] [stderr]    |                  ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stderr]    |                  ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Exporter` is never constructed
[INFO] [stderr]  --> src/capture/exporter.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub struct Exporter;
[INFO] [stderr]   |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stderr]   --> src/capture/exporter.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 11 | impl Exporter {
[INFO] [stderr]    | ------------- associated functions in this implementation
[INFO] [stderr] 12 |     /// 导出流量记录
[INFO] [stderr] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stderr]    |        ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `to_file` is never used
[INFO] [stderr]   --> src/config.rs:52:12
[INFO] [stderr]    |
[INFO] [stderr] 36 | impl Config {
[INFO] [stderr]    | ----------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stderr]   --> src/error.rs:22:5
[INFO] [stderr]    |
[INFO] [stderr]  5 | pub enum ProxyError {
[INFO] [stderr]    |          ---------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 22 |     TlsError(String),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 34 |     ProxyError(String),
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `save_ca_cert` is never used
[INFO] [stderr]    --> src/proxy/certificate.rs:166:18
[INFO] [stderr]     |
[INFO] [stderr]  28 | impl CertificateManager {
[INFO] [stderr]     | ----------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `extract_query` is never used
[INFO] [stderr]    --> src/proxy/http.rs:458:8
[INFO] [stderr]     |
[INFO] [stderr]  16 | impl HttpHandler {
[INFO] [stderr]     | ---------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `create_default_config` is never used
[INFO] [stderr]   --> src/utils/config_utils.rs:17:12
[INFO] [stderr]    |
[INFO] [stderr]  8 | impl ConfigUtils {
[INFO] [stderr]    | ---------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: comparison is useless due to type limits
[INFO] [stderr]   --> src/config.rs:71:12
[INFO] [stderr]    |
[INFO] [stderr] 71 |         if self.server.port > 65535 {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_mitm_proxy` (bin "rust_mitm_proxy" test) generated 20 warnings (run `cargo fix --bin "rust_mitm_proxy" -p rust_mitm_proxy --tests` to apply 8 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_mitm_proxy-98315ac65849f25f)
[INFO] [stdout] running 3 tests
[INFO] [stdout] test proxy::certificate::tests::test_cert_cache ... ok
[INFO] [stdout] test proxy::certificate::tests::test_domain_cert_generation ... ok
[INFO] [stdout] test proxy::certificate::tests::test_ca_cert_generation ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- proxy::certificate::tests::test_ca_cert_generation stdout ----
[INFO] [stdout] 🔐 生成新的 CA 根证书...
[INFO] [stdout] ✅ CA 根证书生成成功
[INFO] [stdout]    主题: CN=Rust MITM Proxy CA, O=Rust MITM Proxy, C=CN
[INFO] [stdout]    有效期: 10 年
[INFO] [stdout] 
[INFO] [stdout] thread 'proxy::certificate::tests::test_ca_cert_generation' (18) panicked at src/proxy/certificate.rs:201:9:
[INFO] [stdout] assertion failed: ca_pem.contains("Rust MITM Proxy CA")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x5b52bad6860a - std[29689e6404d28ef9]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x5b52bad6860a - std[29689e6404d28ef9]::backtrace_rs::backtrace::trace_unsynchronized::<std[29689e6404d28ef9]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x5b52bad6860a - std[29689e6404d28ef9]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x5b52bad6860a - <<std[29689e6404d28ef9]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[e929cb53b82a81ca]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x5b52bad7c6da - <core[e929cb53b82a81ca]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x5b52bad7c6da - core[e929cb53b82a81ca]::fmt::write
[INFO] [stdout]    6:     0x5b52bad6cfb2 - std[29689e6404d28ef9]::io::default_write_fmt::<alloc[9d7caffeb3b5d2c6]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/io/mod.rs:621:11
[INFO] [stdout]    7:     0x5b52bad6cfb2 - <alloc[9d7caffeb3b5d2c6]::vec::Vec<u8> as std[29689e6404d28ef9]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/io/mod.rs:1976:13
[INFO] [stdout]    8:     0x5b52bad4719f - <std[29689e6404d28ef9]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x5b52bad4719f - std[29689e6404d28ef9]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x5b52bad60819 - std[29689e6404d28ef9]::panicking::default_hook
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x5b52babf32dc - <alloc[9d7caffeb3b5d2c6]::boxed::Box<dyn for<'a, 'b> core[e929cb53b82a81ca]::ops::function::Fn<(&'a std[29689e6404d28ef9]::panic::PanicHookInfo<'b>,), Output = ()> + core[e929cb53b82a81ca]::marker::Send + core[e929cb53b82a81ca]::marker::Sync> as core[e929cb53b82a81ca]::ops::function::Fn<(&std[29689e6404d28ef9]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/alloc/src/boxed.rs:2285:9
[INFO] [stdout]   12:     0x5b52babf32dc - test[a24b3028667022f7]::test_main_inner::<test[a24b3028667022f7]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:155:21
[INFO] [stdout]   13:     0x5b52bad60a92 - <alloc[9d7caffeb3b5d2c6]::boxed::Box<dyn for<'a, 'b> core[e929cb53b82a81ca]::ops::function::Fn<(&'a std[29689e6404d28ef9]::panic::PanicHookInfo<'b>,), Output = ()> + core[e929cb53b82a81ca]::marker::Send + core[e929cb53b82a81ca]::marker::Sync> as core[e929cb53b82a81ca]::ops::function::Fn<(&std[29689e6404d28ef9]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/alloc/src/boxed.rs:2285:9
[INFO] [stdout]   14:     0x5b52bad60a92 - std[29689e6404d28ef9]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x5b52bad4728a - std[29689e6404d28ef9]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:691:13
[INFO] [stdout]   16:     0x5b52bad3c469 - std[29689e6404d28ef9]::sys::backtrace::__rust_end_short_backtrace::<std[29689e6404d28ef9]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x5b52bad47f6d - __rustc[3aed6af316653e63]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x5b52bad7ce9c - core[e929cb53b82a81ca]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x5b52bad7ce62 - core[e929cb53b82a81ca]::panicking::panic
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/panicking.rs:150:5
[INFO] [stdout]   20:     0x5b52babd0835 - rust_mitm_proxy[aa7b23445867e47c]::proxy::certificate::tests::test_ca_cert_generation::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/proxy/certificate.rs:201:9
[INFO] [stdout]   21:     0x5b52babd3d42 - <core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>> as core[e929cb53b82a81ca]::future::future::Future>::poll
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/future/future.rs:133:9
[INFO] [stdout]   22:     0x5b52babd3dbd - <core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>> as core[e929cb53b82a81ca]::future::future::Future>::poll
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/future/future.rs:133:9
[INFO] [stdout]   23:     0x5b52babe239d - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:753:70
[INFO] [stdout]   24:     0x5b52babe229b - tokio[f93d5e32ddb289e4]::task::coop::with_budget::<core[e929cb53b82a81ca]::task::poll::Poll<()>, <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}::{closure#0}>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/task/coop/mod.rs:167:5
[INFO] [stdout]   25:     0x5b52babe229b - tokio[f93d5e32ddb289e4]::task::coop::budget::<core[e929cb53b82a81ca]::task::poll::Poll<()>, <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}::{closure#0}>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/task/coop/mod.rs:133:5
[INFO] [stdout]   26:     0x5b52babe229b - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:753:25
[INFO] [stdout]   27:     0x5b52babddaa0 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Context>::enter::<core[e929cb53b82a81ca]::task::poll::Poll<()>, <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:442:19
[INFO] [stdout]   28:     0x5b52babe0aed - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:752:44
[INFO] [stdout]   29:     0x5b52babdfde4 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter::<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:840:68
[INFO] [stdout]   30:     0x5b52babd4a8b - <tokio[f93d5e32ddb289e4]::runtime::context::scoped::Scoped<tokio[f93d5e32ddb289e4]::runtime::scheduler::Context>>::set::<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}, (alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>)>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/context/scoped.rs:40:9
[INFO] [stdout]   31:     0x5b52babcbc69 - tokio[f93d5e32ddb289e4]::runtime::context::set_scheduler::<(alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>), <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/context.rs:176:38
[INFO] [stdout]   32:     0x5b52babc9c32 - <std[29689e6404d28ef9]::thread::local::LocalKey<tokio[f93d5e32ddb289e4]::runtime::context::Context>>::try_with::<tokio[f93d5e32ddb289e4]::runtime::context::set_scheduler<(alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>), <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}>::{closure#0}, (alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>)>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/thread/local.rs:462:12
[INFO] [stdout]   33:     0x5b52babc97be - <std[29689e6404d28ef9]::thread::local::LocalKey<tokio[f93d5e32ddb289e4]::runtime::context::Context>>::with::<tokio[f93d5e32ddb289e4]::runtime::context::set_scheduler<(alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>), <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}>::{closure#0}, (alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>)>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/thread/local.rs:426:20
[INFO] [stdout]   34:     0x5b52babcbadd - tokio[f93d5e32ddb289e4]::runtime::context::set_scheduler::<(alloc[9d7caffeb3b5d2c6]::boxed::Box<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::Core>, core[e929cb53b82a81ca]::option::Option<()>), <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>::{closure#0}>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/context.rs:176:17
[INFO] [stdout]   35:     0x5b52babdeb40 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::enter::<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>::{closure#0}, core[e929cb53b82a81ca]::option::Option<()>>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:840:27
[INFO] [stdout]   36:     0x5b52babdee36 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CoreGuard>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:740:24
[INFO] [stdout]   37:     0x5b52babdf9f0 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CurrentThread>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:200:33
[INFO] [stdout]   38:     0x5b52babdf3d3 - tokio[f93d5e32ddb289e4]::runtime::context::runtime::enter_runtime::<<tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CurrentThread>::block_on<core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>::{closure#0}, ()>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/context/runtime.rs:65:16
[INFO] [stdout]   39:     0x5b52babdd371 - <tokio[f93d5e32ddb289e4]::runtime::scheduler::current_thread::CurrentThread>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/scheduler/current_thread/mod.rs:188:9
[INFO] [stdout]   40:     0x5b52babc92d4 - <tokio[f93d5e32ddb289e4]::runtime::runtime::Runtime>::block_on_inner::<core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/runtime.rs:368:52
[INFO] [stdout]   41:     0x5b52babc949f - <tokio[f93d5e32ddb289e4]::runtime::runtime::Runtime>::block_on::<core[e929cb53b82a81ca]::pin::Pin<&mut dyn core[e929cb53b82a81ca]::future::future::Future<Output = ()>>>
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/runtime/runtime.rs:342:18
[INFO] [stdout]   42:     0x5b52babd3021 - rust_mitm_proxy[aa7b23445867e47c]::proxy::certificate::tests::test_ca_cert_generation
[INFO] [stdout]                                at /opt/rustwide/workdir/src/proxy/certificate.rs:204:36
[INFO] [stdout]   43:     0x5b52babcf717 - rust_mitm_proxy[aa7b23445867e47c]::proxy::certificate::tests::test_ca_cert_generation::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/proxy/certificate.rs:194:39
[INFO] [stdout]   44:     0x5b52babd40f6 - <rust_mitm_proxy[aa7b23445867e47c]::proxy::certificate::tests::test_ca_cert_generation::{closure#0} as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   45:     0x5b52babe65bb - <fn() -> core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String> as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   46:     0x5b52babe65bb - test[a24b3028667022f7]::__rust_begin_short_backtrace::<core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String>, fn() -> core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:724:18
[INFO] [stdout]   47:     0x5b52babf3dab - test[a24b3028667022f7]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:747:74
[INFO] [stdout]   48:     0x5b52babf3dab - <core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<test[a24b3028667022f7]::run_test_in_process::{closure#0}> as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   49:     0x5b52babf3dab - std[29689e6404d28ef9]::panicking::catch_unwind::do_call::<core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<test[a24b3028667022f7]::run_test_in_process::{closure#0}>, core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:581:40
[INFO] [stdout]   50:     0x5b52babf3dab - std[29689e6404d28ef9]::panicking::catch_unwind::<core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String>, core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<test[a24b3028667022f7]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:544:19
[INFO] [stdout]   51:     0x5b52babf3dab - std[29689e6404d28ef9]::panic::catch_unwind::<core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<test[a24b3028667022f7]::run_test_in_process::{closure#0}>, core[e929cb53b82a81ca]::result::Result<(), alloc[9d7caffeb3b5d2c6]::string::String>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panic.rs:359:14
[INFO] [stdout]   52:     0x5b52babf3dab - test[a24b3028667022f7]::run_test_in_process
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:747:27
[INFO] [stdout]   53:     0x5b52babf3dab - test[a24b3028667022f7]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:668:43
[INFO] [stdout]   54:     0x5b52babed4c4 - test[a24b3028667022f7]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/test/src/lib.rs:698:41
[INFO] [stdout]   55:     0x5b52babed4c4 - std[29689e6404d28ef9]::sys::backtrace::__rust_begin_short_backtrace::<test[a24b3028667022f7]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   56:     0x5b52babf69b2 - std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked::<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/thread/lifecycle.rs:70:13
[INFO] [stdout]   57:     0x5b52babf69b2 - <core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   58:     0x5b52babf69b2 - std[29689e6404d28ef9]::panicking::catch_unwind::do_call::<core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:581:40
[INFO] [stdout]   59:     0x5b52babf69b2 - std[29689e6404d28ef9]::panicking::catch_unwind::<(), core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panicking.rs:544:19
[INFO] [stdout]   60:     0x5b52babf69b2 - std[29689e6404d28ef9]::panic::catch_unwind::<core[e929cb53b82a81ca]::panic::unwind_safe::AssertUnwindSafe<std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/panic.rs:359:14
[INFO] [stdout]   61:     0x5b52babf69b2 - std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked::<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/thread/lifecycle.rs:68:26
[INFO] [stdout]   62:     0x5b52babf69b2 - <std[29689e6404d28ef9]::thread::lifecycle::spawn_unchecked<test[a24b3028667022f7]::run_test::{closure#1}, ()>::{closure#1} as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   63:     0x5b52bad67edf - <alloc[9d7caffeb3b5d2c6]::boxed::Box<dyn core[e929cb53b82a81ca]::ops::function::FnOnce<(), Output = ()> + core[e929cb53b82a81ca]::marker::Send> as core[e929cb53b82a81ca]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/alloc/src/boxed.rs:2271:9
[INFO] [stdout]   64:     0x5b52bad67edf - <std[29689e6404d28ef9]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/ec6f9a5b4413f74386267ef8efc93712c2ce6db6/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   65:     0x7dc2c0159aa4 - <unknown>
[INFO] [stdout]   66:     0x7dc2c01e6a64 - clone
[INFO] [stdout]   67:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     proxy::certificate::tests::test_ca_cert_generation
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--bin rust_mitm_proxy`
[INFO] running `Command { std: "docker" "inspect" "17d9878ac179acc0cbffed3a2d3ed6f4eab63d423623ccce44b0014283574749", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "17d9878ac179acc0cbffed3a2d3ed6f4eab63d423623ccce44b0014283574749", kill_on_drop: false }`
[INFO] [stdout] 17d9878ac179acc0cbffed3a2d3ed6f4eab63d423623ccce44b0014283574749
