[INFO] cloning repository https://github.com/eR3R3/cli-chat-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eR3R3/cli-chat-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeR3R3%2Fcli-chat-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeR3R3%2Fcli-chat-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 671d2eb0af5276564fcc181f194ce0c6a7a1db66 [INFO] checking eR3R3/cli-chat-server against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeR3R3%2Fcli-chat-server" "/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/eR3R3/cli-chat-server [INFO] finished tweaking git repo https://github.com/eR3R3/cli-chat-server [INFO] tweaked toml for git repo https://github.com/eR3R3/cli-chat-server written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/eR3R3/cli-chat-server 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] crate git repo https://github.com/eR3R3/cli-chat-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] 58d0e38a7a2a2a8aaf59ec1892730be75473957cee824ac68e127bebf2de3745 [INFO] running `Command { std: "docker" "start" "-a" "58d0e38a7a2a2a8aaf59ec1892730be75473957cee824ac68e127bebf2de3745", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58d0e38a7a2a2a8aaf59ec1892730be75473957cee824ac68e127bebf2de3745", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58d0e38a7a2a2a8aaf59ec1892730be75473957cee824ac68e127bebf2de3745", kill_on_drop: false }` [INFO] [stdout] 58d0e38a7a2a2a8aaf59ec1892730be75473957cee824ac68e127bebf2de3745 [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] a4c92e2bbb51c74a668d5b000518996636d4578398c98ef31ec64912112f6854 [INFO] running `Command { std: "docker" "start" "-a" "a4c92e2bbb51c74a668d5b000518996636d4578398c98ef31ec64912112f6854", kill_on_drop: false }` [INFO] [stderr] Checking cli_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] 38 | Err(0) => break, [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] 38 | Err(0) => break, [INFO] [stdout] 39 | Ok(_) => { [INFO] [stdout] | ^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] ... [INFO] [stdout] 48 | Err(e) if e.kind() == &std::io::ErrorKind::WouldBlock => { [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] ... [INFO] [stdout] 53 | Err(_) => { [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 27 | / if let Ok((mut stream, addr)) = server.accept() { [INFO] [stdout] 28 | | //add the stream into the clients and store it [INFO] [stdout] 29 | | clients.lock().unwrap().push(stream.try_clone().expect("Failed to clone client")); [INFO] [stdout] ... | [INFO] [stdout] 32 | |/ thread::spawn(move || { [INFO] [stdout] 33 | || loop { [INFO] [stdout] 34 | || //create a buffer to read the data [INFO] [stdout] 35 | || let mut buff: Vec = vec![0; MSG_SIZE]; [INFO] [stdout] ... || [INFO] [stdout] 59 | || }) [INFO] [stdout] | ||______________^ expected `()`, found `JoinHandle<()>` [INFO] [stdout] 60 | | } [INFO] [stdout] | |__________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `JoinHandle<()>` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 59 | }); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cli_chat` (bin "cli_chat") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] 38 | Err(0) => break, [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] 38 | Err(0) => break, [INFO] [stdout] 39 | Ok(_) => { [INFO] [stdout] | ^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] ... [INFO] [stdout] 48 | Err(e) if e.kind() == &std::io::ErrorKind::WouldBlock => { [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 37 | match stream.read_exact(&mut buff).expect("Failed to read from client") { [INFO] [stdout] | ----------------------------------------------------------------- this expression has type `()` [INFO] [stdout] ... [INFO] [stdout] 53 | Err(_) => { [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 27 | / if let Ok((mut stream, addr)) = server.accept() { [INFO] [stdout] 28 | | //add the stream into the clients and store it [INFO] [stdout] 29 | | clients.lock().unwrap().push(stream.try_clone().expect("Failed to clone client")); [INFO] [stdout] ... | [INFO] [stdout] 32 | |/ thread::spawn(move || { [INFO] [stdout] 33 | || loop { [INFO] [stdout] 34 | || //create a buffer to read the data [INFO] [stdout] 35 | || let mut buff: Vec = vec![0; MSG_SIZE]; [INFO] [stdout] ... || [INFO] [stdout] 59 | || }) [INFO] [stdout] | ||______________^ expected `()`, found `JoinHandle<()>` [INFO] [stdout] 60 | | } [INFO] [stdout] | |__________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `JoinHandle<()>` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 59 | }); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cli_chat` (bin "cli_chat" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "a4c92e2bbb51c74a668d5b000518996636d4578398c98ef31ec64912112f6854", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c92e2bbb51c74a668d5b000518996636d4578398c98ef31ec64912112f6854", kill_on_drop: false }` [INFO] [stdout] a4c92e2bbb51c74a668d5b000518996636d4578398c98ef31ec64912112f6854