[INFO] cloning repository https://github.com/naotiki/tun-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/naotiki/tun-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaotiki%2Ftun-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaotiki%2Ftun-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 876aeb35d03d6fa27e9b58e9fe4b5a0f785c4992 [INFO] building naotiki/tun-playground against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaotiki%2Ftun-playground" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/naotiki/tun-playground [INFO] finished tweaking git repo https://github.com/naotiki/tun-playground [INFO] tweaked toml for git repo https://github.com/naotiki/tun-playground written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/naotiki/tun-playground on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/naotiki/tun-playground 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ulid v1.1.4 [INFO] [stderr] Downloaded c2rust-bitfields-derive v0.19.0 [INFO] [stderr] Downloaded c2rust-bitfields v0.19.0 [INFO] [stderr] Downloaded winreg v0.55.0 [INFO] [stderr] Downloaded miniz_oxide v0.8.3 [INFO] [stderr] Downloaded pem v3.0.4 [INFO] [stderr] Downloaded rustc-hash v2.1.0 [INFO] [stderr] Downloaded rustls-platform-verifier v0.4.0 [INFO] [stderr] Downloaded netns-rs v0.1.0 [INFO] [stderr] Downloaded packet v0.1.4 [INFO] [stderr] Downloaded async-trait v0.1.85 [INFO] [stderr] Downloaded rustls-native-certs v0.7.3 [INFO] [stderr] Downloaded clap_derive v4.5.24 [INFO] [stderr] Downloaded clap v4.5.26 [INFO] [stderr] Downloaded serde_cbor v0.11.2 [INFO] [stderr] Downloaded webpki-root-certs v0.26.7 [INFO] [stderr] Downloaded rustls v0.23.21 [INFO] [stderr] Downloaded quinn-udp v0.5.9 [INFO] [stderr] Downloaded rustls-platform-verifier-android v0.1.1 [INFO] [stderr] Downloaded yasna v0.5.2 [INFO] [stderr] Downloaded rustls-pki-types v1.10.1 [INFO] [stderr] Downloaded half v1.8.3 [INFO] [stderr] Downloaded clap_builder v4.5.26 [INFO] [stderr] Downloaded hwaddr v0.1.7 [INFO] [stderr] Downloaded time v0.3.37 [INFO] [stderr] Downloaded rcgen v0.13.2 [INFO] [stderr] Downloaded tappers v0.4.2 [INFO] [stderr] Downloaded tun v0.7.10 [INFO] [stderr] Downloaded wintun-bindings v0.7.29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54429ad0cbcebc087d25cba5f3e5cc0447db1fbf2799f80f88216adb9329d236 [INFO] running `Command { std: "docker" "start" "-a" "54429ad0cbcebc087d25cba5f3e5cc0447db1fbf2799f80f88216adb9329d236", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54429ad0cbcebc087d25cba5f3e5cc0447db1fbf2799f80f88216adb9329d236", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54429ad0cbcebc087d25cba5f3e5cc0447db1fbf2799f80f88216adb9329d236", kill_on_drop: false }` [INFO] [stdout] 54429ad0cbcebc087d25cba5f3e5cc0447db1fbf2799f80f88216adb9329d236 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20af236bb8addb4c7aa076022eea1cb313e4c3c86a34214d1a5341bb44fdb71f [INFO] running `Command { std: "docker" "start" "-a" "20af236bb8addb4c7aa076022eea1cb313e4c3c86a34214d1a5341bb44fdb71f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling rustls v0.23.21 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling quinn-udp v0.5.9 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling hwaddr v0.1.7 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling rustc-hash v2.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling windows-targets v0.52.6 [INFO] [stderr] Compiling clap_builder v4.5.26 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling windows-sys v0.59.0 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling yasna v0.5.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling clap_derive v4.5.24 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling packet v0.1.4 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rcgen v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling clap v4.5.26 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling netns-rs v0.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ulid v1.1.4 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rustls-platform-verifier v0.4.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling quinn-proto v0.11.9 [INFO] [stderr] Compiling tun v0.7.10 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: unused import: `command` [INFO] [stdout] --> common/src/argument_parser.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{command, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> common/src/protocol.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> common/src/tun.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TunPacketCodec` [INFO] [stdout] --> common/src/tun.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use tun::{AsyncDevice, Configuration, TunPacketCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> common/src/tunnel_backend.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> common/src/argument_parser.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let addr = server_addrs.to_address().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> common/src/tun.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(addr: IpAddr, dest: IpAddr) -> TunInterface { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 6 - async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] 6 + fn connect(connect_config: ClientConnectionConfig) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 7 - async fn close_session(self); [INFO] [stdout] 7 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 17 - async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] 17 + fn serve(listen_addr: SocketAddr) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn accept(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 - async fn accept(&self) -> Result; [INFO] [stdout] 18 + fn accept(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | async fn shutdown(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 19 - async fn shutdown(self); [INFO] [stdout] 19 + fn shutdown(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 23 - async fn close_session(self); [INFO] [stdout] 23 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tappers v0.4.2 [INFO] [stderr] Compiling quinn v0.11.6 [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused import: `AsPacket` [INFO] [stdout] --> client/src/main.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> client/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> client/src/main.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::bytes::BytesMut` [INFO] [stdout] --> client/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tokio_util::bytes::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decoder` and `Encoder` [INFO] [stdout] --> client/src/main.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_util::codec::{Decoder, Encoder, FramedRead, FramedWrite}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto::Session` [INFO] [stdout] --> server/src/quic.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quinn::{crypto::Session, Endpoint, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> server/src/tcp.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> server/src/tcp.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `asynctap::AsyncTap` [INFO] [stdout] --> server/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use asynctap::AsyncTap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ip` [INFO] [stdout] --> server/src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use packet::{ether, ip, Builder}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::io::ReaderStream` [INFO] [stdout] --> server/src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio_util::io::ReaderStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tun::Tun` [INFO] [stdout] --> server/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tun::Tun; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Packet` [INFO] [stdout] --> client/src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection` is never read [INFO] [stdout] --> client/src/quic.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QuicTransport { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 10 | connection: quinn::Connection, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Builder` [INFO] [stdout] --> server/src/main.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use packet::{ether, ip, Builder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> server/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iface` [INFO] [stdout] --> server/src/asynctap.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let iface = Interface::from_cstr(unsafe { CStr::from_bytes_with_nul_unchecked(b"tap0\0") }) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_iface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> server/src/asynctap.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> server/src/asynctap.rs:70:48 [INFO] [stdout] | [INFO] [stdout] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/asynctap.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Network` is never constructed [INFO] [stdout] --> server/src/network.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Network {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_bridge` is never used [INFO] [stdout] --> server/src/network.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Network { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 4 | pub fn new_bridge() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "20af236bb8addb4c7aa076022eea1cb313e4c3c86a34214d1a5341bb44fdb71f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20af236bb8addb4c7aa076022eea1cb313e4c3c86a34214d1a5341bb44fdb71f", kill_on_drop: false }` [INFO] [stdout] 20af236bb8addb4c7aa076022eea1cb313e4c3c86a34214d1a5341bb44fdb71f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53e0ba6177619288b30a12699d485127c4a63af013892052e45391b9915cecd5 [INFO] running `Command { std: "docker" "start" "-a" "53e0ba6177619288b30a12699d485127c4a63af013892052e45391b9915cecd5", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stdout] warning: unused import: `command` [INFO] [stdout] --> common/src/argument_parser.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{command, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> common/src/protocol.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> common/src/tun.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TunPacketCodec` [INFO] [stdout] --> common/src/tun.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use tun::{AsyncDevice, Configuration, TunPacketCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> common/src/tunnel_backend.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> common/src/argument_parser.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let addr = server_addrs.to_address().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> common/src/tun.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(addr: IpAddr, dest: IpAddr) -> TunInterface { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 6 - async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] 6 + fn connect(connect_config: ClientConnectionConfig) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 7 - async fn close_session(self); [INFO] [stdout] 7 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 17 - async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] 17 + fn serve(listen_addr: SocketAddr) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn accept(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 - async fn accept(&self) -> Result; [INFO] [stdout] 18 + fn accept(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | async fn shutdown(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 19 - async fn shutdown(self); [INFO] [stdout] 19 + fn shutdown(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 23 - async fn close_session(self); [INFO] [stdout] 23 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused import: `command` [INFO] [stdout] --> common/src/argument_parser.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{command, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> common/src/protocol.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::codec::Framed` [INFO] [stdout] --> common/src/tun.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_util::codec::Framed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TunPacketCodec` [INFO] [stdout] --> common/src/tun.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use tun::{AsyncDevice, Configuration, TunPacketCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> common/src/tunnel_backend.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsPacket` [INFO] [stdout] --> client/src/main.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> client/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> client/src/main.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::bytes::BytesMut` [INFO] [stdout] --> client/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tokio_util::bytes::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decoder` and `Encoder` [INFO] [stdout] --> client/src/main.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_util::codec::{Decoder, Encoder, FramedRead, FramedWrite}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto::Session` [INFO] [stdout] --> server/src/quic.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quinn::{crypto::Session, Endpoint, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stdout] --> server/src/tcp.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> server/src/tcp.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `asynctap::AsyncTap` [INFO] [stdout] --> server/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use asynctap::AsyncTap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ip` [INFO] [stdout] --> server/src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use packet::{ether, ip, Builder}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_util::io::ReaderStream` [INFO] [stdout] --> server/src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio_util::io::ReaderStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tun::Tun` [INFO] [stdout] --> server/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tun::Tun; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> server/src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> common/src/argument_parser.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let addr = server_addrs.to_address().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pipe` [INFO] [stdout] --> common/src/argument_parser.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let pipe = tokio::spawn(async move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Packet` [INFO] [stdout] --> client/src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Builder` [INFO] [stdout] --> server/src/main.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use packet::{ether, ip, Builder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> server/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iface` [INFO] [stdout] --> server/src/asynctap.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let iface = Interface::from_cstr(unsafe { CStr::from_bytes_with_nul_unchecked(b"tap0\0") }) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_iface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> server/src/asynctap.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> server/src/asynctap.rs:70:48 [INFO] [stdout] | [INFO] [stdout] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/asynctap.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection` is never read [INFO] [stdout] --> client/src/quic.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QuicTransport { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 10 | connection: quinn::Connection, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> common/src/tun.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(addr: IpAddr, dest: IpAddr) -> TunInterface { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 6 - async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stdout] 6 + fn connect(connect_config: ClientConnectionConfig) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 7 - async fn close_session(self); [INFO] [stdout] 7 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 17 - async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stdout] 17 + fn serve(listen_addr: SocketAddr) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | async fn accept(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 18 - async fn accept(&self) -> Result; [INFO] [stdout] 18 + fn accept(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | async fn shutdown(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 19 - async fn shutdown(self); [INFO] [stdout] 19 + fn shutdown(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> common/src/tunnel_backend.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | async fn close_session(self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 23 - async fn close_session(self); [INFO] [stdout] 23 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Network` is never constructed [INFO] [stdout] --> server/src/network.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Network {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_bridge` is never used [INFO] [stdout] --> server/src/network.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Network { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 4 | pub fn new_bridge() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.84s [INFO] running `Command { std: "docker" "inspect" "53e0ba6177619288b30a12699d485127c4a63af013892052e45391b9915cecd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53e0ba6177619288b30a12699d485127c4a63af013892052e45391b9915cecd5", kill_on_drop: false }` [INFO] [stdout] 53e0ba6177619288b30a12699d485127c4a63af013892052e45391b9915cecd5