[INFO] fetching crate string_telephone 0.0.3... [INFO] checking string_telephone-0.0.3 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate string_telephone 0.0.3 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate string_telephone 0.0.3 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate string_telephone 0.0.3 [INFO] finished tweaking crates.io crate string_telephone 0.0.3 [INFO] tweaked toml for crates.io crate string_telephone 0.0.3 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] [stderr] Adding time v0.1.45 (available: v0.3.36) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 483786e5cf69dea6fde8424fdce4027ce4eea128e1f5a7cc54d2c383fa869d59 [INFO] running `Command { std: "docker" "start" "-a" "483786e5cf69dea6fde8424fdce4027ce4eea128e1f5a7cc54d2c383fa869d59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "483786e5cf69dea6fde8424fdce4027ce4eea128e1f5a7cc54d2c383fa869d59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "483786e5cf69dea6fde8424fdce4027ce4eea128e1f5a7cc54d2c383fa869d59", kill_on_drop: false }` [INFO] [stdout] 483786e5cf69dea6fde8424fdce4027ce4eea128e1f5a7cc54d2c383fa869d59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6500882fc9fa3bd3595f31808ffcb2d97d7568d540bfa7187f8811fd4beb6eec [INFO] running `Command { std: "docker" "start" "-a" "6500882fc9fa3bd3595f31808ffcb2d97d7568d540bfa7187f8811fd4beb6eec", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking string_telephone v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/packet.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{IoResult, IoError, OtherIoError}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/packet.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{IoResult, IoError, OtherIoError}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/packet.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::BufReader; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::FromPrimitive` [INFO] [stdout] --> src/packet.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::FromPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `FromPrimitive` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/client.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/client.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::net::ip::SocketAddr; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/shared.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/client.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use std::old_io::{IoResult, IoError, OtherIoError, TimedOut}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/client.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use std::old_io::Timer; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::mpsc::Select` [INFO] [stdout] --> src/client.rs:5:64 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel, Select}; [INFO] [stdout] | ^^^^^^ no `Select` in `sync::mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/server.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/server.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::net::ip::{SocketAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/client.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/server.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use std::old_io::{IoResult, TimedOut}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::mpsc::Select` [INFO] [stdout] --> src/server.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel, Select}; [INFO] [stdout] | ^^^^^^ no `Select` in `sync::mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/packet.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(FromPrimitive, Clone, Show, PartialEq, Copy)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/packet.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::BufReader; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/client.rs:307:3 [INFO] [stdout] | [INFO] [stdout] 307 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::FromPrimitive` [INFO] [stdout] --> src/packet.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::FromPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `FromPrimitive` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/client.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/client.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::net::ip::SocketAddr; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/shared.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/client.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use std::old_io::{IoResult, IoError, OtherIoError, TimedOut}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/server.rs:283:3 [INFO] [stdout] | [INFO] [stdout] 283 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/client.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use std::old_io::Timer; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::mpsc::Select` [INFO] [stdout] --> src/client.rs:5:64 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel, Select}; [INFO] [stdout] | ^^^^^^ no `Select` in `sync::mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/server.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/server.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::net::ip::{SocketAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/client.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/server.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use std::old_io::{IoResult, TimedOut}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_shared.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::net::ip::SocketAddr; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_shared.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_client.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::old_io::net::ip::{Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_client.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::mpsc::Select` [INFO] [stdout] --> src/server.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::mpsc::{Sender, Receiver, TryRecvError, channel, Select}; [INFO] [stdout] | ^^^^^^ no `Select` in `sync::mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/tests/test_client.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use std::old_io::Timer; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_server.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::old_io::net::ip::{Ipv4Addr, SocketAddr}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/tests/test_client.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stdout] --> src/tests/test_server.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use std::old_io::net::udp::UdpSocket; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/tests/test_server.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/tests/test_server.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | use std::old_io::Timer; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | let protocol_id = try!(r.read_be_u32()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let sequence_id = try!(r.read_be_u16()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 82 | let packet_type = try!(r.read_byte()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | let content = try!(r.read_to_end()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_be_u32(self.protocol_id)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | try!(w.write_be_u16(self.sequence_id)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write_u8(self.packet_type as u8)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write(content.as_slice())) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `unsafe_destructor` [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(unsafe_destructor)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/packet.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(FromPrimitive, Clone, Show, PartialEq, Copy)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/client.rs:307:3 [INFO] [stdout] | [INFO] [stdout] 307 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/server.rs:283:3 [INFO] [stdout] | [INFO] [stdout] 283 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | let protocol_id = try!(r.read_be_u32()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let sequence_id = try!(r.read_be_u16()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 82 | let packet_type = try!(r.read_byte()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | let content = try!(r.read_to_end()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_be_u32(self.protocol_id)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | try!(w.write_be_u16(self.sequence_id)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write_u8(self.packet_type as u8)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/packet.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write(content.as_slice())) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `unsafe_destructor` [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(unsafe_destructor)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_be_u32` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_be_u32(self.protocol_id)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_be_u16` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | try!(w.write_be_u16(self.sequence_id)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_u8` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write_u8(self.packet_type as u8)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `write` with a similar name [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write(self.packet_type as u8)); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:110:24 [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write(content.as_slice())) [INFO] [stdout] | ^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/mod.rs:1576:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] help: there is a method `write_all` with a similar name [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write_all(content.as_slice())) [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for array `[{integer}; 1024]` in the current scope [INFO] [stdout] --> src/client.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | match Packet::deserialize(buf.slice_to(amt)) { [INFO] [stdout] | ^^^^^^^^ method not found in `[{integer}; 1024]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/client.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/client.rs:168:25 [INFO] [stdout] | [INFO] [stdout] 168 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_be_u32` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_be_u32(self.protocol_id)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for array `[{integer}; 1024]` in the current scope [INFO] [stdout] --> src/server.rs:61:47 [INFO] [stdout] | [INFO] [stdout] 61 | match Packet::deserialize(buf.slice_to(amt)) { [INFO] [stdout] | ^^^^^^^^ method not found in `[{integer}; 1024]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_be_u16` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | try!(w.write_be_u16(self.sequence_id)); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/server.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/server.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_u8` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write_u8(self.packet_type as u8)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `write` with a similar name [INFO] [stdout] | [INFO] [stdout] 107 | try!(w.write(self.packet_type as u8)); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> src/packet.rs:110:24 [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write(content.as_slice())) [INFO] [stdout] | ^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/io/mod.rs:1576:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] help: there is a method `write_all` with a similar name [INFO] [stdout] | [INFO] [stdout] 110 | try!(w.write_all(content.as_slice())) [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for array `[{integer}; 1024]` in the current scope [INFO] [stdout] --> src/client.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 40 | match Packet::deserialize(buf.slice_to(amt)) { [INFO] [stdout] | ^^^^^^^^ method not found in `[{integer}; 1024]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/client.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/client.rs:168:25 [INFO] [stdout] | [INFO] [stdout] 168 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for array `[{integer}; 1024]` in the current scope [INFO] [stdout] --> src/server.rs:61:47 [INFO] [stdout] | [INFO] [stdout] 61 | match Packet::deserialize(buf.slice_to(amt)) { [INFO] [stdout] | ^^^^^^^^ method not found in `[{integer}; 1024]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `string_telephone` (lib) due to 29 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/server.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/server.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for array `[{integer}; 256]` in the current scope [INFO] [stdout] --> src/tests/test_shared.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | Ok((amt, src)) => (buf.slice_to(amt).to_vec(), src), [INFO] [stdout] | ^^^^^^^^ method not found in `[{integer}; 256]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 57 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 58 | | socket.set_timeout(Some(1000)); [INFO] [stdout] 59 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 60 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Failed to send accept packet"); [INFO] [stdout] 61 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 79 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 80 | | socket.set_timeout(Some(1000)); [INFO] [stdout] 81 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 82 | | socket.send_to(Packet::accept(122, 0).serialize().unwrap().as_slice(), src).ok().expect("Failed to send accept packet"); [INFO] [stdout] 83 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 101 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 102 | | socket.set_timeout(Some(1000)); [INFO] [stdout] 103 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 104 | | socket.send_to(Packet::reject(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Failed to send reject packet"); [INFO] [stdout] 105 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 127 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 128 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 129 | | let mut attempts = 0u8; [INFO] [stdout] 130 | | while attempts < 3 { [INFO] [stdout] ... | [INFO] [stdout] 135 | | tx.send(attempts); [INFO] [stdout] 136 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 156 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 157 | | socket.set_timeout(Some(1000)); [INFO] [stdout] 158 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 159 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Failed to send accept packet"); [INFO] [stdout] 160 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:164:34 [INFO] [stdout] | [INFO] [stdout] 164 | assert!(match client.poll() { Err(PollFailResult::Empty) => true, _ => false}); [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 178 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 179 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 180 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 181 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 182 | | socket.send_to(Packet::message(121, 1, vec![1]).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 183 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 209 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 210 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 211 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 212 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] ... | [INFO] [stdout] 215 | | socket.send_to(Packet::message(121, 3, vec![3]).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 216 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 249 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 250 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 251 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 252 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] ... | [INFO] [stdout] 255 | | socket.send_to(Packet::message(121, 3, vec![3]).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 256 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:265:30 [INFO] [stdout] | [INFO] [stdout] 265 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 288 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 289 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 290 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 291 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 292 | | socket.send_to(Packet::disconnect(121, 1).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 293 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:300:30 [INFO] [stdout] | [INFO] [stdout] 300 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 318 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 319 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 320 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 321 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 322 | | //Don't send any more data [INFO] [stdout] 323 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:330:30 [INFO] [stdout] | [INFO] [stdout] 330 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 351 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 352 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 353 | | let (msg, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 354 | | //Check what's been sent [INFO] [stdout] ... | [INFO] [stdout] 357 | | tx.send(packet); [INFO] [stdout] 358 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 381 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 382 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 383 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 384 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] ... | [INFO] [stdout] 388 | | tx.send(packet); [INFO] [stdout] 389 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:393:20 [INFO] [stdout] | [INFO] [stdout] 393 | socket.send(&vec![1, 2, 3]); [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 414 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 415 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 416 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 417 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] ... | [INFO] [stdout] 421 | | tx.send(packet); [INFO] [stdout] 422 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_client.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 443 | / with_bound_socket!(target_addr, (socket) { [INFO] [stdout] 444 | | socket.set_timeout(Some(10000)); [INFO] [stdout] 445 | | let (_, src) = test_shared::get_message(&mut socket); [INFO] [stdout] 446 | | socket.send_to(Packet::accept(121, 0).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] ... | [INFO] [stdout] 449 | | socket.send_to(Packet::message(121, 3, vec![3]).serialize().unwrap().as_slice(), src).ok().expect("Couldn't send a message"); [INFO] [stdout] 450 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_client.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 459 | match client.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | assert!(server.poll().is_none()) [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 69 | / with_bound_socket!((socket) { [INFO] [stdout] 70 | | socket.send_to(Packet::connect(122, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 71 | | tx.send(()); [INFO] [stdout] 72 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(server.poll().is_none()); [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 93 | / with_bound_socket!((socket) { [INFO] [stdout] 94 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 95 | | tx.send(()); [INFO] [stdout] 96 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 122 | / with_bound_socket!((socket) { [INFO] [stdout] 123 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 124 | | tx.send(()); [INFO] [stdout] 125 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 126 | / with_bound_socket!((socket) { [INFO] [stdout] 127 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 128 | | tx2.send(()); [INFO] [stdout] 129 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 133 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 162 | / with_bound_socket!((socket) { [INFO] [stdout] 163 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 164 | | tx.send(()); [INFO] [stdout] 165 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 166 | / with_bound_socket!((socket) { [INFO] [stdout] 167 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 168 | | tx2.send(()); [INFO] [stdout] 169 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:173:26 [INFO] [stdout] | [INFO] [stdout] 173 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 203 | / with_bound_socket!((socket) { [INFO] [stdout] 204 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 205 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 206 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 209 | | tx.send(Packet::deserialize(message.as_slice()).ok().expect("Couldn't deserialize a message")); [INFO] [stdout] 210 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:212:39 [INFO] [stdout] | [INFO] [stdout] 212 | let source = match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:237:28 [INFO] [stdout] | [INFO] [stdout] 237 | assert!(server.send_to(&vec![1], &my_addr) == false); [INFO] [stdout] | ^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 255 | / with_bound_socket!((socket) { [INFO] [stdout] 256 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 257 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 258 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 261 | | tx.send(Packet::deserialize(message.as_slice()).ok().expect("Couldn't deserialize a message")); [INFO] [stdout] 262 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 263 | / with_bound_socket!((socket) { [INFO] [stdout] 264 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 265 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 266 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 269 | | tx2.send(Packet::deserialize(message.as_slice()).ok().expect("Couldn't deserialize a message")); [INFO] [stdout] 270 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | let source = match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 304 | / with_bound_socket!((socket) { [INFO] [stdout] 305 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 306 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 307 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 310 | | tx.send(Packet::deserialize(message.as_slice()).ok().expect("Couldn't deserialize a message")); [INFO] [stdout] 311 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 312 | / with_bound_socket!((socket) { [INFO] [stdout] 313 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 314 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 315 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 318 | | tx2.send(Packet::deserialize(message.as_slice()).ok().expect("Couldn't deserialize a message")); [INFO] [stdout] 319 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:321:26 [INFO] [stdout] | [INFO] [stdout] 321 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 351 | / with_bound_socket!((socket) { [INFO] [stdout] 352 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 353 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 354 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] 355 | | socket.send_to(Packet::message(121, 1, vec![1,2,3]).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't s... [INFO] [stdout] 356 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:358:26 [INFO] [stdout] | [INFO] [stdout] 358 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 385 | / with_bound_socket!((socket) { [INFO] [stdout] 386 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 387 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 388 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] 389 | | socket.send_to(Packet::disconnect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 390 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:392:26 [INFO] [stdout] | [INFO] [stdout] 392 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 420 | / with_bound_socket!((socket) { [INFO] [stdout] 421 | | socket.set_timeout(Some(5000)); [INFO] [stdout] 422 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 423 | | test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] 424 | | socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 425 | | }); [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:427:26 [INFO] [stdout] | [INFO] [stdout] 427 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `spawn` found for struct `Thread` in the current scope [INFO] [stdout] --> src/tests/test_server.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | ... Thread::spawn(move || { [INFO] [stdout] | ^^^^^ function or associated item not found in `Thread` [INFO] [stdout] ... [INFO] [stdout] 454 | / ... with_bound_socket!((socket) { [INFO] [stdout] 455 | | ... socket.set_timeout(Some(5000)); [INFO] [stdout] 456 | | ... socket.send_to(Packet::connect(121, 0).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a message"); [INFO] [stdout] 457 | | ... test_shared::get_message(&mut socket); //Should be the Accept message [INFO] [stdout] ... | [INFO] [stdout] 460 | | ... socket.send_to(Packet::message(121, 2, vec![3]).serialize().unwrap().as_slice(), my_addr).ok().expect("Couldn't send a mess... [INFO] [stdout] 461 | | ... }); [INFO] [stdout] | |____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `with_bound_socket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests/test_server.rs:463:26 [INFO] [stdout] | [INFO] [stdout] 463 | match server.poll() { [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 89 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `string_telephone` (lib test) due to 90 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6500882fc9fa3bd3595f31808ffcb2d97d7568d540bfa7187f8811fd4beb6eec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6500882fc9fa3bd3595f31808ffcb2d97d7568d540bfa7187f8811fd4beb6eec", kill_on_drop: false }` [INFO] [stdout] 6500882fc9fa3bd3595f31808ffcb2d97d7568d540bfa7187f8811fd4beb6eec