[INFO] cloning repository https://github.com/dkeehl/chunfen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dkeehl/chunfen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdkeehl%2Fchunfen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdkeehl%2Fchunfen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d7b66ed0687f0c2adaf4e0146ae28231b88c0e9 [INFO] checking dkeehl/chunfen against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdkeehl%2Fchunfen" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dkeehl/chunfen on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dkeehl/chunfen [INFO] finished tweaking git repo https://github.com/dkeehl/chunfen [INFO] tweaked toml for git repo https://github.com/dkeehl/chunfen written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dkeehl/chunfen already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-executor v0.1.5 [INFO] [stderr] Downloaded tokio-tcp v0.1.2 [INFO] [stderr] Downloaded net2 v0.2.32 [INFO] [stderr] Downloaded mio v0.6.14 [INFO] [stderr] Downloaded crossbeam-utils v0.5.0 [INFO] [stderr] Downloaded untrusted v0.5.1 [INFO] [stderr] Downloaded getopts v0.2.18 [INFO] [stderr] Downloaded tokio-fs v0.1.4 [INFO] [stderr] Downloaded crossbeam-epoch v0.5.2 [INFO] [stderr] Downloaded fern v0.5.6 [INFO] [stderr] Downloaded tokio-threadpool v0.1.8 [INFO] [stderr] Downloaded tokio v0.1.7 [INFO] [stderr] Downloaded crossbeam-deque v0.6.1 [INFO] [stderr] Downloaded tokio-timer v0.2.7 [INFO] [stderr] Downloaded tokio-udp v0.1.2 [INFO] [stderr] Downloaded tokio-io v0.1.9 [INFO] [stderr] Downloaded slab v0.4.1 [INFO] [stderr] Downloaded tokio-reactor v0.1.3 [INFO] [stderr] Downloaded ring v0.12.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92e980fa25d2f3edc893bdc27c75b91e443a1031835c6cf52203ee536da8cee8 [INFO] running `Command { std: "docker" "start" "-a" "92e980fa25d2f3edc893bdc27c75b91e443a1031835c6cf52203ee536da8cee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92e980fa25d2f3edc893bdc27c75b91e443a1031835c6cf52203ee536da8cee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92e980fa25d2f3edc893bdc27c75b91e443a1031835c6cf52203ee536da8cee8", kill_on_drop: false }` [INFO] [stdout] 92e980fa25d2f3edc893bdc27c75b91e443a1031835c6cf52203ee536da8cee8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd642805caa0dae4c96cac45c7b0cba800535a443b1c8504d38dc03c26427524 [INFO] running `Command { std: "docker" "start" "-a" "bd642805caa0dae4c96cac45c7b0cba800535a443b1c8504d38dc03c26427524", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.39 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Checking futures v0.1.25 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking nodrop v0.1.12 [INFO] [stderr] Checking crossbeam-utils v0.5.0 [INFO] [stderr] Checking slab v0.4.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Checking lazycell v0.6.0 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking untrusted v0.5.1 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking fern v0.5.6 [INFO] [stderr] Checking getopts v0.2.18 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Checking crossbeam-epoch v0.5.2 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking net2 v0.2.32 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking time v0.1.39 [INFO] [stderr] Checking tokio-executor v0.1.5 [INFO] [stderr] Checking crossbeam-deque v0.6.1 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Checking tokio-timer v0.2.7 [INFO] [stderr] Checking bytes v0.4.10 [INFO] [stderr] Checking mio v0.6.14 [INFO] [stderr] Checking nom v4.1.1 [INFO] [stderr] Compiling rayon v0.8.2 [INFO] [stderr] Checking tokio-io v0.1.9 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking tokio-reactor v0.1.3 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking tokio-threadpool v0.1.8 [INFO] [stderr] Checking tokio-udp v0.1.2 [INFO] [stderr] Checking tokio-tcp v0.1.2 [INFO] [stderr] Compiling ring v0.12.1 [INFO] [stderr] Checking tokio-fs v0.1.4 [INFO] [stderr] Checking tokio v0.1.7 [INFO] [stderr] Checking chunfen-socks v0.1.0 (/opt/rustwide/workdir/chunfen-socks) [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> chunfen-socks/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> chunfen-socks/src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> chunfen-socks/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> chunfen-socks/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> chunfen-socks/src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> chunfen-socks/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 | -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/utils.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | -> Box + Send> { Box::new(x) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 | -> Box + Send> { Box::new(x) } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | -> Box + Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 | -> Box + Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/utils.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | -> Box + Send> { Box::new(x) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 | -> Box + Send> { Box::new(x) } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOCKS_V4` is never used [INFO] [stdout] --> chunfen-socks/src/lib.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const SOCKS_V4:u8 = 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-socks/src/connector.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOCKS_V4` is never used [INFO] [stdout] --> chunfen-socks/src/lib.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const SOCKS_V4:u8 = 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chunfen-sec v0.1.0 (/opt/rustwide/workdir/chunfen-sec) [INFO] [stdout] warning: the item `ring` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/encryption.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ring; [INFO] [stdout] | ^^^^ the item `ring` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> chunfen-sec/src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ring` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/suites.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ring; [INFO] [stdout] | ^^^^ the item `ring` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | msg_encryptor: Box, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 99 | msg_encryptor: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | msg_decryptor: Box, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 100 | msg_decryptor: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_tls(&mut self, r: &mut Read) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn read_tls(&mut self, r: &mut dyn Read) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 16 | fn write_tls(&mut self, w: &mut Write) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | fn write_tls(&mut self, w: &mut dyn Write) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:255:50 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn set_msg_encryptor(&mut self, enc: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 255 | pub fn set_msg_encryptor(&mut self, enc: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:259:50 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_msg_decryptor(&mut self, dec: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_msg_decryptor(&mut self, dec: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl MsgEncryptor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | impl dyn MsgEncryptor { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | impl MsgDecryptor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | impl dyn MsgDecryptor { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn plain() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 | pub fn plain() -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:40:68 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn plain() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | pub fn plain() -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:57:68 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/utils/vec_buffer.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_to(&mut self, w: &mut Write) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_to(&mut self, w: &mut dyn Write) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/utils/msg_deframer.rs:35:41 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn read_from(&mut self, r: &mut Read) -> io::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | pub fn read_from(&mut self, r: &mut dyn Read) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:320:44 [INFO] [stdout] | [INFO] [stdout] 320 | fn read_tls(&mut self, r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/client.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ClientSession with state: ClientState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | fn write_tls(&mut self, w: &mut Write) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/client.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ClientSession with state: ClientState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ring` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/encryption.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ring; [INFO] [stdout] | ^^^^ the item `ring` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> chunfen-sec/src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/encryption.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ring` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/suites.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ring; [INFO] [stdout] | ^^^^ the item `ring` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `log` is imported redundantly [INFO] [stdout] --> chunfen-sec/src/test.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{self, Record, Metadata, Level, SetLoggerError}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate log; [INFO] [stdout] | ----------------- the item `log` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:320:44 [INFO] [stdout] | [INFO] [stdout] 320 | fn read_tls(&mut self, r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/server.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ServerSession with state: ServerState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | fn write_tls(&mut self, w: &mut Write) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/server.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ServerSession with state: ServerState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | msg_encryptor: Box, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 99 | msg_encryptor: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | msg_decryptor: Box, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 100 | msg_decryptor: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:179:51 [INFO] [stdout] | [INFO] [stdout] 179 | write!(f, "{} of type {:?}", self.description(), typ), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:181:44 [INFO] [stdout] | [INFO] [stdout] 181 | write!(f, "{}, {:?}", self.description(), alert), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | write!(f, "{}, {}", self.description(), why), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:186:71 [INFO] [stdout] | [INFO] [stdout] 186 | TLSError::PeerSentOversizedRecord => write!(f, "{}", self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:187:45 [INFO] [stdout] | [INFO] [stdout] 187 | _ => write!(f, "{}: {:?}", self.description(), self), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | msg_encryptor: MsgEncryptor::plain(), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 121 | msg_encryptor: ::plain(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | msg_decryptor: MsgDecryptor::plain(), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 | msg_decryptor: ::plain(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_tls(&mut self, r: &mut Read) -> Result; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn read_tls(&mut self, r: &mut dyn Read) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 16 | fn write_tls(&mut self, w: &mut Write) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | fn write_tls(&mut self, w: &mut dyn Write) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:255:50 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn set_msg_encryptor(&mut self, enc: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 255 | pub fn set_msg_encryptor(&mut self, enc: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:259:50 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_msg_decryptor(&mut self, dec: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_msg_decryptor(&mut self, dec: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl MsgEncryptor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | impl dyn MsgEncryptor { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | impl MsgDecryptor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | impl dyn MsgDecryptor { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn plain() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 | pub fn plain() -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:40:68 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn plain() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | pub fn plain() -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:57:68 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(suite: &SupportedCipherSuite, secret: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/utils/vec_buffer.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_to(&mut self, w: &mut Write) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_to(&mut self, w: &mut dyn Write) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/utils/msg_deframer.rs:35:41 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn read_from(&mut self, r: &mut Read) -> io::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | pub fn read_from(&mut self, r: &mut dyn Read) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:320:44 [INFO] [stdout] | [INFO] [stdout] 320 | fn read_tls(&mut self, r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/client.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ClientSession with state: ClientState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | fn write_tls(&mut self, w: &mut Write) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/client.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ClientSession with state: ClientState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:320:44 [INFO] [stdout] | [INFO] [stdout] 320 | fn read_tls(&mut self, r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/server.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ServerSession with state: ServerState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/session.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | fn write_tls(&mut self, w: &mut Write) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: chunfen-sec/src/server.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | session_struct!(ServerSession with state: ServerState); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `session_struct` (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] --> chunfen-sec/src/client.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | self.common.set_msg_encryptor(MsgEncryptor::new(suite, &write_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | self.common.set_msg_encryptor(::new(suite, &write_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/client.rs:58:39 [INFO] [stdout] | [INFO] [stdout] 58 | self.common.set_msg_decryptor(MsgDecryptor::new(suite, &read_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | self.common.set_msg_decryptor(::new(suite, &read_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/server.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 71 | self.common.set_msg_encryptor(MsgEncryptor::new(&suite, &write_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 71 | self.common.set_msg_encryptor(::new(&suite, &write_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/server.rs:72:39 [INFO] [stdout] | [INFO] [stdout] 72 | self.common.set_msg_decryptor(MsgDecryptor::new(&suite, &read_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | self.common.set_msg_decryptor(::new(&suite, &read_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:179:51 [INFO] [stdout] | [INFO] [stdout] 179 | write!(f, "{} of type {:?}", self.description(), typ), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:181:44 [INFO] [stdout] | [INFO] [stdout] 181 | write!(f, "{}, {:?}", self.description(), alert), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | write!(f, "{}, {}", self.description(), why), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:186:71 [INFO] [stdout] | [INFO] [stdout] 186 | TLSError::PeerSentOversizedRecord => write!(f, "{}", self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> chunfen-sec/src/data.rs:187:45 [INFO] [stdout] | [INFO] [stdout] 187 | _ => write!(f, "{}: {:?}", self.description(), self), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | msg_encryptor: MsgEncryptor::plain(), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 121 | msg_encryptor: ::plain(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/session.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | msg_decryptor: MsgDecryptor::plain(), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 | msg_decryptor: ::plain(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | let e = MsgEncryptor::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 206 | let e = ::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | let e = MsgEncryptor::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 | let e = ::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/encryption.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | let d = MsgDecryptor::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 228 | let d = ::new(&TLS13_AES_128_GCM_SHA256, SECRET); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/client.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | self.common.set_msg_encryptor(MsgEncryptor::new(suite, &write_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | self.common.set_msg_encryptor(::new(suite, &write_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/client.rs:58:39 [INFO] [stdout] | [INFO] [stdout] 58 | self.common.set_msg_decryptor(MsgDecryptor::new(suite, &read_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | self.common.set_msg_decryptor(::new(suite, &read_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/server.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 71 | self.common.set_msg_encryptor(MsgEncryptor::new(&suite, &write_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 71 | self.common.set_msg_encryptor(::new(&suite, &write_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> chunfen-sec/src/server.rs:72:39 [INFO] [stdout] | [INFO] [stdout] 72 | self.common.set_msg_decryptor(MsgDecryptor::new(&suite, &read_key)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | self.common.set_msg_decryptor(::new(&suite, &read_key)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chunfen-sec/src/data.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | Opaque(Vec), [INFO] [stdout] | ------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 77 | Opaque(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chunfen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Sized` is imported redundantly [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::marker::Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sized` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Id` is imported redundantly [INFO] [stdout] --> src/server.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::utils::{*, Id}; [INFO] [stdout] | - ^^ [INFO] [stdout] | | [INFO] [stdout] | the item `Id` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chunfen-sec/src/data.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | Opaque(Vec), [INFO] [stdout] | ------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 77 | Opaque(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sized` is imported redundantly [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::marker::Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sized` is already defined here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(unused)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Id` is imported redundantly [INFO] [stdout] --> src/server.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::utils::{*, Id}; [INFO] [stdout] | - ^^ [INFO] [stdout] | | [INFO] [stdout] | the item `Id` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:60:42 [INFO] [stdout] | [INFO] [stdout] 60 | Box::new(fut) as Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | Box::new(fut) as Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(drop_res!(fut)) as Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(drop_res!(fut)) as Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | -> Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:60:42 [INFO] [stdout] | [INFO] [stdout] 60 | Box::new(fut) as Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | Box::new(fut) as Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(drop_res!(fut)) as Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(drop_res!(fut)) as Box + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tunnel_port.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | -> Box + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | -> Box + Send> [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/framed.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | if 0 == try_ready!(self.stream.read_buf(&mut self.r_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:3:1 [INFO] [stdout] | [INFO] [stdout] 3 + #![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/framed.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | if 0 == try_ready!(self.stream.read_buf(&mut self.r_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:3:1 [INFO] [stdout] | [INFO] [stdout] 3 + #![feature(read_buf)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.71s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.1.1 [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" "bd642805caa0dae4c96cac45c7b0cba800535a443b1c8504d38dc03c26427524", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd642805caa0dae4c96cac45c7b0cba800535a443b1c8504d38dc03c26427524", kill_on_drop: false }` [INFO] [stdout] bd642805caa0dae4c96cac45c7b0cba800535a443b1c8504d38dc03c26427524