[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] testing naotiki/tun-playground against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaotiki%2Ftun-playground" "/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/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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/naotiki/tun-playground on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c2rust-bitfields v0.19.0 [INFO] [stderr] Downloaded ulid v1.1.4 [INFO] [stderr] Downloaded tun v0.7.10 [INFO] [stderr] Downloaded c2rust-bitfields-derive v0.19.0 [INFO] [stderr] Downloaded rustc-hash v2.1.0 [INFO] [stderr] Downloaded netns-rs v0.1.0 [INFO] [stderr] Downloaded serde_bytes v0.11.15 [INFO] [stderr] Downloaded pem v3.0.4 [INFO] [stderr] Downloaded rustls-platform-verifier-android v0.1.1 [INFO] [stderr] Downloaded winreg v0.55.0 [INFO] [stderr] Downloaded async-trait v0.1.85 [INFO] [stderr] Downloaded clap v4.5.26 [INFO] [stderr] Downloaded jni v0.19.0 [INFO] [stderr] Downloaded tappers v0.4.2 [INFO] [stderr] Downloaded cc v1.2.10 [INFO] [stderr] Downloaded tokio-util v0.7.13 [INFO] [stderr] Downloaded clap_builder v4.5.26 [INFO] [stderr] Downloaded time v0.3.37 [INFO] [stderr] Downloaded bytes v1.9.0 [INFO] [stderr] Downloaded webpki-root-certs v0.26.7 [INFO] [stderr] Downloaded quinn-proto v0.11.9 [INFO] [stderr] Downloaded quinn v0.11.6 [INFO] [stderr] Downloaded nix v0.23.2 [INFO] [stderr] Downloaded syn v2.0.96 [INFO] [stderr] Downloaded rcgen v0.13.2 [INFO] [stderr] Downloaded rustls-pki-types v1.10.1 [INFO] [stderr] Downloaded half v1.8.3 [INFO] [stderr] Downloaded rustls v0.23.21 [INFO] [stderr] Downloaded serde_cbor v0.11.2 [INFO] [stderr] Downloaded rustls-platform-verifier v0.4.0 [INFO] [stderr] Downloaded yasna v0.5.2 [INFO] [stderr] Downloaded socket2 v0.5.8 [INFO] [stderr] Downloaded clap_derive v4.5.24 [INFO] [stderr] Downloaded packet v0.1.4 [INFO] [stderr] Downloaded quinn-udp v0.5.9 [INFO] [stderr] Downloaded libloading v0.8.6 [INFO] [stderr] Downloaded event-listener-strategy v0.5.3 [INFO] [stderr] Downloaded wintun-bindings v0.7.29 [INFO] [stderr] Downloaded tokio v1.43.0 [INFO] [stderr] Downloaded hwaddr v0.1.7 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e2e4cdd98409c44ec3acb1a93814fdb1299cc7acadcae7ad9169ef8c1863026 [INFO] running `Command { std: "docker" "start" "-a" "9e2e4cdd98409c44ec3acb1a93814fdb1299cc7acadcae7ad9169ef8c1863026", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e2e4cdd98409c44ec3acb1a93814fdb1299cc7acadcae7ad9169ef8c1863026", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e2e4cdd98409c44ec3acb1a93814fdb1299cc7acadcae7ad9169ef8c1863026", kill_on_drop: false }` [INFO] [stdout] 9e2e4cdd98409c44ec3acb1a93814fdb1299cc7acadcae7ad9169ef8c1863026 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ecad3c5b856f893394b991a9c15b65272db6171103a76c1308ee7d401a54d84 [INFO] running `Command { std: "docker" "start" "-a" "8ecad3c5b856f893394b991a9c15b65272db6171103a76c1308ee7d401a54d84", 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 unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling rustls v0.23.21 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling quinn-udp v0.5.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling hwaddr v0.1.7 [INFO] [stderr] Compiling clap_builder v4.5.26 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling ring v0.17.8 [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 parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling rustc-hash v2.1.0 [INFO] [stderr] Compiling windows-targets v0.52.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling windows-sys v0.59.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling yasna v0.5.2 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rcgen v0.13.2 [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 tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling clap_derive v4.5.24 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling packet v0.1.4 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling clap v4.5.26 [INFO] [stderr] Compiling ulid v1.1.4 [INFO] [stderr] Compiling netns-rs v0.1.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rustls-platform-verifier v0.4.0 [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: `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] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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 client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [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 40s [INFO] running `Command { std: "docker" "inspect" "8ecad3c5b856f893394b991a9c15b65272db6171103a76c1308ee7d401a54d84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ecad3c5b856f893394b991a9c15b65272db6171103a76c1308ee7d401a54d84", kill_on_drop: false }` [INFO] [stdout] 8ecad3c5b856f893394b991a9c15b65272db6171103a76c1308ee7d401a54d84 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6677aad64eb642939a5f00875c7c887999dceefdc537c0dceeaca4805b39fdf8 [INFO] running `Command { std: "docker" "start" "-a" "6677aad64eb642939a5f00875c7c887999dceefdc537c0dceeaca4805b39fdf8", 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: `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] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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 client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [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] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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 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: `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: `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: 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: 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 3.13s [INFO] running `Command { std: "docker" "inspect" "6677aad64eb642939a5f00875c7c887999dceefdc537c0dceeaca4805b39fdf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6677aad64eb642939a5f00875c7c887999dceefdc537c0dceeaca4805b39fdf8", kill_on_drop: false }` [INFO] [stdout] 6677aad64eb642939a5f00875c7c887999dceefdc537c0dceeaca4805b39fdf8 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9e8254fe06ba2bf9b3a19934ce72ceb6edc5786cc12fb8f3920af0c7b0c33dd1 [INFO] running `Command { std: "docker" "start" "-a" "9e8254fe06ba2bf9b3a19934ce72ceb6edc5786cc12fb8f3920af0c7b0c33dd1", 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] warning: unused import: `IpAddr` [INFO] [stderr] --> common/src/protocol.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | use std::net::{IpAddr, SocketAddr}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_util::codec::Framed` [INFO] [stderr] --> common/src/tun.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use tokio_util::codec::Framed; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TunPacketCodec` [INFO] [stderr] --> common/src/tun.rs:3:39 [INFO] [stderr] | [INFO] [stderr] 3 | use tun::{AsyncDevice, Configuration, TunPacketCodec}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stderr] --> common/src/tunnel_backend.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use tokio::io::{AsyncRead, AsyncWrite}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pipe` [INFO] [stderr] --> common/src/argument_parser.rs:54:21 [INFO] [stderr] | [INFO] [stderr] 54 | let pipe = tokio::spawn(async move { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> common/src/argument_parser.rs:80:21 [INFO] [stderr] | [INFO] [stderr] 80 | let addr = server_addrs.to_address().unwrap(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pipe` [INFO] [stderr] --> common/src/argument_parser.rs:92:21 [INFO] [stderr] | [INFO] [stderr] 92 | let pipe = tokio::spawn(async move { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pipe` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dest` [INFO] [stderr] --> common/src/tun.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(addr: IpAddr, dest: IpAddr) -> TunInterface { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stderr] 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] [stderr] | [INFO] [stderr] 6 - async fn connect(connect_config: ClientConnectionConfig) -> Self; [INFO] [stderr] 6 + fn connect(connect_config: ClientConnectionConfig) -> impl std::future::Future + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | async fn close_session(self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 7 - async fn close_session(self); [INFO] [stderr] 7 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 17 - async fn serve(listen_addr: SocketAddr) -> Self; [INFO] [stderr] 17 + fn serve(listen_addr: SocketAddr) -> impl std::future::Future + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | async fn accept(&self) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 18 - async fn accept(&self) -> Result; [INFO] [stderr] 18 + fn accept(&self) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | async fn shutdown(self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 19 - async fn shutdown(self); [INFO] [stderr] 19 + fn shutdown(self) -> impl std::future::Future + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> common/src/tunnel_backend.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | async fn close_session(self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] 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] [stderr] | [INFO] [stderr] 23 - async fn close_session(self); [INFO] [stderr] 23 + fn close_session(self) -> impl std::future::Future + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `common` (lib) generated 14 warnings (run `cargo fix --lib -p common` to apply 4 suggestions) [INFO] [stderr] warning: unused import: `AsPacket` [INFO] [stderr] --> client/src/main.rs:10:18 [INFO] [stderr] | [INFO] [stderr] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> client/src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stderr] --> client/src/main.rs:16:17 [INFO] [stderr] | [INFO] [stderr] 16 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_util::bytes::BytesMut` [INFO] [stderr] --> client/src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use tokio_util::bytes::BytesMut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Decoder` and `Encoder` [INFO] [stderr] --> client/src/main.rs:18:25 [INFO] [stderr] | [INFO] [stderr] 18 | use tokio_util::codec::{Decoder, Encoder, FramedRead, FramedWrite}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Packet` [INFO] [stderr] --> client/src/main.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | use packet::{ip, AsPacket, Packet}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `connection` is never read [INFO] [stderr] --> client/src/quic.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct QuicTransport { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 10 | connection: quinn::Connection, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `client` (bin "client" test) generated 7 warnings (run `cargo fix --bin "client" --tests` to apply 5 suggestions) [INFO] [stderr] warning: `common` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] warning: unused import: `crypto::Session` [INFO] [stderr] --> server/src/quic.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use quinn::{crypto::Session, Endpoint, ServerConfig}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt` and `AsyncWriteExt` [INFO] [stderr] --> server/src/tcp.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TcpStream` [INFO] [stderr] --> server/src/tcp.rs:4:31 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `asynctap::AsyncTap` [INFO] [stderr] --> server/src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use asynctap::AsyncTap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ip` [INFO] [stderr] --> server/src/main.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | use packet::{ether, ip, Builder}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_util::io::ReaderStream` [INFO] [stderr] --> server/src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use tokio_util::io::ReaderStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tun::Tun` [INFO] [stderr] --> server/src/main.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use tun::Tun; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> server/src/main.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Builder` [INFO] [stderr] --> server/src/main.rs:12:25 [INFO] [stderr] | [INFO] [stderr] 12 | use packet::{ether, ip, Builder}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stderr] --> server/src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use tokio::io::AsyncWriteExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `iface` [INFO] [stderr] --> server/src/asynctap.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | let iface = Interface::from_cstr(unsafe { CStr::from_bytes_with_nul_unchecked(b"tap0\0") }) [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_iface` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cx` [INFO] [stderr] --> server/src/asynctap.rs:66:41 [INFO] [stderr] | [INFO] [stderr] 66 | fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cx` [INFO] [stderr] --> server/src/asynctap.rs:70:48 [INFO] [stderr] | [INFO] [stderr] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> server/src/asynctap.rs:70:22 [INFO] [stderr] | [INFO] [stderr] 70 | fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Network` is never constructed [INFO] [stderr] --> server/src/network.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Network {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new_bridge` is never used [INFO] [stderr] --> server/src/network.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 3 | impl Network { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 4 | pub fn new_bridge() -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `server` (bin "server" test) generated 16 warnings (run `cargo fix --bin "server" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/client-bf664a7ade1f3194) [INFO] [stdout] test nat::tests::is_in_network ... ok [INFO] [stdout] test nat::tests::test_nat_table_reverse ... ok [INFO] [stdout] test nat::tests::test_nat_table_convert ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/common-438b3ea3eea88066) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/server-cb5c91b5aa634775) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests common [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9e8254fe06ba2bf9b3a19934ce72ceb6edc5786cc12fb8f3920af0c7b0c33dd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e8254fe06ba2bf9b3a19934ce72ceb6edc5786cc12fb8f3920af0c7b0c33dd1", kill_on_drop: false }` [INFO] [stdout] 9e8254fe06ba2bf9b3a19934ce72ceb6edc5786cc12fb8f3920af0c7b0c33dd1