[INFO] fetching crate bip_handshake 0.7.1... [INFO] checking bip_handshake-0.7.1 against master#4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 for pr-134276 [INFO] extracting crate bip_handshake 0.7.1 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate bip_handshake 0.7.1 on toolchain 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bip_handshake 0.7.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate bip_handshake 0.7.1 [INFO] tweaked toml for crates.io crate bip_handshake 0.7.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 82 packages to latest compatible versions [INFO] [stderr] Adding bytes v0.4.12 (available: v1.9.0) [INFO] [stderr] Adding futures v0.1.31 (available: v0.3.31) [INFO] [stderr] Adding nom v3.2.1 (available: v7.1.3) [INFO] [stderr] Adding rand v0.3.23 (available: v0.8.5) [INFO] [stderr] Adding tokio-timer v0.1.2 (available: v0.2.13) [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" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bip_util v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b9c37c0c3b1e9e466d9036cc8d98ecb448a0130ca99e6ef3701389f986ac33db [INFO] running `Command { std: "docker" "start" "-a" "b9c37c0c3b1e9e466d9036cc8d98ecb448a0130ca99e6ef3701389f986ac33db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9c37c0c3b1e9e466d9036cc8d98ecb448a0130ca99e6ef3701389f986ac33db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9c37c0c3b1e9e466d9036cc8d98ecb448a0130ca99e6ef3701389f986ac33db", kill_on_drop: false }` [INFO] [stdout] b9c37c0c3b1e9e466d9036cc8d98ecb448a0130ca99e6ef3701389f986ac33db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a1fe51a03a71a2518a724d51ac5966d56e63e3521687c9b5ecd18804f71b494 [INFO] running `Command { std: "docker" "start" "-a" "5a1fe51a03a71a2518a724d51ac5966d56e63e3521687c9b5ecd18804f71b494", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking tokio-timer v0.1.2 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.2.25 [INFO] [stderr] Checking bip_util v0.5.0 [INFO] [stderr] Checking bip_handshake v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/framed.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | try!(item.write_bytes(self.write_buffer.by_ref().writer())); [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/bittorrent/message.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(self.prot.write_bytes(&mut writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | try!(self.ext.write_bytes(&mut writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(writer.write_all(self.hash.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | try!(writer.write_all(self.pid.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/handshake/handshaker.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | let listener = try!(transport.listen(&builder.bind, &handle)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/handshake/handshaker.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | try!(listener.local_addr()).port() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/message/protocol.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | try!(writer.write_all(&[len as u8][..])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/message/protocol.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | try!(writer.write_all(bytes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/transport.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let listener = try!(TcpListener::bind(addr, handle)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/transport.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | let listen_addr = try!(listener.local_addr()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/message/extensions.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / do_parse!(bytes, [INFO] [stdout] 95 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> [INFO] [stdout] 96 | | (Extensions::with_bytes(bytes)) [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | filters: Arc>>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | filters: Arc>>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/initiator.rs:12:107 [INFO] [stdout] | [INFO] [stdout] 12 | ...ilters, Handle, HandshakeTimer)) -> Box>,Error=()>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn initiator_handler(item: InitiateMessage, context: &(T, Filters, Handle, HandshakeTimer)) -> Box>,Error=()>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | fn check_index(ref_filters: &[Box], filter: &F) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 | fn check_index(ref_filters: &[Box], filter: &F) -> Option [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/mod.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | fn as_any(&self) -> &Any; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | where B: FnOnce(&[Box]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | where B: FnOnce(&[Box]) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | where B: FnOnce(&[Box]) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | where B: FnOnce(&[Box]) -> R { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | where B: FnOnce(&mut Vec>) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | where B: FnOnce(&mut Vec>) -> R { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/bittorrent/framed.rs:81:49 [INFO] [stdout] | [INFO] [stdout] 81 | let read_result = self.sock.read_buf(&mut Cursor::new(&mut self.read_buffer[..])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `tokio_io::AsyncRead::read_buf(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] help: add `#![feature(read_buf)]` to the crate attributes to enable `std::io::Read::read_buf` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(read_buf)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/bittorrent/framed.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | ... try_nb!(self.sock.read_buf(&mut cursor)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `tokio_io::AsyncRead::read_buf(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(read_buf)]` to the crate attributes to enable `std::io::Read::read_buf` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(read_buf)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/framed.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | try!(item.write_bytes(self.write_buffer.by_ref().writer())); [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/bittorrent/message.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(self.prot.write_bytes(&mut writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | try!(self.ext.write_bytes(&mut writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(writer.write_all(self.hash.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bittorrent/message.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | try!(writer.write_all(self.pid.as_ref())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/handshake/handshaker.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | let listener = try!(transport.listen(&builder.bind, &handle)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/handshake/handshaker.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | try!(listener.local_addr()).port() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/message/protocol.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | try!(writer.write_all(&[len as u8][..])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/message/protocol.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | try!(writer.write_all(bytes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/transport.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let listener = try!(TcpListener::bind(addr, handle)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/transport.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | let listen_addr = try!(listener.local_addr()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/message/extensions.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / do_parse!(bytes, [INFO] [stdout] 95 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> [INFO] [stdout] 96 | | (Extensions::with_bytes(bytes)) [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | filters: Arc>>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 | filters: Arc>>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/handshaker.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | -> Box>, Error=()>> where S: AsyncRead + AsyncWrite + 'static { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/handshake/handler/initiator.rs:12:107 [INFO] [stdout] | [INFO] [stdout] 12 | ...ilters, Handle, HandshakeTimer)) -> Box>,Error=()>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn initiator_handler(item: InitiateMessage, context: &(T, Filters, Handle, HandshakeTimer)) -> Box>,Error=()>> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | fn check_index(ref_filters: &[Box], filter: &F) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 | fn check_index(ref_filters: &[Box], filter: &F) -> Option [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/mod.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | fn as_any(&self) -> &Any; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | where B: FnOnce(&[Box]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | where B: FnOnce(&[Box]) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | where B: FnOnce(&[Box]) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | where B: FnOnce(&[Box]) -> R { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | where B: FnOnce(&mut Vec>) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | where B: FnOnce(&mut Vec>) -> R { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn as_any(&self) -> &Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn as_any(&self) -> &dyn Any { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | fn as_any(&self) -> &Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 | fn as_any(&self) -> &dyn Any { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/filter/filters.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | fn as_any(&self) -> &Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 | fn as_any(&self) -> &dyn Any { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/bittorrent/framed.rs:81:49 [INFO] [stdout] | [INFO] [stdout] 81 | let read_result = self.sock.read_buf(&mut Cursor::new(&mut self.read_buffer[..])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `tokio_io::AsyncRead::read_buf(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] help: add `#![feature(read_buf)]` to the crate attributes to enable `std::io::Read::read_buf` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(read_buf)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/bittorrent/framed.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | ... try_nb!(self.sock.read_buf(&mut cursor)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `tokio_io::AsyncRead::read_buf(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(read_buf)]` to the crate attributes to enable `std::io::Read::read_buf` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(read_buf)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_allow_all.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_block_all.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_whitelist_same_data.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_whitelist_same_data.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_whitelist_diff_data.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> test/test_filter_whitelist_diff_data.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | fn as_any(&self) -> &Any { self } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.65s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1, num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "5a1fe51a03a71a2518a724d51ac5966d56e63e3521687c9b5ecd18804f71b494", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a1fe51a03a71a2518a724d51ac5966d56e63e3521687c9b5ecd18804f71b494", kill_on_drop: false }` [INFO] [stdout] 5a1fe51a03a71a2518a724d51ac5966d56e63e3521687c9b5ecd18804f71b494