[INFO] fetching crate hyrulenode 0.2.0... [INFO] testing hyrulenode-0.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate hyrulenode 0.2.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate hyrulenode 0.2.0 [INFO] finished tweaking crates.io crate hyrulenode 0.2.0 [INFO] tweaked toml for crates.io crate hyrulenode 0.2.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hyrulenode 0.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hyrulenode 0.2.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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ec8741b68f0b3f9d3befb089d5cfbca82168871198ff6879933e4dbbf994039 [INFO] running `Command { std: "docker" "start" "-a" "2ec8741b68f0b3f9d3befb089d5cfbca82168871198ff6879933e4dbbf994039", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ec8741b68f0b3f9d3befb089d5cfbca82168871198ff6879933e4dbbf994039", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ec8741b68f0b3f9d3befb089d5cfbca82168871198ff6879933e4dbbf994039", kill_on_drop: false }` [INFO] [stdout] 2ec8741b68f0b3f9d3befb089d5cfbca82168871198ff6879933e4dbbf994039 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8de21b6e6332e6238bdf92b2288e324c1c16b8ed8905db50ad663c78ef1cc618 [INFO] running `Command { std: "docker" "start" "-a" "8de21b6e6332e6238bdf92b2288e324c1c16b8ed8905db50ad663c78ef1cc618", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling cc v1.2.47 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling zerocopy v0.8.30 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.7 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling iri-string v0.7.9 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tower-http v0.6.7 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.18 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling reqwest v0.12.24 [INFO] [stderr] Compiling hyrulenode v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/dht.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [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: `tokio::sync::RwLock` [INFO] [stdout] --> src/dht.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/main.rs:566:5 [INFO] [stdout] | [INFO] [stdout] 566 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_anchor` [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | is_anchor: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_anchor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enable_dht` [INFO] [stdout] --> src/main.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | enable_dht: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enable_dht` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate`, `is_tor_enabled`, `get_proxy_addr`, and `is_using_onion` are never used [INFO] [stdout] --> src/config.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl NodeConfig { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_tor_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn get_proxy_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn is_using_onion(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_repo` is never used [INFO] [stdout] --> src/storage.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl GitStorage { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn delete_repo(&self, repo_hash: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_id` is never read [INFO] [stdout] --> src/registration.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct RegisterNodeResponse { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 16 | node_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterNodeResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_peers` is never used [INFO] [stdout] --> src/registration.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub async fn discover_peers(config: &NodeConfig) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_anchor` and `last_seen` are never read [INFO] [stdout] --> src/registration.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PeerNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 82 | pub is_anchor: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 83 | pub last_seen: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerNode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign_data` is never used [INFO] [stdout] --> src/crypto.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn sign_data(private_key_hex: &str, data: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_signature` is never used [INFO] [stdout] --> src/crypto.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn verify_signature(public_key_hex: &str, data: &[u8], signature: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_data` is never used [INFO] [stdout] --> src/crypto.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn hash_data(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_object_hash` is never used [INFO] [stdout] --> src/crypto.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn verify_object_hash(data: &[u8], expected_hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_id` is never read [INFO] [stdout] --> src/dht.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DHT { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 11 | node_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unannounce_content` is never used [INFO] [stdout] --> src/dht.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DHT { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn unannounce_content(&mut self, repo_hash: &str, node_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build_tor_client` is never used [INFO] [stdout] --> src/proxy.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ProxyConfig { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn build_tor_client(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s [INFO] running `Command { std: "docker" "inspect" "8de21b6e6332e6238bdf92b2288e324c1c16b8ed8905db50ad663c78ef1cc618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8de21b6e6332e6238bdf92b2288e324c1c16b8ed8905db50ad663c78ef1cc618", kill_on_drop: false }` [INFO] [stdout] 8de21b6e6332e6238bdf92b2288e324c1c16b8ed8905db50ad663c78ef1cc618 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9b28eda5bd4a71a958c394c01464d39ec7af2d0e5dbdcf6cb5520a39d9579f3 [INFO] running `Command { std: "docker" "start" "-a" "d9b28eda5bd4a71a958c394c01464d39ec7af2d0e5dbdcf6cb5520a39d9579f3", kill_on_drop: false }` [INFO] [stderr] Compiling hyrulenode v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/dht.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [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: `tokio::sync::RwLock` [INFO] [stdout] --> src/dht.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/main.rs:566:5 [INFO] [stdout] | [INFO] [stdout] 566 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_anchor` [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | is_anchor: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_anchor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enable_dht` [INFO] [stdout] --> src/main.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | enable_dht: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enable_dht` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_proxy_addr` is never used [INFO] [stdout] --> src/config.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl NodeConfig { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn get_proxy_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `delete_repo` is never used [INFO] [stdout] --> src/storage.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl GitStorage { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn delete_repo(&self, repo_hash: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_id` is never read [INFO] [stdout] --> src/registration.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct RegisterNodeResponse { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 16 | node_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterNodeResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_peers` is never used [INFO] [stdout] --> src/registration.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub async fn discover_peers(config: &NodeConfig) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_anchor` and `last_seen` are never read [INFO] [stdout] --> src/registration.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PeerNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 82 | pub is_anchor: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 83 | pub last_seen: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerNode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign_data` is never used [INFO] [stdout] --> src/crypto.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn sign_data(private_key_hex: &str, data: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_signature` is never used [INFO] [stdout] --> src/crypto.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn verify_signature(public_key_hex: &str, data: &[u8], signature: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_data` is never used [INFO] [stdout] --> src/crypto.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn hash_data(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_object_hash` is never used [INFO] [stdout] --> src/crypto.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn verify_object_hash(data: &[u8], expected_hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_id` is never read [INFO] [stdout] --> src/dht.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DHT { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 11 | node_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unannounce_content` is never used [INFO] [stdout] --> src/dht.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DHT { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn unannounce_content(&mut self, repo_hash: &str, node_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build_tor_client` is never used [INFO] [stdout] --> src/proxy.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ProxyConfig { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn build_tor_client(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.74s [INFO] running `Command { std: "docker" "inspect" "d9b28eda5bd4a71a958c394c01464d39ec7af2d0e5dbdcf6cb5520a39d9579f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9b28eda5bd4a71a958c394c01464d39ec7af2d0e5dbdcf6cb5520a39d9579f3", kill_on_drop: false }` [INFO] [stdout] d9b28eda5bd4a71a958c394c01464d39ec7af2d0e5dbdcf6cb5520a39d9579f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b043bcf68dfe21b2637fe8c56bea3ac47879d8a985c1899ba56ee47291905bc6 [INFO] running `Command { std: "docker" "start" "-a" "b043bcf68dfe21b2637fe8c56bea3ac47879d8a985c1899ba56ee47291905bc6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/dht.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::RwLock` [INFO] [stderr] --> src/dht.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::sync::RwLock; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::Colorize` [INFO] [stderr] --> src/main.rs:566:5 [INFO] [stderr] | [INFO] [stderr] 566 | use colored::Colorize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_anchor` [INFO] [stderr] --> src/main.rs:161:5 [INFO] [stderr] | [INFO] [stderr] 161 | is_anchor: bool, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_anchor` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `enable_dht` [INFO] [stderr] --> src/main.rs:162:5 [INFO] [stderr] | [INFO] [stderr] 162 | enable_dht: bool, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enable_dht` [INFO] [stderr] [INFO] [stderr] warning: method `get_proxy_addr` is never used [INFO] [stderr] --> src/config.rs:290:12 [INFO] [stderr] | [INFO] [stderr] 60 | impl NodeConfig { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 290 | pub fn get_proxy_addr(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `delete_repo` is never used [INFO] [stderr] --> src/storage.rs:208:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl GitStorage { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 208 | pub fn delete_repo(&self, repo_hash: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `node_id` is never read [INFO] [stderr] --> src/registration.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 15 | struct RegisterNodeResponse { [INFO] [stderr] | -------------------- field in this struct [INFO] [stderr] 16 | node_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RegisterNodeResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `discover_peers` is never used [INFO] [stderr] --> src/registration.rs:57:14 [INFO] [stderr] | [INFO] [stderr] 57 | pub async fn discover_peers(config: &NodeConfig) -> anyhow::Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `is_anchor` and `last_seen` are never read [INFO] [stderr] --> src/registration.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 78 | pub struct PeerNode { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 82 | pub is_anchor: i64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 83 | pub last_seen: String, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PeerNode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `sign_data` is never used [INFO] [stderr] --> src/crypto.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn sign_data(private_key_hex: &str, data: &[u8]) -> Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verify_signature` is never used [INFO] [stderr] --> src/crypto.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn verify_signature(public_key_hex: &str, data: &[u8], signature: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `hash_data` is never used [INFO] [stderr] --> src/crypto.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn hash_data(data: &[u8]) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verify_object_hash` is never used [INFO] [stderr] --> src/crypto.rs:33:8 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn verify_object_hash(data: &[u8], expected_hash: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `node_id` is never read [INFO] [stderr] --> src/dht.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct DHT { [INFO] [stderr] | --- field in this struct [INFO] [stderr] 11 | node_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `unannounce_content` is never used [INFO] [stderr] --> src/dht.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl DHT { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn unannounce_content(&mut self, repo_hash: &str, node_id: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `build_tor_client` is never used [INFO] [stderr] --> src/proxy.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl ProxyConfig { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn build_tor_client(&self) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `hyrulenode` (bin "hyrule-node" test) generated 17 warnings (run `cargo fix --bin "hyrule-node" -p hyrulenode --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hyrule_node-12cb425f0adcbd9f) [INFO] [stdout] running 4 tests [INFO] [stdout] test config::tests::test_default_hyrule_server ... ok [INFO] [stdout] test config::tests::test_generate_config ... ok [INFO] [stdout] test config::tests::test_is_tor_enabled ... ok [INFO] [stdout] test config::tests::test_validate_config ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b043bcf68dfe21b2637fe8c56bea3ac47879d8a985c1899ba56ee47291905bc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b043bcf68dfe21b2637fe8c56bea3ac47879d8a985c1899ba56ee47291905bc6", kill_on_drop: false }` [INFO] [stdout] b043bcf68dfe21b2637fe8c56bea3ac47879d8a985c1899ba56ee47291905bc6