[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] checking realityone/akarin against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frealityone%2Fakarin" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/realityone/akarin on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/realityone/akarin 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time v0.1.38 [INFO] [stderr] Downloaded redox_syscall v0.1.31 [INFO] [stderr] Downloaded bytes v0.4.5 [INFO] [stderr] Downloaded slab v0.4.0 [INFO] [stderr] Downloaded byteorder v1.1.0 [INFO] [stderr] Downloaded untrusted v0.5.1 [INFO] [stderr] Downloaded lazycell v0.5.1 [INFO] [stderr] Downloaded bitflags v0.7.0 [INFO] [stderr] Downloaded cfg-if v0.1.2 [INFO] [stderr] Downloaded num_cpus v1.7.0 [INFO] [stderr] Downloaded fuchsia-zircon-sys v0.2.0 [INFO] [stderr] Downloaded utf8-ranges v1.0.0 [INFO] [stderr] Downloaded dbghelp-sys v0.2.0 [INFO] [stderr] Downloaded ioctl-sys v0.5.2 [INFO] [stderr] Downloaded rand v0.3.17 [INFO] [stderr] Downloaded ansi_term v0.9.0 [INFO] [stderr] Downloaded rayon v0.8.2 [INFO] [stderr] Downloaded tokio-core v0.1.10 [INFO] [stderr] Downloaded thread_local v0.3.4 [INFO] [stderr] Downloaded env_logger v0.4.3 [INFO] [stderr] Downloaded custom_derive v0.1.7 [INFO] [stderr] Downloaded conv v0.3.3 [INFO] [stderr] Downloaded scoped-tls v0.1.0 [INFO] [stderr] Downloaded rustc-demangle v0.1.5 [INFO] [stderr] Downloaded coco v0.1.1 [INFO] [stderr] Downloaded gcc v0.3.54 [INFO] [stderr] Downloaded scopeguard v0.3.2 [INFO] [stderr] Downloaded iovec v0.1.1 [INFO] [stderr] Downloaded ring v0.12.1 [INFO] [stderr] Downloaded aho-corasick v0.6.3 [INFO] [stderr] Downloaded cc v1.0.0 [INFO] [stderr] Downloaded magenta-sys v0.1.1 [INFO] [stderr] Downloaded memchr v1.0.1 [INFO] [stderr] Downloaded pretty_env_logger v0.1.1 [INFO] [stderr] Downloaded mio v0.6.10 [INFO] [stderr] Downloaded either v1.2.0 [INFO] [stderr] Downloaded libc v0.2.32 [INFO] [stderr] Downloaded regex v0.2.2 [INFO] [stderr] Downloaded regex-syntax v0.4.1 [INFO] [stderr] Downloaded error-chain v0.11.0 [INFO] [stderr] Downloaded backtrace v0.3.3 [INFO] [stderr] Downloaded tokio-io v0.1.3 [INFO] [stderr] Downloaded transient-hashmap v0.4.0 [INFO] [stderr] Downloaded futures v0.1.16 [INFO] [stderr] Downloaded lazy_static v0.2.9 [INFO] [stderr] Downloaded fuchsia-zircon v0.2.1 [INFO] [stderr] Downloaded rayon-core v1.2.1 [INFO] [stderr] Downloaded magenta v0.1.1 [INFO] [stderr] Downloaded net2 v0.2.31 [INFO] [stderr] Downloaded log v0.3.8 [INFO] [stderr] Downloaded backtrace-sys v0.1.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c62a52dcc3b70481dbd864e4b4e1b6367b447e3c20d1f5d175ef31828365f13 [INFO] running `Command { std: "docker" "start" "-a" "4c62a52dcc3b70481dbd864e4b4e1b6367b447e3c20d1f5d175ef31828365f13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c62a52dcc3b70481dbd864e4b4e1b6367b447e3c20d1f5d175ef31828365f13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c62a52dcc3b70481dbd864e4b4e1b6367b447e3c20d1f5d175ef31828365f13", kill_on_drop: false }` [INFO] [stdout] 4c62a52dcc3b70481dbd864e4b4e1b6367b447e3c20d1f5d175ef31828365f13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb31c0d4bbc93e508576563d7241a7aaefcb97b5b5e14c19b9d1d5149e752646 [INFO] running `Command { std: "docker" "start" "-a" "bb31c0d4bbc93e508576563d7241a7aaefcb97b5b5e14c19b9d1d5149e752646", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.32 [INFO] [stderr] Compiling rayon-core v1.2.1 [INFO] [stderr] Compiling either v1.2.0 [INFO] [stderr] Compiling scopeguard v0.3.2 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Compiling cc v1.0.0 [INFO] [stderr] Checking lazy_static v0.2.9 [INFO] [stderr] Compiling futures v0.1.16 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling coco v0.1.1 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking thread_local v0.3.4 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking regex-syntax v0.4.1 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Checking lazycell v0.5.1 [INFO] [stderr] Compiling num_cpus v1.7.0 [INFO] [stderr] Compiling rand v0.3.17 [INFO] [stderr] Checking memchr v1.0.1 [INFO] [stderr] Checking iovec v0.1.1 [INFO] [stderr] Checking aho-corasick v0.6.3 [INFO] [stderr] Checking bytes v0.4.5 [INFO] [stderr] Checking net2 v0.2.31 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking mio v0.6.10 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Compiling backtrace-sys v0.1.14 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking slab v0.4.0 [INFO] [stderr] Checking scoped-tls v0.1.0 [INFO] [stderr] Checking regex v0.2.2 [INFO] [stderr] Checking untrusted v0.5.1 [INFO] [stderr] Checking transient-hashmap v0.4.0 [INFO] [stderr] Checking ioctl-sys v0.5.2 [INFO] [stderr] Compiling rayon v0.8.2 [INFO] [stderr] Checking env_logger v0.4.3 [INFO] [stderr] Checking pretty_env_logger v0.1.1 [INFO] [stderr] Checking tokio-io v0.1.3 [INFO] [stderr] Checking tokio-core v0.1.10 [INFO] [stderr] Compiling ring v0.12.1 [INFO] [stderr] Checking backtrace v0.3.3 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking 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: `Device` [INFO] [stdout] --> src/tun/linux/mod.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::device::{Device, create}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::os::create` [INFO] [stdout] --> src/tun/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::os::create; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::configuration::Configuration` [INFO] [stdout] --> src/tun/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use self::configuration::Configuration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] error: 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] = 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] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 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 method `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] 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` which comes from the expansion of the macro `error_chain` (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 `Once::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` which comes from the expansion of the macro `lazy_static` (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 `Once::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` which comes from the expansion of the macro `lazy_static` (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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [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/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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_crypto(password: &str) -> Box { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | pub fn init(self, password: &str) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [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: `Device` [INFO] [stdout] --> src/tun/linux/mod.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::device::{Device, create}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::os::create` [INFO] [stdout] --> src/tun/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use self::os::create; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::configuration::Configuration` [INFO] [stdout] --> src/tun/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use self::configuration::Configuration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] error: 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] = 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] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 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 method `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] 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` which comes from the expansion of the macro `error_chain` (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 `Once::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` which comes from the expansion of the macro `lazy_static` (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 `Once::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` which comes from the expansion of the macro `lazy_static` (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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | crypto: &'a dyn Crypto, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `akarin` (bin "akarin") due to 2 previous errors; 25 warnings emitted [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | crypto: &'a dyn Crypto, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_crypto(password: &str) -> Box { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | pub fn init(self, password: &str) -> Box { [INFO] [stdout] | +++ [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] = note: `#[warn(unused_variables)]` on by default [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: 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: 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/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: use of deprecated method `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] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (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] [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 164 | let _ = core.run(self); [INFO] [stdout] | +++++++ [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] = note: `#[warn(unused_variables)]` on by default [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: 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: 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/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 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] [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 164 | let _ = core.run(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `akarin` (bin "akarin" test) due to 2 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bb31c0d4bbc93e508576563d7241a7aaefcb97b5b5e14c19b9d1d5149e752646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb31c0d4bbc93e508576563d7241a7aaefcb97b5b5e14c19b9d1d5149e752646", kill_on_drop: false }` [INFO] [stdout] bb31c0d4bbc93e508576563d7241a7aaefcb97b5b5e14c19b9d1d5149e752646