[INFO] fetching crate rastdp 0.4.2... [INFO] testing rastdp-0.4.2 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate rastdp 0.4.2 into /workspace/builds/worker-7-tc1/source [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate rastdp 0.4.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rastdp 0.4.2 [INFO] tweaked toml for crates.io crate rastdp 0.4.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rastdp 0.4.2 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 91 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-lazy v0.1.2 [INFO] [stderr] Downloaded moka v0.12.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36b24bb6ea16f60a8087e14e7aa12876cf95d039c634c8b1de9c8c08de2e8fe4 [INFO] running `Command { std: "docker" "start" "-a" "36b24bb6ea16f60a8087e14e7aa12876cf95d039c634c8b1de9c8c08de2e8fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36b24bb6ea16f60a8087e14e7aa12876cf95d039c634c8b1de9c8c08de2e8fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36b24bb6ea16f60a8087e14e7aa12876cf95d039c634c8b1de9c8c08de2e8fe4", kill_on_drop: false }` [INFO] [stdout] 36b24bb6ea16f60a8087e14e7aa12876cf95d039c634c8b1de9c8c08de2e8fe4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a1302cd8b7c0d62b1e710c1a2740e0b8f20632ca19e27651df76151c186cee2 [INFO] running `Command { std: "docker" "start" "-a" "0a1302cd8b7c0d62b1e710c1a2740e0b8f20632ca19e27651df76151c186cee2", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling moka v0.12.11 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rastdp v0.4.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `message_status` and `compressed` are never read [INFO] [stdout] --> src/receiver/helpers.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct IncomingPacketInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub(crate) message_status: MessageStatus, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub(crate) compressed: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.59s [INFO] running `Command { std: "docker" "inspect" "0a1302cd8b7c0d62b1e710c1a2740e0b8f20632ca19e27651df76151c186cee2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a1302cd8b7c0d62b1e710c1a2740e0b8f20632ca19e27651df76151c186cee2", kill_on_drop: false }` [INFO] [stdout] 0a1302cd8b7c0d62b1e710c1a2740e0b8f20632ca19e27651df76151c186cee2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a57b42ebb472e67968288ac67171358dd05539ac5cec0fab3840ada067bbb80 [INFO] running `Command { std: "docker" "start" "-a" "2a57b42ebb472e67968288ac67171358dd05539ac5cec0fab3840ada067bbb80", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling jiff v0.2.16 [INFO] [stderr] Compiling async-lazy v0.1.2 [INFO] [stderr] Compiling rastdp v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stdout] warning: fields `message_status` and `compressed` are never read [INFO] [stdout] --> src/receiver/helpers.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct IncomingPacketInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub(crate) message_status: MessageStatus, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub(crate) compressed: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stdout] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stdout] --> tests/default.rs:6:70 [INFO] [stdout] | [INFO] [stdout] 6 | static RECEIVER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stdout] --> tests/default.rs:11:66 [INFO] [stdout] | [INFO] [stdout] 11 | static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message_status` and `compressed` are never read [INFO] [stdout] --> src/receiver/helpers.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct IncomingPacketInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub(crate) message_status: MessageStatus, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub(crate) compressed: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.95s [INFO] running `Command { std: "docker" "inspect" "2a57b42ebb472e67968288ac67171358dd05539ac5cec0fab3840ada067bbb80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a57b42ebb472e67968288ac67171358dd05539ac5cec0fab3840ada067bbb80", kill_on_drop: false }` [INFO] [stdout] 2a57b42ebb472e67968288ac67171358dd05539ac5cec0fab3840ada067bbb80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ee2f61e782ce0127df5745a754505c1e4530988e37a6dc161c8fbbf588f2b616 [INFO] running `Command { std: "docker" "start" "-a" "ee2f61e782ce0127df5745a754505c1e4530988e37a6dc161c8fbbf588f2b616", kill_on_drop: false }` [INFO] [stderr] warning: fields `message_status` and `compressed` are never read [INFO] [stderr] --> src/receiver/helpers.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 5 | pub(crate) struct IncomingPacketInfo { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | pub(crate) message_status: MessageStatus, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 10 | pub(crate) compressed: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `rastdp` (lib) generated 1 warning [INFO] [stderr] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stderr] --> tests/default.rs:6:70 [INFO] [stderr] | [INFO] [stderr] 6 | static RECEIVER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stderr] --> tests/default.rs:11:66 [INFO] [stderr] | [INFO] [stderr] 11 | static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rastdp` (test "default") generated 2 warnings [INFO] [stderr] warning: `rastdp` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rastdp-c2dd3de49cebb7de) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/default.rs (/opt/rustwide/target/debug/deps/default-955bfbdbeb32f48c) [INFO] [stderr] Doc-tests rastdp [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - receiver (line 1) ... FAILED [INFO] [stdout] test src/lib.rs - sender (line 40) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - receiver (line 1) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | static RECEIVER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stdout] --> src/lib.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | static RECEIVER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::mpmc::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::mpsc::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] = and 6 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Receiver` [INFO] [stdout] --> src/lib.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | let receiver = Receiver::new("127.0.0.1:8080").await.unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Receiver` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::mpmc::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::mpsc::Receiver; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] = and 6 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Arc::new(receiver) [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io` [INFO] [stdout] --> src/lib.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `io` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml` [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 8 - async fn main() -> io::Result<()> { [INFO] [stdout] 8 + async fn main() -> i8::Result<()> { [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 2 + use std::io; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stdout] --> src/lib.rs:2:70 [INFO] [stdout] | [INFO] [stdout] 2 | static RECEIVER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | let receiver = Receiver::new("127.0.0.1:8080").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let receiver = RECEIVER.force().await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | let receiver_clone = receiver.clone(); [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `receiver` an explicit type [INFO] [stdout] | [INFO] [stdout] 11 | let receiver: /* Type */ = RECEIVER.force().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sender (line 40) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/lib.rs:41:37 [INFO] [stdout] | [INFO] [stdout] 41 | static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/marker.rs:94:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Send` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 41 - static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] 41 + static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::mpmc::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use rastdp::sender::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use tokio::net::unix::pipe::Sender; [INFO] [stdout] | [INFO] [stdout] = and 4 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sender` [INFO] [stdout] --> src/lib.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let sender = Sender::new("127.0.0.1:8080".to_string()).await.unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sender` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 42 - let sender = Sender::new("127.0.0.1:8080".to_string()).await.unwrap(); [INFO] [stdout] 42 + let sender = Send::new("127.0.0.1:8080".to_string()).await.unwrap(); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::mpmc::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use rastdp::sender::Sender; [INFO] [stdout] | [INFO] [stdout] 41 + use tokio::net::unix::pipe::Sender; [INFO] [stdout] | [INFO] [stdout] = and 4 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | Arc::new(sender) [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io` [INFO] [stdout] --> src/lib.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `io` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml` [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 - async fn main() -> io::Result<()> { [INFO] [stdout] 47 + async fn main() -> i8::Result<()> { [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 41 + use std::io; [INFO] [stdout] | [INFO] [stdout] 41 + use tokio::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `async_lazy::Lazy::::const_new`: use `new` instead [INFO] [stdout] --> src/lib.rs:41:66 [INFO] [stdout] | [INFO] [stdout] 41 | static SENDER: async_lazy::Lazy> = async_lazy::Lazy::const_new(|| Box::pin(async { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | let sender = Sender::new("127.0.0.1:8080".to_string()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let sender = SENDER.force().await; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | let sender_clone = sender.clone(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `sender` an explicit type [INFO] [stdout] | [INFO] [stdout] 48 | let sender: /* Type */ = SENDER.force().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - receiver (line 1) [INFO] [stdout] src/lib.rs - sender (line 40) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ee2f61e782ce0127df5745a754505c1e4530988e37a6dc161c8fbbf588f2b616", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee2f61e782ce0127df5745a754505c1e4530988e37a6dc161c8fbbf588f2b616", kill_on_drop: false }` [INFO] [stdout] ee2f61e782ce0127df5745a754505c1e4530988e37a6dc161c8fbbf588f2b616