[INFO] fetching crate hafnium 0.1.0...
[INFO] testing hafnium-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7
[INFO] extracting crate hafnium 0.1.0 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate hafnium 0.1.0
[INFO] finished tweaking crates.io crate hafnium 0.1.0
[INFO] tweaked toml for crates.io crate hafnium 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate hafnium 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate hafnium 0.1.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c9428d5275451d149a6866360193f033397dd47911ff402fdf4408a178a66eab
[INFO] running `Command { std: "docker" "start" "-a" "c9428d5275451d149a6866360193f033397dd47911ff402fdf4408a178a66eab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c9428d5275451d149a6866360193f033397dd47911ff402fdf4408a178a66eab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c9428d5275451d149a6866360193f033397dd47911ff402fdf4408a178a66eab", kill_on_drop: false }`
[INFO] [stdout] c9428d5275451d149a6866360193f033397dd47911ff402fdf4408a178a66eab
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f123c6572c37a14ba2897fcfcc5dc2d34fdb061b86d52594ea66e48661b78efb
[INFO] running `Command { std: "docker" "start" "-a" "f123c6572c37a14ba2897fcfcc5dc2d34fdb061b86d52594ea66e48661b78efb", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling const-oid v0.9.6
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling dunce v1.0.5
[INFO] [stderr]    Compiling base64ct v1.6.0
[INFO] [stderr]    Compiling fs_extra v1.3.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling aws-lc-rs v1.10.0
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling serde v1.0.214
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling base16ct v0.2.0
[INFO] [stderr]    Compiling cpufeatures v0.2.14
[INFO] [stderr]    Compiling rustls-pki-types v1.10.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling mirai-annotations v1.12.0
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling pem-rfc7468 v0.7.0
[INFO] [stderr]    Compiling anstyle-parse v0.2.6
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling hashbrown v0.15.0
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling colorchoice v1.0.3
[INFO] [stderr]    Compiling anstyle-query v1.1.2
[INFO] [stderr]    Compiling anstyle v1.0.10
[INFO] [stderr]    Compiling rustls v0.23.16
[INFO] [stderr]    Compiling der v0.7.9
[INFO] [stderr]    Compiling opaque-debug v0.3.1
[INFO] [stderr]    Compiling clap_lex v0.7.2
[INFO] [stderr]    Compiling pin-project-lite v0.2.15
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling bytes v1.7.1
[INFO] [stderr]    Compiling anyhow v1.0.92
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling anstream v0.6.17
[INFO] [stderr]    Compiling winnow v0.6.20
[INFO] [stderr]    Compiling webpki-roots v0.26.6
[INFO] [stderr]    Compiling base58 v0.2.0
[INFO] [stderr]    Compiling clap_builder v4.5.20
[INFO] [stderr]    Compiling indexmap v2.6.0
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.86
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling inout v0.1.3
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling sec1 v0.7.3
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling jobserver v0.1.32
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling cc v1.1.31
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling ff v0.13.0
[INFO] [stderr]    Compiling crypto-bigint v0.5.5
[INFO] [stderr]    Compiling group v0.13.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling chacha20 v0.9.1
[INFO] [stderr]    Compiling poly1305 v0.8.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling rfc6979 v0.4.0
[INFO] [stderr]    Compiling chacha20poly1305 v0.10.1
[INFO] [stderr]    Compiling serde_spanned v0.6.8
[INFO] [stderr]    Compiling toml_datetime v0.6.8
[INFO] [stderr]    Compiling toml_edit v0.22.22
[INFO] [stderr]    Compiling cmake v0.1.51
[INFO] [stderr]    Compiling aws-lc-sys v0.22.0
[INFO] [stderr]    Compiling elliptic-curve v0.13.8
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling clap_derive v4.5.18
[INFO] [stderr]    Compiling primeorder v0.13.6
[INFO] [stderr]    Compiling ecdsa v0.16.9
[INFO] [stderr]    Compiling toml v0.8.19
[INFO] [stderr]    Compiling p256 v0.13.2
[INFO] [stderr]    Compiling tokio v1.41.0
[INFO] [stderr]    Compiling clap v4.5.20
[INFO] [stderr]    Compiling rustls-webpki v0.102.8
[INFO] [stderr]    Compiling tokio-rustls v0.26.0
[INFO] [stderr]    Compiling hafnium v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `client`
[INFO] [stdout]   --> src/client.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 |     client: &mut HfClient,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `forward_ports` is never read
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct HfClient {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 5 |     remote_peers: Arc<Mutex<Vec<Peer>>>,
[INFO] [stdout] 6 |     forward_ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_value` is never used
[INFO] [stdout]   --> src/config_manager.rs:39:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn set_value(key: &str, value: &str) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `diffie_hellman` is never used
[INFO] [stdout]   --> src/encryption.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl EphemeralSecret {
[INFO] [stdout]    | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 33 |     fn diffie_hellman(&self, public_key: &PublicKey<NistP256>) -> SharedSecret<NistP256> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_shared_secret` is never used
[INFO] [stdout]   --> src/encryption.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub fn get_shared_secret(public_key: &PublicKey<NistP256>) -> [u8; 32] {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]   --> src/encryption.rs:56:14
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub async fn encrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/encryption.rs:64:14
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub async fn decrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `local_port` and `remote_port` are never read
[INFO] [stdout]  --> src/server.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct PortForwarding {
[INFO] [stdout]   |            -------------- fields in this struct
[INFO] [stdout] 6 |     local_port: u16,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 7 |     remote_port: u16,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `PortForwarding` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr`, `port`, and `ports` are never read
[INFO] [stdout]   --> src/server.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Peer {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 12 |     pub addr: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 13 |     pub port: u16,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 14 |     pub ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Peer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HfServer` is never constructed
[INFO] [stdout]   --> src/server.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct HfServer {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `listener` are never used
[INFO] [stdout]   --> src/server.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl HfServer {
[INFO] [stdout]    | ------------- associated items in this implementation
[INFO] [stdout] 23 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub async fn listener(&mut self) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_connection` is never used
[INFO] [stdout]   --> src/server.rs:38:10
[INFO] [stdout]    |
[INFO] [stdout] 38 | async fn handle_connection(server: &mut HfServer, mut socket: tokio::net::TcpStream) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.07s
[INFO] running `Command { std: "docker" "inspect" "f123c6572c37a14ba2897fcfcc5dc2d34fdb061b86d52594ea66e48661b78efb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f123c6572c37a14ba2897fcfcc5dc2d34fdb061b86d52594ea66e48661b78efb", kill_on_drop: false }`
[INFO] [stdout] f123c6572c37a14ba2897fcfcc5dc2d34fdb061b86d52594ea66e48661b78efb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ff050e1778486e4844c8589bc77970e7a22f0aa9ad3bde0f64fcad2cb0ec0a7d
[INFO] running `Command { std: "docker" "start" "-a" "ff050e1778486e4844c8589bc77970e7a22f0aa9ad3bde0f64fcad2cb0ec0a7d", kill_on_drop: false }`
[INFO] [stderr]    Compiling hafnium v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `client`
[INFO] [stdout]   --> src/client.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 |     client: &mut HfClient,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `forward_ports` is never read
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct HfClient {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 5 |     remote_peers: Arc<Mutex<Vec<Peer>>>,
[INFO] [stdout] 6 |     forward_ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_value` is never used
[INFO] [stdout]   --> src/config_manager.rs:39:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn set_value(key: &str, value: &str) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `diffie_hellman` is never used
[INFO] [stdout]   --> src/encryption.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl EphemeralSecret {
[INFO] [stdout]    | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 33 |     fn diffie_hellman(&self, public_key: &PublicKey<NistP256>) -> SharedSecret<NistP256> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_shared_secret` is never used
[INFO] [stdout]   --> src/encryption.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub fn get_shared_secret(public_key: &PublicKey<NistP256>) -> [u8; 32] {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt` is never used
[INFO] [stdout]   --> src/encryption.rs:56:14
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub async fn encrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decrypt` is never used
[INFO] [stdout]   --> src/encryption.rs:64:14
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub async fn decrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `local_port` and `remote_port` are never read
[INFO] [stdout]  --> src/server.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct PortForwarding {
[INFO] [stdout]   |            -------------- fields in this struct
[INFO] [stdout] 6 |     local_port: u16,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 7 |     remote_port: u16,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `PortForwarding` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr`, `port`, and `ports` are never read
[INFO] [stdout]   --> src/server.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Peer {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 12 |     pub addr: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 13 |     pub port: u16,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 14 |     pub ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Peer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HfServer` is never constructed
[INFO] [stdout]   --> src/server.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct HfServer {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `listener` are never used
[INFO] [stdout]   --> src/server.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl HfServer {
[INFO] [stdout]    | ------------- associated items in this implementation
[INFO] [stdout] 23 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub async fn listener(&mut self) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_connection` is never used
[INFO] [stdout]   --> src/server.rs:38:10
[INFO] [stdout]    |
[INFO] [stdout] 38 | async fn handle_connection(server: &mut HfServer, mut socket: tokio::net::TcpStream) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.16s
[INFO] running `Command { std: "docker" "inspect" "ff050e1778486e4844c8589bc77970e7a22f0aa9ad3bde0f64fcad2cb0ec0a7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ff050e1778486e4844c8589bc77970e7a22f0aa9ad3bde0f64fcad2cb0ec0a7d", kill_on_drop: false }`
[INFO] [stdout] ff050e1778486e4844c8589bc77970e7a22f0aa9ad3bde0f64fcad2cb0ec0a7d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] c7c04c6aa51ce990de71139d67e48fa087b57584786e545d392f4ceb42b28589
[INFO] running `Command { std: "docker" "start" "-a" "c7c04c6aa51ce990de71139d67e48fa087b57584786e545d392f4ceb42b28589", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `client`
[INFO] [stderr]   --> src/client.rs:39:5
[INFO] [stderr]    |
[INFO] [stderr] 39 |     client: &mut HfClient,
[INFO] [stderr]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `forward_ports` is never read
[INFO] [stderr]  --> src/client.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct HfClient {
[INFO] [stderr]   |            -------- field in this struct
[INFO] [stderr] 5 |     remote_peers: Arc<Mutex<Vec<Peer>>>,
[INFO] [stderr] 6 |     forward_ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `set_value` is never used
[INFO] [stderr]   --> src/config_manager.rs:39:8
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub fn set_value(key: &str, value: &str) {
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `diffie_hellman` is never used
[INFO] [stderr]   --> src/encryption.rs:33:8
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl EphemeralSecret {
[INFO] [stderr]    | -------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 33 |     fn diffie_hellman(&self, public_key: &PublicKey<NistP256>) -> SharedSecret<NistP256> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_shared_secret` is never used
[INFO] [stderr]   --> src/encryption.rs:52:8
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub fn get_shared_secret(public_key: &PublicKey<NistP256>) -> [u8; 32] {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `encrypt` is never used
[INFO] [stderr]   --> src/encryption.rs:56:14
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub async fn encrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stderr]    |              ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `decrypt` is never used
[INFO] [stderr]   --> src/encryption.rs:64:14
[INFO] [stderr]    |
[INFO] [stderr] 64 | pub async fn decrypt(data: &[u8], shared_secret: &[u8; 32]) -> anyhow::Result<Vec<u8>, anyhow::Error> {
[INFO] [stderr]    |              ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `local_port` and `remote_port` are never read
[INFO] [stderr]  --> src/server.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub struct PortForwarding {
[INFO] [stderr]   |            -------------- fields in this struct
[INFO] [stderr] 6 |     local_port: u16,
[INFO] [stderr]   |     ^^^^^^^^^^
[INFO] [stderr] 7 |     remote_port: u16,
[INFO] [stderr]   |     ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `PortForwarding` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: fields `addr`, `port`, and `ports` are never read
[INFO] [stderr]   --> src/server.rs:12:9
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct Peer {
[INFO] [stderr]    |            ---- fields in this struct
[INFO] [stderr] 12 |     pub addr: String,
[INFO] [stderr]    |         ^^^^
[INFO] [stderr] 13 |     pub port: u16,
[INFO] [stderr]    |         ^^^^
[INFO] [stderr] 14 |     pub ports: Arc<Mutex<Vec<PortForwarding>>>,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Peer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `HfServer` is never constructed
[INFO] [stderr]   --> src/server.rs:18:12
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub struct HfServer {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `listener` are never used
[INFO] [stderr]   --> src/server.rs:23:12
[INFO] [stderr]    |
[INFO] [stderr] 22 | impl HfServer {
[INFO] [stderr]    | ------------- associated items in this implementation
[INFO] [stderr] 23 |     pub fn new() -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 29 |     pub async fn listener(&mut self) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stderr]    |                  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `handle_connection` is never used
[INFO] [stderr]   --> src/server.rs:38:10
[INFO] [stderr]    |
[INFO] [stderr] 38 | async fn handle_connection(server: &mut HfServer, mut socket: tokio::net::TcpStream) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stderr]    |          ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `hafnium` (bin "hf" test) generated 12 warnings (run `cargo fix --bin "hf" -p hafnium --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hf-c965a958939dcfdb)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "c7c04c6aa51ce990de71139d67e48fa087b57584786e545d392f4ceb42b28589", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c7c04c6aa51ce990de71139d67e48fa087b57584786e545d392f4ceb42b28589", kill_on_drop: false }`
[INFO] [stdout] c7c04c6aa51ce990de71139d67e48fa087b57584786e545d392f4ceb42b28589
