[INFO] cloning repository https://github.com/realityone/akarin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/realityone/akarin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frealityone%2Fakarin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frealityone%2Fakarin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6734d9b14288800ee23415a6a900fe115c803960 [INFO] testing realityone/akarin against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frealityone%2Fakarin" "/workspace/builds/worker-47/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-47/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/realityone/akarin 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 git repo https://github.com/realityone/akarin [INFO] finished tweaking git repo https://github.com/realityone/akarin [INFO] tweaked toml for git repo https://github.com/realityone/akarin written to /workspace/builds/worker-47/source/Cargo.toml [INFO] crate git repo https://github.com/realityone/akarin already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb94750d2a8c484d0b63b726628f0e4a90e920a90aa2f01a3a6bb5bf4f669fbe [INFO] running `Command { std: "docker" "start" "-a" "eb94750d2a8c484d0b63b726628f0e4a90e920a90aa2f01a3a6bb5bf4f669fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb94750d2a8c484d0b63b726628f0e4a90e920a90aa2f01a3a6bb5bf4f669fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb94750d2a8c484d0b63b726628f0e4a90e920a90aa2f01a3a6bb5bf4f669fbe", kill_on_drop: false }` [INFO] [stdout] eb94750d2a8c484d0b63b726628f0e4a90e920a90aa2f01a3a6bb5bf4f669fbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66792609e324839603119b24e832bfe20d3cc08e58b611e8d1c3f53d80efdcfe [INFO] running `Command { std: "docker" "start" "-a" "66792609e324839603119b24e832bfe20d3cc08e58b611e8d1c3f53d80efdcfe", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.32 [INFO] [stderr] Compiling lazy_static v0.2.9 [INFO] [stderr] Compiling futures v0.1.16 [INFO] [stderr] Compiling scopeguard v0.3.2 [INFO] [stderr] Compiling either v1.2.0 [INFO] [stderr] Compiling rayon-core v1.2.1 [INFO] [stderr] Compiling cc v1.0.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling log v0.3.8 [INFO] [stderr] Compiling regex-syntax v0.4.1 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling rustc-demangle v0.1.5 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling lazycell v0.5.1 [INFO] [stderr] Compiling slab v0.4.0 [INFO] [stderr] Compiling scoped-tls v0.1.0 [INFO] [stderr] Compiling untrusted v0.5.1 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling ioctl-sys v0.5.2 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling coco v0.1.1 [INFO] [stderr] Compiling thread_local v0.3.4 [INFO] [stderr] Compiling num_cpus v1.7.0 [INFO] [stderr] Compiling rand v0.3.17 [INFO] [stderr] Compiling memchr v1.0.1 [INFO] [stderr] Compiling iovec v0.1.1 [INFO] [stderr] Compiling net2 v0.2.31 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling aho-corasick v0.6.3 [INFO] [stderr] Compiling bytes v0.4.5 [INFO] [stderr] Compiling mio v0.6.10 [INFO] [stderr] Compiling backtrace-sys v0.1.14 [INFO] [stderr] Compiling transient-hashmap v0.4.0 [INFO] [stderr] Compiling regex v0.2.2 [INFO] [stderr] Compiling tokio-io v0.1.3 [INFO] [stderr] Compiling tokio-core v0.1.10 [INFO] [stderr] Compiling rayon v0.8.2 [INFO] [stderr] Compiling env_logger v0.4.3 [INFO] [stderr] Compiling pretty_env_logger v0.1.1 [INFO] [stderr] Compiling ring v0.12.1 [INFO] [stderr] Compiling backtrace v0.3.3 [INFO] [stderr] Compiling error-chain v0.11.0 [INFO] [stderr] Compiling akarin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/akarin/server.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, io, mem}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/akarin/mod.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn serve(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(patterns_in_fns_without_body)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/akarin/mod.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn connect(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common::error::*` [INFO] [stdout] --> src/transport/network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use common::error::*; [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/common/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | errors { [INFO] [stdout] 3 | | // Tun [INFO] [stdout] 4 | | TunNameTooLong [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/transport/network.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / lazy_static!{ [INFO] [stdout] 9 | | pub static ref IPV4_HEADER_LEN: usize = mem::size_of::(); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/transport/network.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / lazy_static!{ [INFO] [stdout] 9 | | pub static ref IPV4_HEADER_LEN: usize = mem::size_of::(); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/server.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | crypto: &'a Crypto, [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] 28 - crypto: &'a Crypto, [INFO] [stdout] 28 + crypto: &'a dyn Crypto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/client.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | crypto: &'a Crypto, [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] 15 - crypto: &'a Crypto, [INFO] [stdout] 15 + crypto: &'a dyn Crypto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/crypto/mod.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn init(self, password: &str) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - pub fn init(self, password: &str) -> Box { [INFO] [stdout] 21 + pub fn init(self, password: &str) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/server.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] 124 + fn new<'b>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/client.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] 24 + fn new<'d>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/crypto/chacha20_poly1305.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] 9 + pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/common/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | errors { [INFO] [stdout] 3 | | // Tun [INFO] [stdout] 4 | | TunNameTooLong [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crypto` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let crypto = Ciphers::CHACHA20_POLY1305.init(password); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crypto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/akarin/server.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockaddr` [INFO] [stdout] --> src/akarin/server.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/akarin/server.rs:163:40 [INFO] [stdout] | [INFO] [stdout] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `core` [INFO] [stdout] --> src/akarin/client.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/akarin/client.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/akarin/server.rs:163:14 [INFO] [stdout] | [INFO] [stdout] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [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/akarin/client.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/akarin/server.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | core.run(self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.93s [INFO] running `Command { std: "docker" "inspect" "66792609e324839603119b24e832bfe20d3cc08e58b611e8d1c3f53d80efdcfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66792609e324839603119b24e832bfe20d3cc08e58b611e8d1c3f53d80efdcfe", kill_on_drop: false }` [INFO] [stdout] 66792609e324839603119b24e832bfe20d3cc08e58b611e8d1c3f53d80efdcfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cf1becd0b24097ddb86dd172f21143d05a761c001c600c9ae99bfe4dc9be19e [INFO] running `Command { std: "docker" "start" "-a" "7cf1becd0b24097ddb86dd172f21143d05a761c001c600c9ae99bfe4dc9be19e", kill_on_drop: false }` [INFO] [stderr] Compiling akarin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/akarin/server.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, io, mem}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/akarin/mod.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn serve(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(patterns_in_fns_without_body)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/akarin/mod.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn connect(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common::error::*` [INFO] [stdout] --> src/transport/network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use common::error::*; [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/common/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | errors { [INFO] [stdout] 3 | | // Tun [INFO] [stdout] 4 | | TunNameTooLong [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/transport/network.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / lazy_static!{ [INFO] [stdout] 9 | | pub static ref IPV4_HEADER_LEN: usize = mem::size_of::(); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/transport/network.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / lazy_static!{ [INFO] [stdout] 9 | | pub static ref IPV4_HEADER_LEN: usize = mem::size_of::(); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/server.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | crypto: &'a Crypto, [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] 28 - crypto: &'a Crypto, [INFO] [stdout] 28 + crypto: &'a dyn Crypto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/client.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | crypto: &'a Crypto, [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] 15 - crypto: &'a Crypto, [INFO] [stdout] 15 + crypto: &'a dyn Crypto, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/crypto/mod.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn init(self, password: &str) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - pub fn init(self, password: &str) -> Box { [INFO] [stdout] 21 + pub fn init(self, password: &str) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/server.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] 124 + fn new<'b>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/akarin/client.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] 24 + fn new<'d>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/crypto/chacha20_poly1305.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] 9 + pub fn init_crypto(password: &str) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/common/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / error_chain! { [INFO] [stdout] 2 | | errors { [INFO] [stdout] 3 | | // Tun [INFO] [stdout] 4 | | TunNameTooLong [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crypto` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let crypto = Ciphers::CHACHA20_POLY1305.init(password); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crypto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/akarin/server.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockaddr` [INFO] [stdout] --> src/akarin/server.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/akarin/server.rs:163:40 [INFO] [stdout] | [INFO] [stdout] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `core` [INFO] [stdout] --> src/akarin/client.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/akarin/client.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/akarin/server.rs:163:14 [INFO] [stdout] | [INFO] [stdout] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [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/akarin/client.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/akarin/server.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | core.run(self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.45s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/akarin-5d3004e39c9b0d40) [INFO] running `Command { std: "docker" "inspect" "7cf1becd0b24097ddb86dd172f21143d05a761c001c600c9ae99bfe4dc9be19e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cf1becd0b24097ddb86dd172f21143d05a761c001c600c9ae99bfe4dc9be19e", kill_on_drop: false }` [INFO] [stdout] 7cf1becd0b24097ddb86dd172f21143d05a761c001c600c9ae99bfe4dc9be19e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ebd13adeefaa796ed24a47f7b4a2a05b355dc85de9b134a6d40b923dfa6b3584 [INFO] running `Command { std: "docker" "start" "-a" "ebd13adeefaa796ed24a47f7b4a2a05b355dc85de9b134a6d40b923dfa6b3584", kill_on_drop: false }` [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `mem` [INFO] [stderr] --> src/akarin/server.rs:1:20 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{fmt, io, mem}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: patterns aren't allowed in functions without bodies [INFO] [stderr] --> src/akarin/mod.rs:26:20 [INFO] [stderr] | [INFO] [stderr] 26 | fn serve(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stderr] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(patterns_in_fns_without_body)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #35203 [INFO] [stderr] [INFO] [stderr] warning: patterns aren't allowed in functions without bodies [INFO] [stderr] --> src/akarin/mod.rs:30:22 [INFO] [stderr] | [INFO] [stderr] 30 | fn connect(self, mut core: Core, handle: Handle) -> Result<()>; [INFO] [stderr] | ^^^^^^^^ help: remove `mut` from the parameter: `core` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #35203 [INFO] [stderr] [INFO] [stderr] warning: unused import: `common::error::*` [INFO] [stderr] --> src/transport/network.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use common::error::*; [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/common/error.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / error_chain! { [INFO] [stderr] 2 | | errors { [INFO] [stderr] 3 | | // Tun [INFO] [stderr] 4 | | TunNameTooLong [INFO] [stderr] ... | [INFO] [stderr] 26 | | } [INFO] [stderr] 27 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stderr] --> src/transport/network.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | / lazy_static!{ [INFO] [stderr] 9 | | pub static ref IPV4_HEADER_LEN: usize = mem::size_of::(); [INFO] [stderr] 10 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/akarin/server.rs:28:17 [INFO] [stderr] | [INFO] [stderr] 28 | crypto: &'a Crypto, [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] 28 - crypto: &'a Crypto, [INFO] [stderr] 28 + crypto: &'a dyn Crypto, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/akarin/client.rs:15:17 [INFO] [stderr] | [INFO] [stderr] 15 | crypto: &'a Crypto, [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] 15 - crypto: &'a Crypto, [INFO] [stderr] 15 + crypto: &'a dyn Crypto, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/crypto/mod.rs:21:46 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn init(self, password: &str) -> Box { [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] 21 - pub fn init(self, password: &str) -> Box { [INFO] [stderr] 21 + pub fn init(self, password: &str) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/akarin/server.rs:124:41 [INFO] [stderr] | [INFO] [stderr] 124 | fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [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] 124 - fn new<'b>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stderr] 124 + fn new<'b>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'b ServerConfiguration) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/akarin/client.rs:24:41 [INFO] [stderr] | [INFO] [stderr] 24 | fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [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] 24 - fn new<'d>(tun: Device, crypto: &'a Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stderr] 24 + fn new<'d>(tun: Device, crypto: &'a dyn Crypto, udp: UdpSocket, configuration: &'d ClientConfiguration) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/crypto/chacha20_poly1305.rs:9:43 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn init_crypto(password: &str) -> Box { [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] 9 - pub fn init_crypto(password: &str) -> Box { [INFO] [stderr] 9 + pub fn init_crypto(password: &str) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/common/error.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / error_chain! { [INFO] [stderr] 2 | | errors { [INFO] [stderr] 3 | | // Tun [INFO] [stderr] 4 | | TunNameTooLong [INFO] [stderr] ... | [INFO] [stderr] 26 | | } [INFO] [stderr] 27 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `impl_error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `crypto` [INFO] [stderr] --> src/main.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | let crypto = Ciphers::CHACHA20_POLY1305.init(password); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crypto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token` [INFO] [stderr] --> src/akarin/server.rs:157:27 [INFO] [stderr] | [INFO] [stderr] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sockaddr` [INFO] [stderr] --> src/akarin/server.rs:157:34 [INFO] [stderr] | [INFO] [stderr] 157 | if let Some(&(token, sockaddr)) = self.clients.get(client_id) {} [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockaddr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `handle` [INFO] [stderr] --> src/akarin/server.rs:163:40 [INFO] [stderr] | [INFO] [stderr] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `core` [INFO] [stderr] --> src/akarin/client.rs:39:26 [INFO] [stderr] | [INFO] [stderr] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_core` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `handle` [INFO] [stderr] --> src/akarin/client.rs:39:38 [INFO] [stderr] | [INFO] [stderr] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/akarin/server.rs:163:14 [INFO] [stderr] | [INFO] [stderr] 163 | fn serve(mut self, mut core: Core, handle: Handle) -> Result<()> { [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/akarin/client.rs:39:22 [INFO] [stderr] | [INFO] [stderr] 39 | fn connect(self, mut core: Core, handle: Handle) -> Result<()> { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/akarin/server.rs:164:9 [INFO] [stderr] | [INFO] [stderr] 164 | core.run(self); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `akarin` (bin "akarin" test) generated 24 warnings (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/akarin-5d3004e39c9b0d40) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test transport::network::test::test_ipv4_header ... ok [INFO] [stdout] test crypto::chacha20_poly1305::test::test_encrypt_and_decrypt ... ok [INFO] [stdout] test akarin::server::tests::test_client_storage ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.77s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ebd13adeefaa796ed24a47f7b4a2a05b355dc85de9b134a6d40b923dfa6b3584", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebd13adeefaa796ed24a47f7b4a2a05b355dc85de9b134a6d40b923dfa6b3584", kill_on_drop: false }` [INFO] [stdout] ebd13adeefaa796ed24a47f7b4a2a05b355dc85de9b134a6d40b923dfa6b3584