[INFO] cloning repository https://github.com/carlolalu/basic-chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/carlolalu/basic-chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlolalu%2Fbasic-chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlolalu%2Fbasic-chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7dc5b2c0bb7da8acaad1506f3465397c56051c52 [INFO] checking carlolalu/basic-chat against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlolalu%2Fbasic-chat" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/carlolalu/basic-chat [INFO] finished tweaking git repo https://github.com/carlolalu/basic-chat [INFO] tweaked toml for git repo https://github.com/carlolalu/basic-chat written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/carlolalu/basic-chat on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 61 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-stream-impl v0.3.6 [INFO] [stderr] Downloaded signal-hook-registry v1.4.6 [INFO] [stderr] Downloaded tokio-test v0.4.4 [INFO] [stderr] Downloaded async-stream v0.3.6 [INFO] [stderr] Downloaded tokio-stream v0.1.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 522e931c312d27b1c24d8b6a6d3da0ca1c4b2ae27390239b35b8629682fad884 [INFO] running `Command { std: "docker" "start" "-a" "522e931c312d27b1c24d8b6a6d3da0ca1c4b2ae27390239b35b8629682fad884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "522e931c312d27b1c24d8b6a6d3da0ca1c4b2ae27390239b35b8629682fad884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "522e931c312d27b1c24d8b6a6d3da0ca1c4b2ae27390239b35b8629682fad884", kill_on_drop: false }` [INFO] [stdout] 522e931c312d27b1c24d8b6a6d3da0ca1c4b2ae27390239b35b8629682fad884 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0d971cd7f740b03da6f9656f59f1d9f4d79956d5979008d3b201a3e2d367344 [INFO] running `Command { std: "docker" "start" "-a" "b0d971cd7f740b03da6f9656f59f1d9f4d79956d5979008d3b201a3e2d367344", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking chat_server_tokio v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_vec` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncWriteExt`, `AsyncWrite`, `TcpListener`, `TcpStream`, `self`, and `signal` [INFO] [stdout] --> src/lib.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{self, AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 10 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 11 | signal, sync, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::CancellationToken` and `task::TaskTracker` [INFO] [stdout] --> src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_util::{sync::CancellationToken, task::TaskTracker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_vec` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncWriteExt`, `AsyncWrite`, `TcpListener`, `TcpStream`, `self`, and `signal` [INFO] [stdout] --> src/lib.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{self, AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 10 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 11 | signal, sync, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::CancellationToken` and `task::TaskTracker` [INFO] [stdout] --> src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_util::{sync::CancellationToken, task::TaskTracker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `INIT_DELMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:211:41 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `INIT_DELMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 211 | let init_delimiter: u8 = TcpPakket::INIT_DELMITER; [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `INIT_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 211 | let init_delimiter: u8 = TcpPakket::INIT_DELIMITER; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chat_server_tokio` (lib) due to 12 previous errors; 5 warnings emitted [INFO] [stdout] error[E0599]: no associated item named `END_DELMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:212:40 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `END_DELMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 212 | let end_delimiter: u8 = TcpPakket::END_DELMITER; [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `END_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 212 | let end_delimiter: u8 = TcpPakket::END_DELIMITER; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no associated item named `INIT_DELMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:211:41 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `INIT_DELMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 211 | let init_delimiter: u8 = TcpPakket::INIT_DELMITER; [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `INIT_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 211 | let init_delimiter: u8 = TcpPakket::INIT_DELIMITER; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `END_DELMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:212:40 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `END_DELMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 212 | let end_delimiter: u8 = TcpPakket::END_DELMITER; [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `END_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 212 | let end_delimiter: u8 = TcpPakket::END_DELIMITER; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let first_msg = if first_frag.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `bool`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let first_msg = if first_frag.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `bool`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:243:133 [INFO] [stdout] | [INFO] [stdout] 243 | ... let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.into_vec())?); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 243 - let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.into_vec())?); [INFO] [stdout] 243 + let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.to_vec())?); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:243:133 [INFO] [stdout] | [INFO] [stdout] 243 | ... let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.into_vec())?); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 243 - let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.into_vec())?); [INFO] [stdout] 243 + let first_pakked = format!("{}{}", String::from_utf8(previous_fragment.to_vec())?, String::from_utf8(first_frag.to_vec())?); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:248:69 [INFO] [stdout] | [INFO] [stdout] 248 | let first_pakked = String::from_utf8(first_frag.into_vec())?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 248 - let first_pakked = String::from_utf8(first_frag.into_vec())?; [INFO] [stdout] 248 + let first_pakked = String::from_utf8(first_frag.to_vec())?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:248:69 [INFO] [stdout] | [INFO] [stdout] 248 | let first_pakked = String::from_utf8(first_frag.into_vec())?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 248 - let first_pakked = String::from_utf8(first_frag.into_vec())?; [INFO] [stdout] 248 + let first_pakked = String::from_utf8(first_frag.to_vec())?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:267:62 [INFO] [stdout] | [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 267 - let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] 267 + let pakked = String::from_utf8(msg_bytes.to_vec()?)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/lib.rs:267:62 [INFO] [stdout] | [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 267 - let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] 267 + let pakked = String::from_utf8(msg_bytes.to_vec()?)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:267:74 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:268:64 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] 268 | let pakket = TcpPakket::new_pakked(&pakked)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:267:74 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:269:60 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 269 | messages.push(Message::try_from(pakket)?); [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: there are too many leading `super` keywords [INFO] [stdout] --> src/lib.rs:274:44 [INFO] [stdout] | [INFO] [stdout] 274 | Some(&byte) if byte == super::end_delimiter => { [INFO] [stdout] | ^^^^^ there are too many leading `super` keywords [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:275:56 [INFO] [stdout] | [INFO] [stdout] 275 | let pakked = String::from_utf8(last_frag.to_vec()?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:268:64 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 267 | let pakked = String::from_utf8(msg_bytes.into_vec()?)?; [INFO] [stdout] 268 | let pakket = TcpPakket::new_pakked(&pakked)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:269:60 [INFO] [stdout] | [INFO] [stdout] 266 | let _ = central_frags.iter().map(|&msg_bytes| { [INFO] [stdout] | ------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 269 | messages.push(Message::try_from(pakket)?); [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: there are too many leading `super` keywords [INFO] [stdout] --> src/lib.rs:274:44 [INFO] [stdout] | [INFO] [stdout] 274 | Some(&byte) if byte == super::end_delimiter => { [INFO] [stdout] | ^^^^^ there are too many leading `super` keywords [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:275:56 [INFO] [stdout] | [INFO] [stdout] 275 | let pakked = String::from_utf8(last_frag.to_vec()?)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Chars<'a>` in the current scope [INFO] [stdout] --> src/lib.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | ... if pakket_str.chars().first() != Some(TcpPakket::INIT_DELIMITER as char) || pakket_str.chars().last() != Some(TcpPakket::END_DELIMI... [INFO] [stdout] | ^^^^^ method not found in `Chars<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Chars<'a>` in the current scope [INFO] [stdout] --> src/lib.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | ... if pakket_str.chars().first() != Some(TcpPakket::INIT_DELIMITER as char) || pakket_str.chars().last() != Some(TcpPakket::END_DELIMI... [INFO] [stdout] | ^^^^^ method not found in `Chars<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:357:24 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 357 | TcpPakket::new(r#"|{"username":"carlo","content":"farabutto!"}|"#).unwrap(), [INFO] [stdout] | ^^^ function or associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `TcpPakket` consider using one of the following associated functions: [INFO] [stdout] TcpPakket::new_to_pak [INFO] [stdout] TcpPakket::new_pakked [INFO] [stdout] --> src/lib.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_to_pak(string: &str) -> TcpPakket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn new_pakked(pakket_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `parking_lot_core::thread_parker::ThreadParkerT` [INFO] [stdout] help: there is a method `ne` with a similar name [INFO] [stdout] | [INFO] [stdout] 357 - TcpPakket::new(r#"|{"username":"carlo","content":"farabutto!"}|"#).unwrap(), [INFO] [stdout] 357 + TcpPakket::ne(r#"|{"username":"carlo","content":"farabutto!"}|"#).unwrap(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:358:29 [INFO] [stdout] | [INFO] [stdout] 358 | TcpPakket::from(msg1) [INFO] [stdout] | --------------- ^^^^ expected `TcpPakket`, found `Message` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/convert/mod.rs:596:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DELIMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:364:28 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `DELIMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 364 | assert!(TcpPakket::DELIMITER.is_ascii()); [INFO] [stdout] | ^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `END_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 364 | assert!(TcpPakket::END_DELIMITER.is_ascii()); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:193:19 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn unpack(mut self) -> String { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_vec` found for reference `&'static [u8; 47]` in the current scope [INFO] [stdout] --> src/lib.rs:369:82 [INFO] [stdout] | [INFO] [stdout] 369 | let sample: Vec = b"|arw||1|13nqwr|f089asdfn||qw94|w0oe||09w84ehg||".into_vec(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 369 - let sample: Vec = b"|arw||1|13nqwr|f089asdfn||qw94|w0oe||09w84ehg||".into_vec(); [INFO] [stdout] 369 + let sample: Vec = b"|arw||1|13nqwr|f089asdfn||qw94|w0oe||09w84ehg||".to_vec(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DELIMITER` found for struct `TcpPakket` in the current scope [INFO] [stdout] --> src/lib.rs:372:47 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TcpPakket(String); [INFO] [stdout] | -------------------- associated item `DELIMITER` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 372 | .split(|&elem| elem == TcpPakket::DELIMITER as u8) [INFO] [stdout] | ^^^^^^^^^ associated item not found in `TcpPakket` [INFO] [stdout] | [INFO] [stdout] help: there is an associated constant `END_DELIMITER` with a similar name [INFO] [stdout] | [INFO] [stdout] 372 | .split(|&elem| elem == TcpPakket::END_DELIMITER as u8) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:193:19 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn unpack(mut self) -> String { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chat_server_tokio` (lib test) due to 17 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b0d971cd7f740b03da6f9656f59f1d9f4d79956d5979008d3b201a3e2d367344", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0d971cd7f740b03da6f9656f59f1d9f4d79956d5979008d3b201a3e2d367344", kill_on_drop: false }` [INFO] [stdout] b0d971cd7f740b03da6f9656f59f1d9f4d79956d5979008d3b201a3e2d367344