[INFO] cloning repository https://github.com/RandoomWalks/kademlia_mvp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RandoomWalks/kademlia_mvp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandoomWalks%2Fkademlia_mvp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandoomWalks%2Fkademlia_mvp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b421f6aeb8b2a8f47ee1dbd23eed05ecd34576ca [INFO] checking RandoomWalks/kademlia_mvp/b421f6aeb8b2a8f47ee1dbd23eed05ecd34576ca against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandoomWalks%2Fkademlia_mvp" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RandoomWalks/kademlia_mvp 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 git repo https://github.com/RandoomWalks/kademlia_mvp [INFO] finished tweaking git repo https://github.com/RandoomWalks/kademlia_mvp [INFO] tweaked toml for git repo https://github.com/RandoomWalks/kademlia_mvp written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RandoomWalks/kademlia_mvp 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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90368f09af859d8c8e53139dc11ef8828346a569b2a10c5b3cb50658a65f2c39 [INFO] running `Command { std: "docker" "start" "-a" "90368f09af859d8c8e53139dc11ef8828346a569b2a10c5b3cb50658a65f2c39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90368f09af859d8c8e53139dc11ef8828346a569b2a10c5b3cb50658a65f2c39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90368f09af859d8c8e53139dc11ef8828346a569b2a10c5b3cb50658a65f2c39", kill_on_drop: false }` [INFO] [stdout] 90368f09af859d8c8e53139dc11ef8828346a569b2a10c5b3cb50658a65f2c39 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 535afc14b22810af66d91ccb2759f7d4e7886573b6d4e914bbbe5afe9b026343 [INFO] running `Command { std: "docker" "start" "-a" "535afc14b22810af66d91ccb2759f7d4e7886573b6d4e914bbbe5afe9b026343", 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] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking tracing-log v0.1.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking tempfile v3.11.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking kademlia_mvp v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/node.rs (6 fixes) [INFO] [stderr] Fixed src/utils.rs (2 fixes) [INFO] [stderr] Fixed src/unit_test.rs (7 fixes) [INFO] [stdout] warning: function `init_logger` is never used [INFO] [stdout] --> src/unit_test.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn init_logger() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/integration_tests.rs from 2021 edition to 2024 [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | debug!("Starting test: test_node_id_distance"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | debug!("id1: {:?}, id2: {:?}, distance: {:?}", id1, id2, distance); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | debug!("Completed test: test_node_id_distance"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | debug!("Starting test: test_node_id_ordering"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | debug!("id1: {:?}, id2: {:?}", id1, id2); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | debug!("Completed test: test_node_id_ordering"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | debug!("Starting test: test_routing_table_update"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | debug!("Generated node_id: {:?}", node_id); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | debug!("Adding node_id: {:?}", node_to_add); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | debug!("Bucket index: {}, Bucket: {:?}", bucket_index, bucket); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | debug!("Completed test: test_routing_table_update"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | debug!("Starting test: test_routing_table_find_closest"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | debug!("Generated node_id: {:?}", node_id); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | debug!("Target node_id: {:?}", target_id); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | debug!("Closest nodes found: {:?}", closest_nodes); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | debug!("Completed test: test_routing_table_find_closest"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | debug!("Starting test: test_kademlia_node_store_and_find_value"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | debug!("Storing key: {:?}, value: {:?}", key, value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | debug!("Find result: {:?}", find_result); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | debug!("Completed test: test_kademlia_node_store_and_find_value"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | debug!("Starting test: test_kademlia_node_ping"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | debug!("Sending ping to address: {:?}", ping_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | debug!("Ping result: {:?}", result); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | debug!("Completed test: test_kademlia_node_ping"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | debug!("Starting test: test_kademlia_node_put_and_get"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | debug!("Putting key: {:?}, value: {:?}", key, value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | debug!("Stored value retrieved: {:?}", stored_value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | debug!("Completed test: test_kademlia_node_put_and_get"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | debug!("Starting test: test_kademlia_node_handle_message_ping"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | debug!("Generated sender NodeId: {:?}", sender); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | debug!("Handling Ping message from source: {:?}", src); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | debug!("Bucket index: {}, Bucket: {:?}", bucket_index, bucket); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | debug!("Completed test: test_kademlia_node_handle_message_ping"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | debug!("Starting test: test_kademlia_node_handle_message_store"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | debug!("Handling Store message from source: {:?}, key: {:?}, value: {:?}", src, key, value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | debug!("Stored value in node: {:?}", stored_value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | debug!("Completed test: test_kademlia_node_handle_message_store"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | debug!("Starting test: test_kademlia_node_find_node"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | debug!("Target NodeId: {:?}", target_id); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | debug!("Closest nodes found: {:?}", closest_nodes); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | debug!("Completed test: test_kademlia_node_find_node"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | debug!("Starting test: test_kademlia_node_refresh_buckets"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | debug!("Node address: {:?}", actual_addr); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | debug!("Refresh buckets result: {:?}", result); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/unit_test.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | debug!("Completed test: test_kademlia_node_refresh_buckets"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 16 + use log::debug; [INFO] [stdout] | [INFO] [stdout] 16 + use tracing::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NodeId` in this scope [INFO] [stdout] --> src/unit_test.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | let id1 = NodeId([0u8; 32]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NodeId` in this scope [INFO] [stdout] --> src/unit_test.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | let id2 = NodeId([255u8; 32]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NodeId` in this scope [INFO] [stdout] --> src/unit_test.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | let id1 = NodeId([1u8; 32]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NodeId` in this scope [INFO] [stdout] --> src/unit_test.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | let id2 = NodeId([2u8; 32]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | let node_id = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RoutingTable` [INFO] [stdout] --> src/unit_test.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | let mut routing_table = RoutingTable::new(node_id); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `RoutingTable` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::routing_table::RoutingTable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | let node_to_add = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | let addr: SocketAddr = "127.0.0.1:8080".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | let node_id = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RoutingTable` [INFO] [stdout] --> src/unit_test.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | let mut routing_table = RoutingTable::new(node_id); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `RoutingTable` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::routing_table::RoutingTable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | let target_id = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | let addr1: SocketAddr = "127.0.0.1:8081".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 93 | let addr2: SocketAddr = "127.0.0.1:8082".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | routing_table.update(NodeId::new(), addr1); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:96:30 [INFO] [stdout] | [INFO] [stdout] 96 | routing_table.update(NodeId::new(), addr2); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FindValueResult` [INFO] [stdout] --> src/unit_test.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | if let FindValueResult::Value(stored_value) = find_result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FindValueResult` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 16 + use crate::message::FindValueResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 146 | let ping_addr: SocketAddr = "127.0.0.1:8081".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 161 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 186 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:187:29 [INFO] [stdout] | [INFO] [stdout] 187 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | let sender = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:195:18 [INFO] [stdout] | [INFO] [stdout] 195 | let src: SocketAddr = "127.0.0.1:8081".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Message` [INFO] [stdout] --> src/unit_test.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | node.handle_message(Message::Ping { sender }, src) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Message` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 16 + use crate::message::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:223:19 [INFO] [stdout] | [INFO] [stdout] 223 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 224 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | let src: SocketAddr = "127.0.0.1:8081".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Message` [INFO] [stdout] --> src/unit_test.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | Message::Store { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Message` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 16 + use crate::message::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:245:46 [INFO] [stdout] | [INFO] [stdout] 245 | let stored_value = node.storage.get(&KademliaNode::hash_key(&key)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:259:29 [INFO] [stdout] | [INFO] [stdout] 259 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeId` [INFO] [stdout] --> src/unit_test.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | let target_id = NodeId::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `NodeId` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::utils::NodeId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SocketAddr` in this scope [INFO] [stdout] --> src/unit_test.rs:281:19 [INFO] [stdout] | [INFO] [stdout] 281 | let addr: SocketAddr = "127.0.0.1:0".parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 16 + use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use core::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 16 + use tokio::net::unix::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KademliaNode` [INFO] [stdout] --> src/unit_test.rs:282:29 [INFO] [stdout] | [INFO] [stdout] 282 | let (mut node, _) = KademliaNode::new(addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `KademliaNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::node::KademliaNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 89 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kademlia_mvp` (lib test) due to 90 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed tests/integration_tests.rs (5 fixes) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> tests/integration_tests.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | let (node1, _) = KademliaNode::new(addr1).await.unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (6 fixes) [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" "535afc14b22810af66d91ccb2759f7d4e7886573b6d4e914bbbe5afe9b026343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "535afc14b22810af66d91ccb2759f7d4e7886573b6d4e914bbbe5afe9b026343", kill_on_drop: false }` [INFO] [stdout] 535afc14b22810af66d91ccb2759f7d4e7886573b6d4e914bbbe5afe9b026343