[INFO] cloning repository https://github.com/feraaaxg/brawl_core_29v [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/feraaaxg/brawl_core_29v" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferaaaxg%2Fbrawl_core_29v", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferaaaxg%2Fbrawl_core_29v'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3a8aa71edbc39498d98c8bf4122365e4ecf972c [INFO] checking feraaaxg/brawl_core_29v against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferaaaxg%2Fbrawl_core_29v" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/feraaaxg/brawl_core_29v [INFO] finished tweaking git repo https://github.com/feraaaxg/brawl_core_29v [INFO] tweaked toml for git repo https://github.com/feraaaxg/brawl_core_29v written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/feraaaxg/brawl_core_29v on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/feraaaxg/brawl_core_29v 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb9970747037a2109d4836199ac1ddfcbc2075cd595e6e995ef0210951fd021f [INFO] running `Command { std: "docker" "start" "-a" "eb9970747037a2109d4836199ac1ddfcbc2075cd595e6e995ef0210951fd021f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb9970747037a2109d4836199ac1ddfcbc2075cd595e6e995ef0210951fd021f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb9970747037a2109d4836199ac1ddfcbc2075cd595e6e995ef0210951fd021f", kill_on_drop: false }` [INFO] [stdout] eb9970747037a2109d4836199ac1ddfcbc2075cd595e6e995ef0210951fd021f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04f57a1d24ac47a5fbcad7b91d8ff554a022ce4be4e8ed75b8d82068eb817093 [INFO] running `Command { std: "docker" "start" "-a" "04f57a1d24ac47a5fbcad7b91d8ff554a022ce4be4e8ed75b8d82068eb817093", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking brawl_29v v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::logger` [INFO] [stdout] --> src/networking/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::logger; [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: `BufMut` and `Buf` [INFO] [stdout] --> src/stream/byte_stream.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, BufMut, Buf}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/message/client/titan_login_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/message/client/titan_login_message.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PiranhaMessage` [INFO] [stdout] --> src/message/client/titan_login_message.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message::piranha_message::{Coder, MessageOps, PiranhaMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking::client::ClientConnection` [INFO] [stdout] --> src/message/client/titan_login_message.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::networking::client::ClientConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::logger` [INFO] [stdout] --> src/networking/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::logger; [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: `BufMut` and `Buf` [INFO] [stdout] --> src/stream/byte_stream.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::{BytesMut, BufMut, Buf}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/message/client/titan_login_message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/message/client/titan_login_message.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PiranhaMessage` [INFO] [stdout] --> src/message/client/titan_login_message.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message::piranha_message::{Coder, MessageOps, PiranhaMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::networking::client::ClientConnection` [INFO] [stdout] --> src/message/client/titan_login_message.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::networking::client::ClientConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/networking/client.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut client_guard = client.lock().await; [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: variable does not need to be mutable [INFO] [stdout] --> src/networking/client.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut client_guard = client.lock().await; [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: variable does not need to be mutable [INFO] [stdout] --> src/message/piranha_message.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut client_guard = client.lock().await; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/message/piranha_message.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut client_guard = client.lock().await; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg_version` [INFO] [stdout] --> src/message/message_manager.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let msg_version = reader.get_u16(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msg_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg_version` [INFO] [stdout] --> src/message/message_manager.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let msg_version = reader.get_u16(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msg_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut server = Server::new("46.173.214.121".to_string(), "9339".to_string()).await; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let config = load_config(config_file).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_message_type_name` is never used [INFO] [stdout] --> src/message/piranha_message.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 210 | impl $struct_name { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_message_type_name() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/titan_login_message.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / define_message!( [INFO] [stdout] 8 | | TitanLoginMessage, [INFO] [stdout] 9 | | "TitanLoginMessage", [INFO] [stdout] 10 | | 10101 [INFO] [stdout] 11 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/message/piranha_message.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | client: std::sync::Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/client_hello_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / define_message!( [INFO] [stdout] 6 | | ClientHelloMessage, [INFO] [stdout] | | ------------------ field in this struct [INFO] [stdout] 7 | | "ClientHelloMessage", [INFO] [stdout] 8 | | 10100 [INFO] [stdout] 9 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_message_type_name` is never used [INFO] [stdout] --> src/message/piranha_message.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 210 | impl $struct_name { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_message_type_name() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/client_hello_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / define_message!( [INFO] [stdout] 6 | | ClientHelloMessage, [INFO] [stdout] 7 | | "ClientHelloMessage", [INFO] [stdout] 8 | | 10100 [INFO] [stdout] 9 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/logic/player.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Player { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut server = Server::new("46.173.214.121".to_string(), "9339".to_string()).await; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let config = load_config(config_file).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_message_type_name` is never used [INFO] [stdout] --> src/message/piranha_message.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 210 | impl $struct_name { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_message_type_name() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/titan_login_message.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / define_message!( [INFO] [stdout] 8 | | TitanLoginMessage, [INFO] [stdout] 9 | | "TitanLoginMessage", [INFO] [stdout] 10 | | 10101 [INFO] [stdout] 11 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/message/piranha_message.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | client: std::sync::Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/client_hello_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / define_message!( [INFO] [stdout] 6 | | ClientHelloMessage, [INFO] [stdout] | | ------------------ field in this struct [INFO] [stdout] 7 | | "ClientHelloMessage", [INFO] [stdout] 8 | | 10100 [INFO] [stdout] 9 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> src/message/piranha_message.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | async fn send(&mut self) -> std::io::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] = 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] 111 ~ fn send(&mut self) -> impl std::future::Future> + Send {async { [INFO] [stdout] 112 | let mut header = BytesMut::with_capacity(7); [INFO] [stdout] ... [INFO] [stdout] 128 | socket.write_all(&data).await [INFO] [stdout] 129 ~ } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_message_type_name` is never used [INFO] [stdout] --> src/message/piranha_message.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 210 | impl $struct_name { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_message_type_name() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/message/client/client_hello_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / define_message!( [INFO] [stdout] 6 | | ClientHelloMessage, [INFO] [stdout] 7 | | "ClientHelloMessage", [INFO] [stdout] 8 | | 10100 [INFO] [stdout] 9 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_message` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Player` is never constructed [INFO] [stdout] --> src/logic/player.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Player { [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] --> src/message/piranha_message.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | async fn encode(&mut self) -> &mut 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] 193 - async fn encode(&mut self) -> &mut Self; [INFO] [stdout] 193 + fn encode(&mut 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] --> src/message/piranha_message.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | async fn decode(&mut self) -> &mut 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] 194 - async fn decode(&mut self) -> &mut Self; [INFO] [stdout] 194 + fn decode(&mut 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] --> src/message/piranha_message.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | async fn process(&mut self) -> &mut 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] 195 - async fn process(&mut self) -> &mut Self; [INFO] [stdout] 195 + fn process(&mut 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] --> src/message/piranha_message.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | async fn send(&mut self) -> std::io::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] = 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] 111 ~ fn send(&mut self) -> impl std::future::Future> + Send {async { [INFO] [stdout] 112 | let mut header = BytesMut::with_capacity(7); [INFO] [stdout] ... [INFO] [stdout] 128 | socket.write_all(&data).await [INFO] [stdout] 129 ~ } } [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] --> src/message/piranha_message.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | async fn encode(&mut self) -> &mut 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] 193 - async fn encode(&mut self) -> &mut Self; [INFO] [stdout] 193 + fn encode(&mut 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] --> src/message/piranha_message.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | async fn decode(&mut self) -> &mut 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] 194 - async fn decode(&mut self) -> &mut Self; [INFO] [stdout] 194 + fn decode(&mut 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] --> src/message/piranha_message.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | async fn process(&mut self) -> &mut 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] 195 - async fn process(&mut self) -> &mut Self; [INFO] [stdout] 195 + fn process(&mut self) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.28s [INFO] running `Command { std: "docker" "inspect" "04f57a1d24ac47a5fbcad7b91d8ff554a022ce4be4e8ed75b8d82068eb817093", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04f57a1d24ac47a5fbcad7b91d8ff554a022ce4be4e8ed75b8d82068eb817093", kill_on_drop: false }` [INFO] [stdout] 04f57a1d24ac47a5fbcad7b91d8ff554a022ce4be4e8ed75b8d82068eb817093