[INFO] fetching crate twist 0.7.1... [INFO] testing twist-0.7.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate twist 0.7.1 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate twist 0.7.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate twist 0.7.1 [INFO] finished tweaking crates.io crate twist 0.7.1 [INFO] tweaked toml for crates.io crate twist 0.7.1 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3f3f10813692d22db067582e6c0998081dc6af8408b518c8395df77f57920dc5 [INFO] running `Command { std: "docker" "start" "-a" "3f3f10813692d22db067582e6c0998081dc6af8408b518c8395df77f57920dc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f3f10813692d22db067582e6c0998081dc6af8408b518c8395df77f57920dc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f3f10813692d22db067582e6c0998081dc6af8408b518c8395df77f57920dc5", kill_on_drop: false }` [INFO] [stdout] 3f3f10813692d22db067582e6c0998081dc6af8408b518c8395df77f57920dc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff1d61a64a30880380d9d3719cf0fcd85a684a90f255d86d142c2705e51fdc9f [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" "ff1d61a64a30880380d9d3719cf0fcd85a684a90f255d86d142c2705e51fdc9f", kill_on_drop: false }` [INFO] [stderr] Compiling slog v1.7.1 [INFO] [stderr] Compiling crossbeam v0.2.12 [INFO] [stderr] Compiling base64 v0.4.2 [INFO] [stderr] Compiling isatty v0.1.9 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Compiling uuid v0.4.0 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling tokio-proto v0.1.1 [INFO] [stderr] Compiling slog-extra v0.1.2 [INFO] [stderr] Compiling slog-atomic v0.4.3 [INFO] [stderr] Compiling vatfluid v0.3.0 [INFO] [stderr] Compiling slog-stream v1.2.1 [INFO] [stderr] Compiling slog-term v1.5.0 [INFO] [stderr] Compiling twist v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/codec/mod.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/codec/server/handshake.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | /// Add the other headers to the response. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | / for (k, v) in msg.others().iter() { [INFO] [stdout] 143 | | response.push_str(&format!("{}: {}\r\n", *k, *v)); [INFO] [stdout] 144 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/client/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 43 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | 0...999 => ReasonCode::Unused, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | 1012 | 1013 | 1014 | 1016...2999 => ReasonCode::Reserved5, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | 3000...3999 => ReasonCode::AppSpecific, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | 4000...4999 => ReasonCode::Undefined, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/proto/server/fragmented.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/server/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | type Transport = ClientHandshake>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | type BaseCodec = Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:9:65 [INFO] [stdout] | [INFO] [stdout] 9 | pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] 9 + pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:11:63 [INFO] [stdout] | [INFO] [stdout] 11 | pub type PerFrameExtensions = 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] 11 + pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | mask_buf.put_u32::(mask); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u16`: use get_u16_be or get_u16_le [INFO] [stdout] --> src/codec/base.rs:186:64 [INFO] [stdout] | [INFO] [stdout] 186 | let len = Cursor::new(buf.split_to(2)).get_u16::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u64`: use get_u64_be or get_u64_le [INFO] [stdout] --> src/codec/base.rs:195:64 [INFO] [stdout] | [INFO] [stdout] 195 | let len = Cursor::new(buf.split_to(8)).get_u64::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u32`: use get_u32_be or get_u32_le [INFO] [stdout] --> src/codec/base.rs:213:65 [INFO] [stdout] | [INFO] [stdout] 213 | let mask = Cursor::new(buf.split_to(4)).get_u32::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u16`: use put_u16_be or put_u16_le [INFO] [stdout] --> src/codec/base.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | len_buf.put_u16::(cast_len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u64`: use put_u64_be or put_u64_le [INFO] [stdout] --> src/codec/base.rs:320:21 [INFO] [stdout] | [INFO] [stdout] 320 | len_buf.put_u64::(len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | mask_buf.put_u32::(msg.mask()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/codec/mod.rs:207:34 [INFO] [stdout] | [INFO] [stdout] 207 | hc.set_ext_resp(ext_resp.trim_right_matches(", ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/client/mod.rs:35:53 [INFO] [stdout] | [INFO] [stdout] 35 | let mut handshake = ClientHandshake::new(io.framed(twist)); [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] --> src/proto/server/close.rs:195:57 [INFO] [stdout] | [INFO] [stdout] 195 | try_error!(self.stderr, "{}", e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/server/mod.rs:48:49 [INFO] [stdout] | [INFO] [stdout] 48 | let mut fragmented = Fragmented::new(io.framed(twist), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/server/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/client/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] --> src/proto/mod.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [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] --> src/proto/mod.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.59s [INFO] running `Command { std: "docker" "inspect" "ff1d61a64a30880380d9d3719cf0fcd85a684a90f255d86d142c2705e51fdc9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff1d61a64a30880380d9d3719cf0fcd85a684a90f255d86d142c2705e51fdc9f", kill_on_drop: false }` [INFO] [stdout] ff1d61a64a30880380d9d3719cf0fcd85a684a90f255d86d142c2705e51fdc9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d7d48ae57a420250549813934f3fd447fc22e919157e06ec92ac463a7219b826 [INFO] running `Command { std: "docker" "start" "-a" "d7d48ae57a420250549813934f3fd447fc22e919157e06ec92ac463a7219b826", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/codec/mod.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/codec/server/handshake.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | /// Add the other headers to the response. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | / for (k, v) in msg.others().iter() { [INFO] [stdout] 143 | | response.push_str(&format!("{}: {}\r\n", *k, *v)); [INFO] [stdout] 144 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/client/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 43 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | 0...999 => ReasonCode::Unused, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | 1012 | 1013 | 1014 | 1016...2999 => ReasonCode::Reserved5, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | 3000...3999 => ReasonCode::AppSpecific, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | 4000...4999 => ReasonCode::Undefined, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/proto/server/fragmented.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/server/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | type Transport = ClientHandshake>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | type BaseCodec = Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:9:65 [INFO] [stdout] | [INFO] [stdout] 9 | pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] 9 + pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:11:63 [INFO] [stdout] | [INFO] [stdout] 11 | pub type PerFrameExtensions = 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] 11 + pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | mask_buf.put_u32::(mask); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u16`: use get_u16_be or get_u16_le [INFO] [stdout] --> src/codec/base.rs:186:64 [INFO] [stdout] | [INFO] [stdout] 186 | let len = Cursor::new(buf.split_to(2)).get_u16::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u64`: use get_u64_be or get_u64_le [INFO] [stdout] --> src/codec/base.rs:195:64 [INFO] [stdout] | [INFO] [stdout] 195 | let len = Cursor::new(buf.split_to(8)).get_u64::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u32`: use get_u32_be or get_u32_le [INFO] [stdout] --> src/codec/base.rs:213:65 [INFO] [stdout] | [INFO] [stdout] 213 | let mask = Cursor::new(buf.split_to(4)).get_u32::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u16`: use put_u16_be or put_u16_le [INFO] [stdout] --> src/codec/base.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | len_buf.put_u16::(cast_len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u64`: use put_u64_be or put_u64_le [INFO] [stdout] --> src/codec/base.rs:320:21 [INFO] [stdout] | [INFO] [stdout] 320 | len_buf.put_u64::(len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | mask_buf.put_u32::(msg.mask()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling twist v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/codec/mod.rs:207:34 [INFO] [stdout] | [INFO] [stdout] 207 | hc.set_ext_resp(ext_resp.trim_right_matches(", ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/client/mod.rs:35:53 [INFO] [stdout] | [INFO] [stdout] 35 | let mut handshake = ClientHandshake::new(io.framed(twist)); [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] --> src/proto/server/close.rs:195:57 [INFO] [stdout] | [INFO] [stdout] 195 | try_error!(self.stderr, "{}", e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/server/mod.rs:48:49 [INFO] [stdout] | [INFO] [stdout] 48 | let mut fragmented = Fragmented::new(io.framed(twist), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/server/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/client/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] --> src/proto/mod.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [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] --> src/proto/mod.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/codec/mod.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/codec/server/handshake.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | /// Add the other headers to the response. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | / for (k, v) in msg.others().iter() { [INFO] [stdout] 143 | | response.push_str(&format!("{}: {}\r\n", *k, *v)); [INFO] [stdout] 144 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/client/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 43 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | 0...999 => ReasonCode::Unused, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | 1012 | 1013 | 1014 | 1016...2999 => ReasonCode::Reserved5, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | 3000...3999 => ReasonCode::AppSpecific, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/proto/server/close.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | 4000...4999 => ReasonCode::Undefined, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str` [INFO] [stdout] --> src/proto/server/fragmented.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/proto/server/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | /// Setup the protocol middleware chain. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | Ok(handshake) [INFO] [stdout] | ------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/client/mod.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | type Transport = ClientHandshake>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_io::codec::Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stdout] --> src/proto/server/mod.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | type BaseCodec = Framed; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:9:65 [INFO] [stdout] | [INFO] [stdout] 9 | pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] 9 + pub type PerMessageExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/extension.rs:11:63 [INFO] [stdout] | [INFO] [stdout] 11 | pub type PerFrameExtensions = 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] 11 + pub type PerFrameExtensions = Arc>>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | mask_buf.put_u32::(mask); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u16`: use get_u16_be or get_u16_le [INFO] [stdout] --> src/codec/base.rs:186:64 [INFO] [stdout] | [INFO] [stdout] 186 | let len = Cursor::new(buf.split_to(2)).get_u16::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u64`: use get_u64_be or get_u64_le [INFO] [stdout] --> src/codec/base.rs:195:64 [INFO] [stdout] | [INFO] [stdout] 195 | let len = Cursor::new(buf.split_to(8)).get_u64::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::Buf::get_u32`: use get_u32_be or get_u32_le [INFO] [stdout] --> src/codec/base.rs:213:65 [INFO] [stdout] | [INFO] [stdout] 213 | let mask = Cursor::new(buf.split_to(4)).get_u32::(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u16`: use put_u16_be or put_u16_le [INFO] [stdout] --> src/codec/base.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | len_buf.put_u16::(cast_len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u64`: use put_u64_be or put_u64_le [INFO] [stdout] --> src/codec/base.rs:320:21 [INFO] [stdout] | [INFO] [stdout] 320 | len_buf.put_u64::(len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stdout] --> src/codec/base.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | mask_buf.put_u32::(msg.mask()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/codec/mod.rs:207:34 [INFO] [stdout] | [INFO] [stdout] 207 | hc.set_ext_resp(ext_resp.trim_right_matches(", ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/client/mod.rs:35:53 [INFO] [stdout] | [INFO] [stdout] 35 | let mut handshake = ClientHandshake::new(io.framed(twist)); [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] --> src/proto/server/close.rs:195:57 [INFO] [stdout] | [INFO] [stdout] 195 | try_error!(self.stderr, "{}", e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stdout] --> src/proto/server/mod.rs:48:49 [INFO] [stdout] | [INFO] [stdout] 48 | let mut fragmented = Fragmented::new(io.framed(twist), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/server/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/codec/client/handshake.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [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] --> src/proto/mod.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [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] --> src/proto/mod.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 8.51s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/twist-89ccd52d13d58f2a) [INFO] running `Command { std: "docker" "inspect" "d7d48ae57a420250549813934f3fd447fc22e919157e06ec92ac463a7219b826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7d48ae57a420250549813934f3fd447fc22e919157e06ec92ac463a7219b826", kill_on_drop: false }` [INFO] [stdout] d7d48ae57a420250549813934f3fd447fc22e919157e06ec92ac463a7219b826 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 274cb803616ef8846728d46d70287746c381dfc71259960ac9d4aee6fd01d269 [INFO] running `Command { std: "docker" "start" "-a" "274cb803616ef8846728d46d70287746c381dfc71259960ac9d4aee6fd01d269", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `str` [INFO] [stderr] --> src/codec/mod.rs:11:15 [INFO] [stderr] | [INFO] [stderr] 11 | use std::{io, str}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/codec/server/handshake.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 141 | /// Add the other headers to the response. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 142 | / for (k, v) in msg.others().iter() { [INFO] [stderr] 143 | | response.push_str(&format!("{}: {}\r\n", *k, *v)); [INFO] [stderr] 144 | | } [INFO] [stderr] | |_________- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/proto/client/mod.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | /// Setup the protocol middleware chain. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 43 | Ok(handshake) [INFO] [stderr] | ------------- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/proto/server/close.rs:53:14 [INFO] [stderr] | [INFO] [stderr] 53 | 0...999 => ReasonCode::Unused, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/proto/server/close.rs:65:38 [INFO] [stderr] | [INFO] [stderr] 65 | 1012 | 1013 | 1014 | 1016...2999 => ReasonCode::Reserved5, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/proto/server/close.rs:67:17 [INFO] [stderr] | [INFO] [stderr] 67 | 3000...3999 => ReasonCode::AppSpecific, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/proto/server/close.rs:68:17 [INFO] [stderr] | [INFO] [stderr] 68 | 4000...4999 => ReasonCode::Undefined, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused import: `str` [INFO] [stderr] --> src/proto/server/fragmented.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use std::{io, str}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/proto/server/mod.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | /// Setup the protocol middleware chain. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 87 | Ok(handshake) [INFO] [stderr] | ------------- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stderr] --> src/proto/client/mod.rs:7:22 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio_io::codec::Framed; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stderr] --> src/proto/client/mod.rs:17:38 [INFO] [stderr] | [INFO] [stderr] 17 | type Transport = ClientHandshake>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stderr] --> src/proto/server/mod.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | use tokio_io::codec::Framed; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `tokio_io::codec::Framed`: Moved to tokio-codec [INFO] [stderr] --> src/proto/server/mod.rs:21:21 [INFO] [stderr] | [INFO] [stderr] 21 | type BaseCodec = Framed; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/extension.rs:9:65 [INFO] [stderr] | [INFO] [stderr] 9 | pub type PerMessageExtensions = Arc>>>>; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - pub type PerMessageExtensions = Arc>>>>; [INFO] [stderr] 9 + pub type PerMessageExtensions = Arc>>>>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/extension.rs:11:63 [INFO] [stderr] | [INFO] [stderr] 11 | pub type PerFrameExtensions = Arc>>>>; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 11 - pub type PerFrameExtensions = Arc>>>>; [INFO] [stderr] 11 + pub type PerFrameExtensions = Arc>>>>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stderr] --> src/codec/base.rs:114:14 [INFO] [stderr] | [INFO] [stderr] 114 | mask_buf.put_u32::(mask); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::Buf::get_u16`: use get_u16_be or get_u16_le [INFO] [stderr] --> src/codec/base.rs:186:64 [INFO] [stderr] | [INFO] [stderr] 186 | let len = Cursor::new(buf.split_to(2)).get_u16::(); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::Buf::get_u64`: use get_u64_be or get_u64_le [INFO] [stderr] --> src/codec/base.rs:195:64 [INFO] [stderr] | [INFO] [stderr] 195 | let len = Cursor::new(buf.split_to(8)).get_u64::(); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::Buf::get_u32`: use get_u32_be or get_u32_le [INFO] [stderr] --> src/codec/base.rs:213:65 [INFO] [stderr] | [INFO] [stderr] 213 | let mask = Cursor::new(buf.split_to(4)).get_u32::(); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::BufMut::put_u16`: use put_u16_be or put_u16_le [INFO] [stderr] --> src/codec/base.rs:314:21 [INFO] [stderr] | [INFO] [stderr] 314 | len_buf.put_u16::(cast_len); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::BufMut::put_u64`: use put_u64_be or put_u64_le [INFO] [stderr] --> src/codec/base.rs:320:21 [INFO] [stderr] | [INFO] [stderr] 320 | len_buf.put_u64::(len); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `bytes::BufMut::put_u32`: use put_u32_be or put_u32_le [INFO] [stderr] --> src/codec/base.rs:327:22 [INFO] [stderr] | [INFO] [stderr] 327 | mask_buf.put_u32::(msg.mask()); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stderr] --> src/codec/mod.rs:207:34 [INFO] [stderr] | [INFO] [stderr] 207 | hc.set_ext_resp(ext_resp.trim_right_matches(", ")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stderr] --> src/proto/client/mod.rs:35:53 [INFO] [stderr] | [INFO] [stderr] 35 | let mut handshake = ClientHandshake::new(io.framed(twist)); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/proto/server/close.rs:195:57 [INFO] [stderr] | [INFO] [stderr] 195 | try_error!(self.stderr, "{}", e.description()); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `tokio_io::AsyncRead::framed`: Use tokio_codec::Decoder::framed instead [INFO] [stderr] --> src/proto/server/mod.rs:48:49 [INFO] [stderr] | [INFO] [stderr] 48 | let mut fragmented = Fragmented::new(io.framed(twist), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/codec/server/handshake.rs:80:25 [INFO] [stderr] | [INFO] [stderr] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/codec/client/handshake.rs:80:25 [INFO] [stderr] | [INFO] [stderr] 80 | let mut entry = headers.entry(key).or_insert_with(String::new); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/proto/mod.rs:76:13 [INFO] [stderr] | [INFO] [stderr] 76 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/proto/mod.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | let mut vec = map.entry(self.uuid).or_insert_with(Vec::new); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `twist` (lib) generated 30 warnings [INFO] [stderr] warning: `twist` (lib test) generated 30 warnings (30 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/twist-89ccd52d13d58f2a) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test codec::base::test::decode_fragmented_control ... ok [INFO] [stdout] test codec::base::test::decode_partial_mask ... ok [INFO] [stdout] test codec::base::test::decode_partial_payload ... ok [INFO] [stdout] test codec::base::test::decode_partial_len_1 ... ok [INFO] [stdout] test codec::base::test::decode_ping_no_data ... ok [INFO] [stdout] test codec::base::test::decode_reserved_opcodes ... ok [INFO] [stdout] test codec::base::test::decode_no_mask ... ok [INFO] [stdout] test codec::base::test::decode_partial_len_2 ... ok [INFO] [stdout] test codec::base::test::decode_partial_header ... ok [INFO] [stdout] test codec::base::test::decode_invalid_control_payload_len ... ok [INFO] [stdout] test codec::base::test::decode_reserved ... ok [INFO] [stdout] test codec::test::encode ... ok [INFO] [stdout] test codec::test::decode ... ok [INFO] [stderr] Doc-tests twist [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/proto/server/close.rs:53:14 [INFO] [stderr] | [INFO] [stderr] 53 | 0...999 => ReasonCode::Unused, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/proto/server/close.rs:65:38 [INFO] [stderr] | [INFO] [stderr] 65 | 1012 | 1013 | 1014 | 1016...2999 => ReasonCode::Reserved5, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/proto/server/close.rs:67:17 [INFO] [stderr] | [INFO] [stderr] 67 | 3000...3999 => ReasonCode::AppSpecific, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/proto/server/close.rs:68:17 [INFO] [stderr] | [INFO] [stderr] 68 | 4000...4999 => ReasonCode::Undefined, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/server.rs - server (line 5) ... ok [INFO] [stdout] test src/client.rs - client (line 5) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.26s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "274cb803616ef8846728d46d70287746c381dfc71259960ac9d4aee6fd01d269", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "274cb803616ef8846728d46d70287746c381dfc71259960ac9d4aee6fd01d269", kill_on_drop: false }` [INFO] [stdout] 274cb803616ef8846728d46d70287746c381dfc71259960ac9d4aee6fd01d269