[INFO] cloning repository https://github.com/zhxiaogg/stun-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhxiaogg/stun-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Fstun-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Fstun-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ea5c23abb8008389d4a7f4d0e0d6681ac6328cf [INFO] testing zhxiaogg/stun-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Fstun-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhxiaogg/stun-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zhxiaogg/stun-rs [INFO] finished tweaking git repo https://github.com/zhxiaogg/stun-rs [INFO] tweaked toml for git repo https://github.com/zhxiaogg/stun-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/zhxiaogg/stun-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72e1ae1ff8cf27a6a849b0cea818f4bd3a99b7123344d07ae4eff478cf356ca7 [INFO] running `Command { std: "docker" "start" "-a" "72e1ae1ff8cf27a6a849b0cea818f4bd3a99b7123344d07ae4eff478cf356ca7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72e1ae1ff8cf27a6a849b0cea818f4bd3a99b7123344d07ae4eff478cf356ca7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72e1ae1ff8cf27a6a849b0cea818f4bd3a99b7123344d07ae4eff478cf356ca7", kill_on_drop: false }` [INFO] [stdout] 72e1ae1ff8cf27a6a849b0cea818f4bd3a99b7123344d07ae4eff478cf356ca7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd4621ae1fd057e4f5bbb87c71f561d9de0d8d9ffb4384b6ef63b3312dd04136 [INFO] running `Command { std: "docker" "start" "-a" "fd4621ae1fd057e4f5bbb87c71f561d9de0d8d9ffb4384b6ef63b3312dd04136", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling futures-sink v0.3.5 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling arc-swap v0.4.6 [INFO] [stderr] Compiling pin-project-lite v0.1.6 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling pin-project-internal v0.4.18 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling pin-project v0.4.18 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling stun-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/codec/attributes.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | if (padding != 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (padding != 4) { [INFO] [stdout] 114 + if padding != 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | use bytes::{Buf, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `decode_attribute`, `encode_attribute` [INFO] [stdout] --> src/codec/attributes.rs:348:36 [INFO] [stdout] | [INFO] [stdout] 348 | use crate::codec::attributes::{decode_attribute, encode_attribute}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::messages::Attribute` [INFO] [stdout] --> src/codec/attributes.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | use crate::messages::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `BytesMut` [INFO] [stdout] --> src/codec/decoder.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | use bytes::{Buf, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decoder`, `Encoder` [INFO] [stdout] --> src/codec/decoder.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::codec::{Decoder, Encoder}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::messages::*` [INFO] [stdout] --> src/codec/decoder.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | use crate::messages::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("Should never be here!".to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("{}", "Should never be here!".to_owned()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 341 - v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] 341 + v => panic!("Should never be here!, {:#?}", v), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/messages/message_method.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | panic!(format!("invalid method value: {}", value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 11 - panic!(format!("invalid method value: {}", value)) [INFO] [stdout] 11 + panic!("invalid method value: {}", value) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::write_bytes` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::write_bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/main.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::sink::SinkExt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::sink::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `self` [INFO] [stdout] --> src/main.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::Error` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stun_rs::codec::error::CodecError` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use stun_rs::codec::error::CodecError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 91 | / loop { [INFO] [stdout] 92 | | let mut buf = [0u8; 1024]; [INFO] [stdout] 93 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stdout] 94 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stdout] 95 | | let message = stun_decoder.decode(&mut bytes).unwrap(); [INFO] [stdout] 96 | | println!("receive from {}, message: {:?}", address, message); [INFO] [stdout] 97 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 98 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 105 | / loop { [INFO] [stdout] 106 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stdout] 107 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stdout] 108 | | let message = stun_decoder.decode(&mut bytes)?; [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 119 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let size = stun_encoder.encode(&msg, &mut bytes_mut); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_recv` [INFO] [stdout] --> src/main.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stun_encoder` [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let stun_encoder = Encoder::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stun_encoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_recv` [INFO] [stdout] --> src/main.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.34s [INFO] running `Command { std: "docker" "inspect" "fd4621ae1fd057e4f5bbb87c71f561d9de0d8d9ffb4384b6ef63b3312dd04136", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd4621ae1fd057e4f5bbb87c71f561d9de0d8d9ffb4384b6ef63b3312dd04136", kill_on_drop: false }` [INFO] [stdout] fd4621ae1fd057e4f5bbb87c71f561d9de0d8d9ffb4384b6ef63b3312dd04136 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b20a72b9ecfc49a87b9648707845720b682882fff9d335b0b8bd06cd2d6c037 [INFO] running `Command { std: "docker" "start" "-a" "6b20a72b9ecfc49a87b9648707845720b682882fff9d335b0b8bd06cd2d6c037", kill_on_drop: false }` [INFO] [stderr] Compiling stun-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/codec/attributes.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | if (padding != 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (padding != 4) { [INFO] [stdout] 114 + if padding != 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:346:17 [INFO] [stdout] | [INFO] [stdout] 346 | use bytes::{Buf, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `decode_attribute`, `encode_attribute` [INFO] [stdout] --> src/codec/attributes.rs:348:36 [INFO] [stdout] | [INFO] [stdout] 348 | use crate::codec::attributes::{decode_attribute, encode_attribute}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::messages::Attribute` [INFO] [stdout] --> src/codec/attributes.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | use crate::messages::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `BytesMut` [INFO] [stdout] --> src/codec/decoder.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | use bytes::{Buf, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decoder`, `Encoder` [INFO] [stdout] --> src/codec/decoder.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::codec::{Decoder, Encoder}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::messages::*` [INFO] [stdout] --> src/codec/decoder.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | use crate::messages::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("Should never be here!".to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("{}", "Should never be here!".to_owned()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 341 - v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] 341 + v => panic!("Should never be here!, {:#?}", v), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/messages/message_method.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | panic!(format!("invalid method value: {}", value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 11 - panic!(format!("invalid method value: {}", value)) [INFO] [stdout] 11 + panic!("invalid method value: {}", value) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/codec/attributes.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | if (padding != 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (padding != 4) { [INFO] [stdout] 114 + if padding != 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::write_bytes` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::write_bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufMut` [INFO] [stdout] --> src/main.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::sink::SinkExt` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::sink::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `self` [INFO] [stdout] --> src/main.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::Error` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude::*` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stun_rs::codec::error::CodecError` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use stun_rs::codec::error::CodecError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 91 | / loop { [INFO] [stdout] 92 | | let mut buf = [0u8; 1024]; [INFO] [stdout] 93 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stdout] 94 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stdout] 95 | | let message = stun_decoder.decode(&mut bytes).unwrap(); [INFO] [stdout] 96 | | println!("receive from {}, message: {:?}", address, message); [INFO] [stdout] 97 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 98 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 105 | / loop { [INFO] [stdout] 106 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stdout] 107 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stdout] 108 | | let message = stun_decoder.decode(&mut bytes)?; [INFO] [stdout] ... | [INFO] [stdout] 117 | | } [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 119 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let size = stun_encoder.encode(&msg, &mut bytes_mut); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_recv` [INFO] [stdout] --> src/main.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stun_encoder` [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let stun_encoder = Encoder::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stun_encoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_recv` [INFO] [stdout] --> src/main.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("Should never be here!".to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 254 | _ => panic!("{}", "Should never be here!".to_owned()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/codec/attributes.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 341 - v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stdout] 341 + v => panic!("Should never be here!, {:#?}", v), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/messages/message_method.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | panic!(format!("invalid method value: {}", value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 11 - panic!(format!("invalid method value: {}", value)) [INFO] [stdout] 11 + panic!("invalid method value: {}", value) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.66s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/stun_rs-ff751fbaf5c8128a) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/stun_rs-480288852a321429) [INFO] running `Command { std: "docker" "inspect" "6b20a72b9ecfc49a87b9648707845720b682882fff9d335b0b8bd06cd2d6c037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b20a72b9ecfc49a87b9648707845720b682882fff9d335b0b8bd06cd2d6c037", kill_on_drop: false }` [INFO] [stdout] 6b20a72b9ecfc49a87b9648707845720b682882fff9d335b0b8bd06cd2d6c037 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d426ba5997820eb36e530770ad463d69def512d8f49bb600820c0e0ebd69add8 [INFO] running `Command { std: "docker" "start" "-a" "d426ba5997820eb36e530770ad463d69def512d8f49bb600820c0e0ebd69add8", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/codec/attributes.rs:114:16 [INFO] [stderr] | [INFO] [stderr] 114 | if (padding != 4) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 114 - if (padding != 4) { [INFO] [stderr] 114 + if padding != 4 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Buf`, `BytesMut` [INFO] [stderr] --> src/codec/attributes.rs:346:17 [INFO] [stderr] | [INFO] [stderr] 346 | use bytes::{Buf, BytesMut}; [INFO] [stderr] | ^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `decode_attribute`, `encode_attribute` [INFO] [stderr] --> src/codec/attributes.rs:348:36 [INFO] [stderr] | [INFO] [stderr] 348 | use crate::codec::attributes::{decode_attribute, encode_attribute}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::messages::Attribute` [INFO] [stderr] --> src/codec/attributes.rs:349:9 [INFO] [stderr] | [INFO] [stderr] 349 | use crate::messages::Attribute; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Buf`, `BytesMut` [INFO] [stderr] --> src/codec/decoder.rs:82:17 [INFO] [stderr] | [INFO] [stderr] 82 | use bytes::{Buf, BytesMut}; [INFO] [stderr] | ^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Decoder`, `Encoder` [INFO] [stderr] --> src/codec/decoder.rs:84:24 [INFO] [stderr] | [INFO] [stderr] 84 | use crate::codec::{Decoder, Encoder}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::messages::*` [INFO] [stderr] --> src/codec/decoder.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | use crate::messages::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/codec/attributes.rs:254:21 [INFO] [stderr] | [INFO] [stderr] 254 | _ => panic!("Should never be here!".to_owned()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 254 | _ => panic!("{}", "Should never be here!".to_owned()), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/codec/attributes.rs:341:21 [INFO] [stderr] | [INFO] [stderr] 341 | v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 341 - v => panic!(format!("Should never be here!, {:#?}", v)), [INFO] [stderr] 341 + v => panic!("Should never be here!, {:#?}", v), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/messages/message_method.rs:11:20 [INFO] [stderr] | [INFO] [stderr] 11 | panic!(format!("invalid method value: {}", value)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 11 - panic!(format!("invalid method value: {}", value)) [INFO] [stderr] 11 + panic!("invalid method value: {}", value) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `stun-rs` (lib) generated 10 warnings [INFO] [stderr] warning: `stun-rs` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: unused import: `std::intrinsics::write_bytes` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::intrinsics::write_bytes; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::slice::Iter` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::slice::Iter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::thread::sleep` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::thread::sleep; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BufMut` [INFO] [stderr] --> src/main.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | use bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::sink::SinkExt` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use futures::sink::SinkExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `StreamExt`, `self` [INFO] [stderr] --> src/main.rs:10:23 [INFO] [stderr] | [INFO] [stderr] 10 | use futures::stream::{self, StreamExt}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use tokio::io::AsyncWriteExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::io::Error` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use tokio::io::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::prelude::*` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use tokio::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `stun_rs::codec::error::CodecError` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use stun_rs::codec::error::CodecError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 91 | / loop { [INFO] [stderr] 92 | | let mut buf = [0u8; 1024]; [INFO] [stderr] 93 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stderr] 94 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stderr] 95 | | let message = stun_decoder.decode(&mut bytes).unwrap(); [INFO] [stderr] 96 | | println!("receive from {}, message: {:?}", address, message); [INFO] [stderr] 97 | | } [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 98 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 105 | / loop { [INFO] [stderr] 106 | | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stderr] 107 | | let mut bytes = Bytes::copy_from_slice(&buf); [INFO] [stderr] 108 | | let message = stun_decoder.decode(&mut bytes)?; [INFO] [stderr] ... | [INFO] [stderr] 117 | | } [INFO] [stderr] 118 | | } [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 119 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> src/main.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | let size = stun_encoder.encode(&msg, &mut bytes_mut); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bytes_recv` [INFO] [stderr] --> src/main.rs:93:14 [INFO] [stderr] | [INFO] [stderr] 93 | let (bytes_recv, address) = socket.recv_from(&mut buf).await.unwrap(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stun_encoder` [INFO] [stderr] --> src/main.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | let stun_encoder = Encoder::new(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stun_encoder` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bytes_recv` [INFO] [stderr] --> src/main.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | let (bytes_recv, address) = socket.recv_from(&mut buf).await?; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_recv` [INFO] [stderr] [INFO] [stderr] warning: `stun-rs` (bin "stun-rs" test) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/stun_rs-ff751fbaf5c8128a) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test codec::attributes::test::test_encode_decode_ipv4_mapped_address ... ok [INFO] [stdout] test codec::attributes::test::test_encode_decode_ipv4_xor_mapped_address ... ok [INFO] [stdout] test codec::attributes::test::test_encode_decode_ipv6_mapped_address ... ok [INFO] [stdout] test codec::attributes::test::test_encode_decode_software ... ok [INFO] [stdout] test codec::attributes::test::test_encode_decode_ipv6_xor_mapped_address ... ok [INFO] [stdout] test codec::decoder::test::test_encode_decode_message ... ok [INFO] [stdout] test codec::decoder::test::test_encode_decode_message_with_multiple_attributes ... ok [INFO] [stdout] test messages::message_class::test::can_deserialize_message_class_correctly ... ok [INFO] [stdout] test messages::message_method::test::can_deserialize_binding_method ... ok [INFO] [stdout] test messages::transaction_id::test::test_transaction_id_equality_check ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 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/stun_rs-480288852a321429) [INFO] [stderr] Doc-tests stun-rs [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] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> /opt/rustwide/workdir/src/codec/attributes.rs:114:16 [INFO] [stderr] | [INFO] [stderr] 114 | if (padding != 4) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 114 - if (padding != 4) { [INFO] [stderr] 114 + if padding != 4 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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" "d426ba5997820eb36e530770ad463d69def512d8f49bb600820c0e0ebd69add8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d426ba5997820eb36e530770ad463d69def512d8f49bb600820c0e0ebd69add8", kill_on_drop: false }` [INFO] [stdout] d426ba5997820eb36e530770ad463d69def512d8f49bb600820c0e0ebd69add8