[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] checking zhxiaogg/stun-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhxiaogg%2Fstun-rs" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhxiaogg/stun-rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-58/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pin-project-lite v0.1.6 [INFO] [stderr] Downloaded pin-project-internal v0.4.18 [INFO] [stderr] Downloaded pin-project v0.4.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1d9910f862e81028687c044e4e685a8bbf8bbf65a4fbd983f0ba4b51d49c9c1 [INFO] running `Command { std: "docker" "start" "-a" "f1d9910f862e81028687c044e4e685a8bbf8bbf65a4fbd983f0ba4b51d49c9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1d9910f862e81028687c044e4e685a8bbf8bbf65a4fbd983f0ba4b51d49c9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1d9910f862e81028687c044e4e685a8bbf8bbf65a4fbd983f0ba4b51d49c9c1", kill_on_drop: false }` [INFO] [stdout] f1d9910f862e81028687c044e4e685a8bbf8bbf65a4fbd983f0ba4b51d49c9c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35087d9e0b732e86ad1371fbb9b3b62d36d0dbc7a45ed879a95659a8b8cb6cf0 [INFO] running `Command { std: "docker" "start" "-a" "35087d9e0b732e86ad1371fbb9b3b62d36d0dbc7a45ed879a95659a8b8cb6cf0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] tokio v0.2.21: winapi [INFO] [stderr] [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking arc-swap v0.4.6 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking pin-project-lite v0.1.6 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking 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] Checking tokio v0.2.21 [INFO] [stderr] Checking pin-project v0.4.18 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking stun-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/messages/message_method.rs (1 fix) [INFO] [stderr] Fixed src/codec/attributes.rs (3 fixes) [INFO] [stderr] Fixed src/codec/attributes.rs (3 fixes) [INFO] [stderr] Fixed src/codec/decoder.rs (3 fixes) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (15 fixes) [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: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: 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.61s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking stun-rs v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageClass` [INFO] [stdout] --> src/codec/decoder.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | message_class: MessageClass::Request, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MessageClass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageMethod` [INFO] [stdout] --> src/codec/decoder.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | message_method: MessageMethod::Binding, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `MessageMethod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageClass` [INFO] [stdout] --> src/codec/decoder.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | message_class: MessageClass::Request, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MessageClass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageMethod` [INFO] [stdout] --> src/codec/decoder.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | message_method: MessageMethod::Binding, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `MessageMethod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:360:27 [INFO] [stdout] | [INFO] [stdout] 360 | let mut buf_mut = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 352 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:381:27 [INFO] [stdout] | [INFO] [stdout] 381 | let mut buf_mut = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 352 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:398:27 [INFO] [stdout] | [INFO] [stdout] 398 | let mut buf_mut = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 352 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | let mut buf_mut = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 352 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/codec/attributes.rs:436:25 [INFO] [stdout] | [INFO] [stdout] 436 | let attribute = Attribute::Software("test:0.1.0".to_owned()); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 352 | use crate::messages::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/attributes.rs:438:29 [INFO] [stdout] | [INFO] [stdout] 438 | let mut bytes_mut = BytesMut::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 352 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encode_attribute` in this scope [INFO] [stdout] --> src/codec/attributes.rs:439:20 [INFO] [stdout] | [INFO] [stdout] 439 | let size = encode_attribute(&attribute, &mut bytes_mut, &transaction_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::attributes::encode_attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_attribute` in this scope [INFO] [stdout] --> src/codec/attributes.rs:442:32 [INFO] [stdout] | [INFO] [stdout] 442 | let decode_attribute = decode_attribute(&mut buf, &transaction_id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 352 | use crate::codec::attributes::decode_attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Message` in this scope [INFO] [stdout] --> src/codec/decoder.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | let message = Message { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TransactionID` [INFO] [stdout] --> src/codec/decoder.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | transaction_id: TransactionID::from(transaction_id_codes), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::TransactionID; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/codec/decoder.rs:94:30 [INFO] [stdout] | [INFO] [stdout] 94 | attributes: vec![Attribute::XorMappedAddress(Address::ipv4([1u8; 4], 8080))], [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Address` [INFO] [stdout] --> src/codec/decoder.rs:94:58 [INFO] [stdout] | [INFO] [stdout] 94 | attributes: vec![Attribute::XorMappedAddress(Address::ipv4([1u8; 4], 8080))], [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/decoder.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let mut bytes_mut = BytesMut::with_capacity(0); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoder` [INFO] [stdout] --> src/codec/decoder.rs:97:20 [INFO] [stdout] | [INFO] [stdout] 97 | let size = Encoder::new().encode(&message, &mut bytes_mut); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::Encoder; [INFO] [stdout] | [INFO] [stdout] 88 | use tokio_util::codec::Encoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decoder` [INFO] [stdout] --> src/codec/decoder.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 101 | let decoded_message = Decoder::new().decode(&mut bytes).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::Decoder; [INFO] [stdout] | [INFO] [stdout] 88 | use tokio_util::codec::Decoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Message` in this scope [INFO] [stdout] --> src/codec/decoder.rs:108:23 [INFO] [stdout] | [INFO] [stdout] 108 | let message = Message { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TransactionID` [INFO] [stdout] --> src/codec/decoder.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | transaction_id: TransactionID::from(transaction_id_codes), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::TransactionID; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/codec/decoder.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | Attribute::Software("stun-rs/client:0.1.0".to_owned()), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/codec/decoder.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Attribute::XorMappedAddress(Address::ipv4([1u8; 4], 8080)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Address` [INFO] [stdout] --> src/codec/decoder.rs:114:45 [INFO] [stdout] | [INFO] [stdout] 114 | Attribute::XorMappedAddress(Address::ipv4([1u8; 4], 8080)), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 88 | use crate::messages::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> src/codec/decoder.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 117 | let mut bytes_mut = BytesMut::with_capacity(0); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use bytes::BytesMut; [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::encoder::BytesMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoder` [INFO] [stdout] --> src/codec/decoder.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | Encoder::new().encode(&message, &mut bytes_mut); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::Encoder; [INFO] [stdout] | [INFO] [stdout] 88 | use tokio_util::codec::Encoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decoder` [INFO] [stdout] --> src/codec/decoder.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | let decoded_message = Decoder::new().decode(&mut bytes).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 88 | use crate::codec::Decoder; [INFO] [stdout] | [INFO] [stdout] 88 | use tokio_util::codec::Decoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `freeze` found for trait object `dyn BufMut` in the current scope [INFO] [stdout] --> src/codec/attributes.rs:363:33 [INFO] [stdout] | [INFO] [stdout] 363 | let mut bytes = buf_mut.freeze(); [INFO] [stdout] | ^^^^^^ method not found in `dyn BufMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `freeze` found for trait object `dyn BufMut` in the current scope [INFO] [stdout] --> src/codec/attributes.rs:384:33 [INFO] [stdout] | [INFO] [stdout] 384 | let mut bytes = buf_mut.freeze(); [INFO] [stdout] | ^^^^^^ method not found in `dyn BufMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `freeze` found for trait object `dyn BufMut` in the current scope [INFO] [stdout] --> src/codec/attributes.rs:405:33 [INFO] [stdout] | [INFO] [stdout] 405 | let mut bytes = buf_mut.freeze(); [INFO] [stdout] | ^^^^^^ method not found in `dyn BufMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `freeze` found for trait object `dyn BufMut` in the current scope [INFO] [stdout] --> src/codec/attributes.rs:429:33 [INFO] [stdout] | [INFO] [stdout] 429 | let mut bytes = buf_mut.freeze(); [INFO] [stdout] | ^^^^^^ method not found in `dyn BufMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [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] [stderr] error: could not compile `stun-rs` due to 32 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "35087d9e0b732e86ad1371fbb9b3b62d36d0dbc7a45ed879a95659a8b8cb6cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35087d9e0b732e86ad1371fbb9b3b62d36d0dbc7a45ed879a95659a8b8cb6cf0", kill_on_drop: false }` [INFO] [stdout] 35087d9e0b732e86ad1371fbb9b3b62d36d0dbc7a45ed879a95659a8b8cb6cf0