[INFO] fetching crate pastry-dht 0.1.7... [INFO] checking pastry-dht-0.1.7 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate pastry-dht 0.1.7 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate pastry-dht 0.1.7 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pastry-dht 0.1.7 [INFO] finished tweaking crates.io crate pastry-dht 0.1.7 [INFO] tweaked toml for crates.io crate pastry-dht 0.1.7 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate pastry-dht 0.1.7 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72f0313058cbe38ea356107485efc4143a300ee72278a5d782009f67f5c56fdb [INFO] running `Command { std: "docker" "start" "-a" "72f0313058cbe38ea356107485efc4143a300ee72278a5d782009f67f5c56fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72f0313058cbe38ea356107485efc4143a300ee72278a5d782009f67f5c56fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f0313058cbe38ea356107485efc4143a300ee72278a5d782009f67f5c56fdb", kill_on_drop: false }` [INFO] [stdout] 72f0313058cbe38ea356107485efc4143a300ee72278a5d782009f67f5c56fdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be4ef0ef8f6485ee72b9a3b098f729cc3fe48787d3e945a553b858ca9d0a3f85 [INFO] running `Command { std: "docker" "start" "-a" "be4ef0ef8f6485ee72b9a3b098f729cc3fe48787d3e945a553b858ca9d0a3f85", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.7 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling prettyplease v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling home v0.5.5 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Checking aho-corasick v1.0.5 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking matchit v0.7.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling tempfile v3.8.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling prost-derive v0.12.1 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling serial_test_derive v2.0.0 [INFO] [stderr] Checking serial_test v2.0.0 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling prost v0.12.1 [INFO] [stderr] Compiling prost-types v0.12.1 [INFO] [stderr] Compiling prost-build v0.12.1 [INFO] [stderr] Compiling tonic-build v0.10.2 [INFO] [stderr] Compiling pastry-dht v0.1.7 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.10.2 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/internal/pastry/leaf.rs (1 fix) [INFO] [stderr] Fixed src/internal/hring/hasher.rs (1 fix) [INFO] [stderr] Fixed src/internal/dht/tests/query.rs (4 fixes) [INFO] [stderr] Fixed src/internal/dht/tests/join.rs (3 fixes) [INFO] [stderr] Fixed src/internal/dht/tests/setup.rs (3 fixes) [INFO] [stderr] Fixed src/internal/dht/tests/fail.rs (4 fixes) [INFO] [stderr] Fixed src/internal/util.rs (1 fix) [INFO] [stderr] Fixed src/internal/dht/service/fail.rs (1 fix) [INFO] [stderr] Fixed src/internal/hring/ring.rs (1 fix) [INFO] [stdout] warning: use of deprecated associated function `internal::dht::service::grpc::proto::QueryType::from_i32`: Use the TryFrom implementation instead [INFO] [stdout] --> src/internal/dht/service/query.rs:40:50 [INFO] [stdout] | [INFO] [stdout] 40 | ... match QueryType::from_i32(req.query_type).unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_info`, `from_id`, `serve`, and `update_state` are never used [INFO] [stdout] --> src/internal/dht/node.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_info(&self) -> NodeInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn from_id( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub async fn serve(&self) -> Result>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub async fn update_state(self, leaf: Vec, table: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `list` is never used [INFO] [stdout] --> src/internal/dht/store.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Store { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn list(&self) -> Vec<(u64, &Vec)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_random_key` is never used [INFO] [stdout] --> src/internal/dht/tests/query.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_random_key(i: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PORT` is never used [INFO] [stdout] --> src/internal/dht/tests/setup.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const INITIAL_PORT: i32 = 30000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/internal/dht/tests/setup.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl NetworkConfiguration { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new(num_nodes: u32, pastry_conf: Config) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/internal/dht/tests/setup.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct NetworkNode { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 44 | pub info: NodeInfo, [INFO] [stdout] 45 | pub handle: JoinHandle>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ids`, `num_deployed`, and `available_port` are never read [INFO] [stdout] --> src/internal/dht/tests/setup.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Network { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | pub ids: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 52 | pub num_deployed: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 53 | pub available_port: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/internal/dht/tests/setup.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new(conf: NetworkConfiguration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn with_ids(mut self, ids: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn with_logging(self, filter: log::LevelFilter) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub async fn init(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn init_by_join(mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn init_by_state(mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub async fn add_node(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn add_node_with_id(&mut self, id: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | async fn setup_node(&self, node: Node) -> Result<(NodeInfo, JoinHandle>)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | pub async fn get_random_node_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn shutdown(self) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_ids` is never used [INFO] [stdout] --> src/internal/dht/tests/util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn format_ids(vec: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_responsible` is never used [INFO] [stdout] --> src/internal/dht/tests/util.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn find_responsible(nodes: &Vec, key: u64) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `hash_once_to_vec` is never used [INFO] [stdout] --> src/internal/hring/hasher.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Sha256Hasher { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn hash_once_to_vec(bytes: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_max_size`, `get_filtered_entries`, `get_first_counter_clockwise_neighbor`, `get_first_clockwise_neighbor`, and `get_furthest_clockwise_neighbor` are never used [INFO] [stdout] --> src/internal/pastry/leaf.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl LeafSet { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_max_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_filtered_entries(&self, filter: F) -> Vec<&T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_first_counter_clockwise_neighbor(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_first_clockwise_neighbor(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn get_furthest_clockwise_neighbor(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leafset_from_vec` is never used [INFO] [stdout] --> src/internal/pastry/leaf.rs:433:8 [INFO] [stdout] | [INFO] [stdout] 433 | fn leafset_from_vec(k: usize, initial: u64, v: Vec) -> LeafSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_to_vec` is never used [INFO] [stdout] --> src/internal/pastry/leaf.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn set_to_vec(leafset: &LeafSet) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_key` and `get_value` are never used [INFO] [stdout] --> src/internal/pastry/shared.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl KeyValuePair { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn get_key(&self) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_value(&self) -> &U { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/internal/pastry/table.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | fn setup() -> RoutingTable { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_distance_between_unsigned` is never used [INFO] [stdout] --> src/internal/util.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_distance_between_unsigned(a: T, b: T) -> T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_neighbors` is never used [INFO] [stdout] --> src/internal/util.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_neighbors(vector: &[T], index: usize, k: usize) -> Vec<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/internal/dht/node.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | while let Some(entry) = stream.message().await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/internal/dht/node.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/internal/dht/service/fail.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | while let Some(row) = data.table.get_row(matched as usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/internal/dht/service/fail.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/store/main.rs from 2021 edition to 2024 [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/internal/dht/tests/query.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | info!("Complexity: {}", complexity); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/internal/dht/tests/query.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | info!("Mean number of hops: {}", mean_hops); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | info!("TEST: Removing Node #{:016X}: ", node.info.id); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Network` [INFO] [stdout] --> src/internal/dht/tests/fail.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | let mut network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Network` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::tests::setup::Network; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NetworkConfiguration` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | let mut network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::tests::setup::NetworkConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/internal/dht/tests/fail.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | pastry_conf: Config::new(8), [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_neighbors` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | get_neighbors(&network.nodes, random_index, network.conf.pastry_conf.k) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::util::get_neighbors; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NodeInfo` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | .collect::>(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::node::NodeInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/internal/dht/tests/fail.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | let mut client = Node::connect_with_retry(&neighbor.pub_addr).await?; [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::node::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryRequest` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | .query(QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::service::grpc::QueryRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QueryType` [INFO] [stdout] --> src/internal/dht/tests/fail.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | query_type: QueryType::Get.into(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `QueryType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::service::grpc::QueryType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_neighbors` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | get_neighbors(&network.nodes, neighbor_index, network.conf.pastry_conf.k) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 63 | prev_neighbors(&network.nodes, neighbor_index, network.conf.pastry_conf.k) [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::util::get_neighbors; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `format_ids` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | format_ids(leaf_set), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::tests::util::format_ids; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `format_ids` in this scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | format_ids(neighbors) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::internal::dht::tests::util::format_ids; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Network` [INFO] [stdout] --> src/internal/dht/tests/join.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | let network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Network` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::setup::Network; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NetworkConfiguration` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | let network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::setup::NetworkConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/internal/dht/tests/join.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pastry_conf: Config::new(k), [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/internal/dht/tests/join.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | let mut client = Node::connect_with_retry(&node.info.pub_addr).await?; [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::node::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Request` [INFO] [stdout] --> src/internal/dht/tests/join.rs:18:51 [INFO] [stdout] | [INFO] [stdout] 18 | let state = client.get_node_state(Request::new(())).await?.into_inner(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Request` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_neighbors` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 26 | let mut neighbors = get_neighbors(&network.nodes, idx, network.conf.pastry_conf.k) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::util::get_neighbors; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `format_ids` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | format_ids(leaf_set), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::util::format_ids; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `format_ids` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | format_ids(neighbors) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::util::format_ids; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Network` [INFO] [stdout] --> src/internal/dht/tests/join.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | let mut network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Network` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::setup::Network; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NetworkConfiguration` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let mut network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::setup::NetworkConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/internal/dht/tests/join.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | pastry_conf: Config::new(4), [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryRequest` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | .query(QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::service::grpc::QueryRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QueryType` [INFO] [stdout] --> src/internal/dht/tests/join.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | query_type: QueryType::Set.into(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `QueryType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::service::grpc::QueryType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryRequest` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | .query(QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::service::grpc::QueryRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QueryType` [INFO] [stdout] --> src/internal/dht/tests/join.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | query_type: QueryType::Get.into(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `QueryType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::service::grpc::QueryType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_responsible` in this scope [INFO] [stdout] --> src/internal/dht/tests/join.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | let idx = find_responsible(&network.nodes, *key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::internal::dht::tests::util::find_responsible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Network` [INFO] [stdout] --> src/internal/dht/tests/query.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Network` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::internal::dht::tests::setup::Network; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NetworkConfiguration` in this scope [INFO] [stdout] --> src/internal/dht/tests/query.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | let network = Network::new(NetworkConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::internal::dht::tests::setup::NetworkConfiguration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/internal/dht/tests/query.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pastry_conf: Config::new(8), [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Request` [INFO] [stdout] --> src/internal/dht/tests/query.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | .query(Request::new(QueryRequest { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Request` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] 1 + use tonic::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryRequest` in this scope [INFO] [stdout] --> src/internal/dht/tests/query.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | .query(Request::new(QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::internal::dht::service::grpc::QueryRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QueryType` [INFO] [stdout] --> src/internal/dht/tests/query.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | query_type: QueryType::Get.into(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `QueryType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::internal::dht::service::grpc::QueryType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_responsible` in this scope [INFO] [stdout] --> src/internal/dht/tests/query.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | let idx = find_responsible(&network.nodes, key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::internal::dht::tests::util::find_responsible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(get_nth_digit_in_u64_hex(0xFEDCBA9876543210, 0)?, 0xF); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | assert_eq!(get_nth_digit_in_u64_hex(0xFEDCBA9876543210, 9)?, 0x6); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 96 | assert_eq!(get_nth_digit_in_u64_hex(0xFEDCBA9876543210, 15)?, 0x0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:97:20 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(get_nth_digit_in_u64_hex(0xEDCBA9876543210, 0)?, 0x0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(get_nth_digit_in_u64_hex(0xDCBA9876543210, 0)?, 0x0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(get_nth_digit_in_u64_hex(0xDCBA9876543210, 1)?, 0x0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nth_digit_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(get_nth_digit_in_u64_hex(0xDCBA9876543210, 2)?, 0xD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_nth_digit_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_first_digits_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | assert_eq!(get_first_digits_in_u64_hex(0xFEDCBA9876543210, 1)?, 0xF); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_first_digits_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_first_digits_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(get_first_digits_in_u64_hex(0xFEDCBA9876543210, 2)?, 0xFE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_first_digits_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_first_digits_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(get_first_digits_in_u64_hex(0xFEDCBA9876543210, 3)?, 0xFED); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_first_digits_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_first_digits_in_u64_hex` in this scope [INFO] [stdout] --> src/internal/util.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | get_first_digits_in_u64_hex(0xFEDCBA9876543210, 16)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 92 + use crate::internal::util::get_first_digits_in_u64_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `internal::dht::service::grpc::proto::QueryType::from_i32`: Use the TryFrom implementation instead [INFO] [stdout] --> src/internal/dht/service/query.rs:40:50 [INFO] [stdout] | [INFO] [stdout] 40 | ... match QueryType::from_i32(req.query_type).unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/dht/tests/fail.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | async fn test_fail() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 5 | async fn test_fail() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/dht/tests/join.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | async fn test_join() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 6 | async fn test_join() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/dht/tests/join.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | async fn test_transfer_keys() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 50 | async fn test_transfer_keys() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/hring/hasher.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | fn test_hash() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 41 | fn test_hash() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/hring/ring.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 44 | fn test_counter_clockwise_distance() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 44 | fn test_counter_clockwise_distance() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/hring/ring.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | fn test_distance() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 61 | fn test_distance() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/hring/ring.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | fn test_is_in_range() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 78 | fn test_is_in_range() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/util.rs:93:43 [INFO] [stdout] | [INFO] [stdout] 93 | fn test_get_nth_digit_in_u64_hex() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 93 | fn test_get_nth_digit_in_u64_hex() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/internal/util.rs:106:48 [INFO] [stdout] | [INFO] [stdout] 106 | fn test_get_first_n_digits_in_u64_hex() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 106 | fn test_get_first_n_digits_in_u64_hex() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_range` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/internal/dht/tests/fail.rs:14:47 [INFO] [stdout] | [INFO] [stdout] 14 | let random_index = rand::thread_rng().gen_range(0..network.nodes.len()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/rand-0.8.5/src/rng.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- the method is available for `ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `gen_ratio` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/rand-0.8.5/src/rng.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | fn gen_ratio(&mut self, numerator: u32, denominator: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Rng` which provides `gen_range` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use rand::Rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 58 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pastry-dht` (lib test) due to 59 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "be4ef0ef8f6485ee72b9a3b098f729cc3fe48787d3e945a553b858ca9d0a3f85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be4ef0ef8f6485ee72b9a3b098f729cc3fe48787d3e945a553b858ca9d0a3f85", kill_on_drop: false }` [INFO] [stdout] be4ef0ef8f6485ee72b9a3b098f729cc3fe48787d3e945a553b858ca9d0a3f85