[INFO] cloning repository https://github.com/xin-water/bittorrent-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xin-water/bittorrent-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1409a2e03c68178a8b095f0de430dc07631ca530 [INFO] checking xin-water/bittorrent-rs against master#7dc9ff5c629753b6930ecfe9a0446538b8e25fb7 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xin-water/bittorrent-rs on toolchain 7dc9ff5c629753b6930ecfe9a0446538b8e25fb7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xin-water/bittorrent-rs [INFO] finished tweaking git repo https://github.com/xin-water/bittorrent-rs [INFO] tweaked toml for git repo https://github.com/xin-water/bittorrent-rs written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/xin-water/bittorrent-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f6a43752e20d34a05542b9e26486be08d61b807363fb3eb23fe436c2fccdd67 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5f6a43752e20d34a05542b9e26486be08d61b807363fb3eb23fe436c2fccdd67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f6a43752e20d34a05542b9e26486be08d61b807363fb3eb23fe436c2fccdd67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f6a43752e20d34a05542b9e26486be08d61b807363fb3eb23fe436c2fccdd67", kill_on_drop: false }` [INFO] [stdout] 5f6a43752e20d34a05542b9e26486be08d61b807363fb3eb23fe436c2fccdd67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bba08e546847c13cb16f4a477ed45ed42f32f57c88b609c33d4ae29d853dc753 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bba08e546847c13cb16f4a477ed45ed42f32f57c88b609c33d4ae29d853dc753", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Compiling build_const v0.2.1 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking slab v0.1.3 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Checking bytes v0.3.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking bit-vec v0.4.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking slab v0.2.0 [INFO] [stderr] Checking base32 v0.3.1 [INFO] [stderr] Checking crossbeam v0.3.2 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling hex-literal v0.3.1 [INFO] [stderr] Checking bittorrent-client v0.1.0 (/opt/rustwide/workdir/bittorrent-client) [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking unicode-bidi v0.2.6 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking encoding_rs v0.8.26 [INFO] [stderr] Checking crossbeam-utils v0.8.1 [INFO] [stderr] Checking indexmap v1.6.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking bit-set v0.4.0 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-queue v0.3.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking num-iter v0.1.42 [INFO] [stderr] Checking pendulum v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking net2 v0.2.36 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking socket2 v0.3.17 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking crossbeam v0.8.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking miow v0.1.5 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking pbr v1.0.4 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking uuid v0.2.3 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rust-crypto v0.2.36 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking bencode v0.1.16 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking env_logger v0.3.5 [INFO] [stderr] Checking url v0.5.10 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking quickcheck v0.4.1 [INFO] [stderr] Checking mio v0.5.1 [INFO] [stderr] Checking simplelog v0.10.0 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking umio v0.3.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking bittorrent-protocol v0.1.7 (/opt/rustwide/workdir/bittorrent-protocol) [INFO] [stdout] error[E0252]: the name `SocketState` is defined multiple times [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1308:9 [INFO] [stdout] | [INFO] [stdout] 1305 | use crate::utp::socket::{UtpSocket, UtpListener, SocketState, BUF_SIZE, take_address}; [INFO] [stdout] | ----------- previous import of the type `SocketState` here [INFO] [stdout] ... [INFO] [stdout] 1308 | use crate::utp::socket::SocketState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SocketState` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `SocketState` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> bittorrent-protocol/src/bencode/mod.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / macro_rules! bt_ben_list { [INFO] [stdout] 135 | | ( $($ben:expr),* ) => { [INFO] [stdout] 136 | | { [INFO] [stdout] 137 | | use crate::bencode::{BencodeMut, BMutAccess}; [INFO] [stdout] ... | [INFO] [stdout] 149 | | } [INFO] [stdout] 150 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HandshakeType` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Incoming` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option::Some` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option::Some; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UtpStream` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::utp::{UtpSocket, UtpListener, UtpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> bittorrent-protocol/src/handshake/stream.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::super::quickcheck` [INFO] [stdout] --> bittorrent-protocol/src/utp/packet.rs:501:23 [INFO] [stdout] | [INFO] [stdout] 501 | use super::super::quickcheck::TestResult; [INFO] [stdout] | ^^^^^^^^^^ could not find `quickcheck` in `super` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use futures::future::{self, Future}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use futures::future::{self, Future}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ManagedMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/builder.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | use tokio_timer; [INFO] [stdout] | ^^^^^^^^^^^ no external crate `tokio_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio_core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use tokio_core::reactor::Core; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `tokio_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | use futures::Future; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | use tokio_timer; [INFO] [stdout] | ^^^^^^^^^^^ no external crate `tokio_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::manager::TryClone` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::peer::manager::TryClone; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_split.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_split.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use futures::Future; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::discovery::error::DiscoveryError` [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::select::discovery::error::DiscoveryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:124:20 [INFO] [stdout] | [INFO] [stdout] 124 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>, [INFO] [stdout] 480 | | map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b)) [INFO] [stdout] 481 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>, [INFO] [stdout] 491 | | map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b)) [INFO] [stdout] 492 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / do_parse!( [INFO] [stdout] 97 | | bytes, [INFO] [stdout] 98 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes)) [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PacketHeader` [INFO] [stdout] --> bittorrent-protocol/src/utp/packet.rs:740:16 [INFO] [stdout] | [INFO] [stdout] 740 | if PacketHeader::try_from(&x).and(check_extensions(&x)).is_err() { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 498 | use crate::utp::packet::PacketHeader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QuickCheck` [INFO] [stdout] --> bittorrent-protocol/src/utp/packet.rs:748:9 [INFO] [stdout] | [INFO] [stdout] 748 | QuickCheck::new().tests(10000).quickcheck(run as fn(Vec) -> TestResult) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 498 | use quickcheck::QuickCheck; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> bittorrent-protocol/src/bencode/mod.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / macro_rules! bt_ben_list { [INFO] [stdout] 135 | | ( $($ben:expr),* ) => { [INFO] [stdout] 136 | | { [INFO] [stdout] 137 | | use crate::bencode::{BencodeMut, BMutAccess}; [INFO] [stdout] ... | [INFO] [stdout] 149 | | } [INFO] [stdout] 150 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utp::socket::SocketState` [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1308:9 [INFO] [stdout] | [INFO] [stdout] 1308 | use crate::utp::socket::SocketState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:2331:30 [INFO] [stdout] | [INFO] [stdout] 2331 | assert!(take_address(("0.0.0.0:0")).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:2332:30 [INFO] [stdout] | [INFO] [stdout] 2332 | assert!(take_address(("[::]:0")).is_ok()); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:2339:30 [INFO] [stdout] | [INFO] [stdout] 2339 | assert!(take_address(("1.2.3.4:70000")).is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HandshakeType` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Incoming` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option::Some` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option::Some; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UtpStream` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::utp::{UtpSocket, UtpListener, UtpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> bittorrent-protocol/src/handshake/stream.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ManagedMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/builder.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::manager::TryClone` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::peer::manager::TryClone; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_split.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_split.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::discovery::error::DiscoveryError` [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::select::discovery::error::DiscoveryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>, [INFO] [stdout] 480 | | map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b)) [INFO] [stdout] 481 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>, [INFO] [stdout] 491 | | map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b)) [INFO] [stdout] 492 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1315:46 [INFO] [stdout] | [INFO] [stdout] 1315 | use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1316:43 [INFO] [stdout] | [INFO] [stdout] 1316 | static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / do_parse!( [INFO] [stdout] 97 | | bytes, [INFO] [stdout] 98 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes)) [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Item == (std::io::Cursor>, std::net::SocketAddr)` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 18 | type Listener: Stream + LocalAddr + 'static; [INFO] [stdout] | --------------------------------- required by this bound in `Transport::Listener` [INFO] [stdout] ... [INFO] [stdout] 153 | type Listener = MockListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::io::Cursor` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(std::io::Cursor>, std::net::SocketAddr)` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | f.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | io::Error::new(kind, error.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 81 | io::Error::new(ErrorKind::Other, error.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]` [INFO] [stdout] --> bittorrent-protocol/src/utracker/contact.rs:397:36 [INFO] [stdout] | [INFO] [stdout] 395 | let expected = []; [INFO] [stdout] | -------- consider giving `expected` the explicit type `[_; 0]`, where the type parameter `T` is specified [INFO] [stdout] 396 | [INFO] [stdout] 397 | assert_eq!(&received[..], &expected[..]); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]` [INFO] [stdout] --> bittorrent-protocol/src/utracker/contact.rs:499:36 [INFO] [stdout] | [INFO] [stdout] 497 | let expected = []; [INFO] [stdout] | -------- consider giving `expected` the explicit type `[_; 0]`, where the type parameter `T` is specified [INFO] [stdout] 498 | [INFO] [stdout] 499 | assert_eq!(&received[..], &expected[..]); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]` [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:247:36 [INFO] [stdout] | [INFO] [stdout] 245 | let expected = []; [INFO] [stdout] | -------- consider giving `expected` the explicit type `[_; 0]`, where the type parameter `T` is specified [INFO] [stdout] 246 | [INFO] [stdout] 247 | assert_eq!(&received[..], &expected[..]); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]` [INFO] [stdout] --> bittorrent-protocol/src/utracker/scrape.rs:304:36 [INFO] [stdout] | [INFO] [stdout] 302 | let expected = []; [INFO] [stdout] | -------- consider giving `expected` the explicit type `[_; 0]`, where the type parameter `T` is specified [INFO] [stdout] 303 | [INFO] [stdout] 304 | assert_eq!(&received[..], &expected[..]); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]` [INFO] [stdout] --> bittorrent-protocol/src/utracker/scrape.rs:348:36 [INFO] [stdout] | [INFO] [stdout] 346 | let expected = []; [INFO] [stdout] | -------- consider giving `expected` the explicit type `[_; 0]`, where the type parameter `T` is specified [INFO] [stdout] 347 | [INFO] [stdout] 348 | assert_eq!(&received[..], &expected[..]); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_piece_buffer` is never read [INFO] [stdout] --> bittorrent-protocol/src/metainfo/builder/worker.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | let mut curr_piece_buffer = PieceBuffer::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | let &(ref transport, ref filters, ref timer) = context; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tasks_available` [INFO] [stdout] --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:462:13 [INFO] [stdout] | [INFO] [stdout] 462 | let tasks_available = self.initialize_pending(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tasks_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `free_task_queue_space` [INFO] [stdout] --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let free_task_queue_space = self.active_requests.len() != MAX_ACTIVE_REQUESTS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_free_task_queue_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_requests_available` [INFO] [stdout] --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:465:13 [INFO] [stdout] | [INFO] [stdout] 465 | let peer_requests_available = !self.peer_requests.is_empty(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_requests_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `downloads_available` [INFO] [stdout] --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let downloads_available = self.validate_downloaded(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_downloads_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | f.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | io::Error::new(kind, error.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bittorrent-protocol/src/utp/error.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 81 | io::Error::new(ErrorKind::Other, error.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | &(MockTransport, Filters::new(), core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/packet.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mut header = unsafe { &mut *(self.0.as_mut_ptr() as *mut PacketHeader) }; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | let mut packet = &mut self.send_window[0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1110:9 [INFO] [stdout] | [INFO] [stdout] 1110 | let mut socket = self.socket.try_clone().expect("UtpSocket clone fail"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1111:9 [INFO] [stdout] | [INFO] [stdout] 1111 | let mut connected_to = self.connected_to.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1112:9 [INFO] [stdout] | [INFO] [stdout] 1112 | let mut sender_connection_id = self.sender_connection_id; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1113:9 [INFO] [stdout] | [INFO] [stdout] 1113 | let mut receiver_connection_id = self.receiver_connection_id; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1114:9 [INFO] [stdout] | [INFO] [stdout] 1114 | let mut seq_nr = self.seq_nr; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1115:9 [INFO] [stdout] | [INFO] [stdout] 1115 | let mut ack_nr = self.ack_nr; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1116:9 [INFO] [stdout] | [INFO] [stdout] 1116 | let mut state = self.state.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1117:9 [INFO] [stdout] | [INFO] [stdout] 1117 | let mut incoming_buffer = self.incoming_buffer.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1118:9 [INFO] [stdout] | [INFO] [stdout] 1118 | let mut send_window = self.send_window.clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1119:9 [INFO] [stdout] | [INFO] [stdout] 1119 | let mut unsent_queue = self.unsent_queue.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1120:9 [INFO] [stdout] | [INFO] [stdout] 1120 | let mut duplicate_ack_count = self.duplicate_ack_count.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1121:9 [INFO] [stdout] | [INFO] [stdout] 1121 | let mut last_acked = self.last_acked.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1122:9 [INFO] [stdout] | [INFO] [stdout] 1122 | let mut last_acked_timestamp = self.last_acked_timestamp.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1123:9 [INFO] [stdout] | [INFO] [stdout] 1123 | let mut last_dropped = self.last_dropped.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1124:9 [INFO] [stdout] | [INFO] [stdout] 1124 | let mut rtt = self.rtt.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1125:9 [INFO] [stdout] | [INFO] [stdout] 1125 | let mut pending_data = self.pending_data.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1126:9 [INFO] [stdout] | [INFO] [stdout] 1126 | let mut rtt_variance = self.rtt_variance.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | let mut curr_window = self.curr_window.clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1128:9 [INFO] [stdout] | [INFO] [stdout] 1128 | let mut remote_wnd_size= self.remote_wnd_size.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1129:9 [INFO] [stdout] | [INFO] [stdout] 1129 | let mut base_delays= self.base_delays.clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1130:9 [INFO] [stdout] | [INFO] [stdout] 1130 | let mut current_delays= self.current_delays.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1131:9 [INFO] [stdout] | [INFO] [stdout] 1131 | let mut their_delay = self.their_delay.clone(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1132:9 [INFO] [stdout] | [INFO] [stdout] 1132 | let mut last_rollover = self.last_rollover.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1133:9 [INFO] [stdout] | [INFO] [stdout] 1133 | let mut congestion_timeout = self.congestion_timeout.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1134:9 [INFO] [stdout] | [INFO] [stdout] 1134 | let mut cwnd = self.cwnd.clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1135:9 [INFO] [stdout] | [INFO] [stdout] 1135 | let mut max_retransmission_retries = self.max_retransmission_retries.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/utp/socket.rs:1137:9 [INFO] [stdout] | [INFO] [stdout] 1137 | let mut utp_socket = UtpSocket { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:140:10 [INFO] [stdout] | [INFO] [stdout] 140 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:170:10 [INFO] [stdout] | [INFO] [stdout] 170 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:49:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 49 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 69 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 89 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 109 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_inner` found for unit type `()` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | let recv_buffer = write_frame.into_inner().into_inner(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send` found for unit type `()` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 201 | .send(message_two.clone()) [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Run` defines an item `send`, perhaps you need to implement it [INFO] [stdout] --> bittorrent-protocol/src/select/discovery/mod.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Run { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut opt_next_state = get_next_state(self); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 225 | let mut read_iter = FramedHandshake::new(&buffer[..]).wait(); [INFO] [stdout] | ^^^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:249:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `ok` not found for this [INFO] [stdout] ... [INFO] [stdout] 249 | .ok() [INFO] [stdout] | ^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:274:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `ok` not found for this [INFO] [stdout] ... [INFO] [stdout] 274 | .ok() [INFO] [stdout] | ^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): From<()>` is not satisfied [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:199:52 [INFO] [stdout] | [INFO] [stdout] 199 | Err(Error::new(ErrorKind::NotFound, ())) [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected an implementor of trait `From<()>` [INFO] [stdout] | help: consider borrowing here: `&()` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `From<()>` for `Box<(dyn std::error::Error + Send + Sync + 'static)>` [INFO] [stdout] = note: required because of the requirements on the impl of `Into>` for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_peer` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn run_peer( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_TIMER_SLOTS` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const DEFAULT_TIMER_SLOTS: usize = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | framed.send(handshake_msg).map_err(|_| ()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | framed.send(handshake_msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | self.sock.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors; 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0271, E0277, E0282, E0308, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bittorrent-protocol` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "bba08e546847c13cb16f4a477ed45ed42f32f57c88b609c33d4ae29d853dc753", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bba08e546847c13cb16f4a477ed45ed42f32f57c88b609c33d4ae29d853dc753", kill_on_drop: false }` [INFO] [stdout] bba08e546847c13cb16f4a477ed45ed42f32f57c88b609c33d4ae29d853dc753