[INFO] cloning repository https://github.com/EmbeddedAndMore/Rust_UdsServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EmbeddedAndMore/Rust_UdsServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmbeddedAndMore%2FRust_UdsServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmbeddedAndMore%2FRust_UdsServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f1ecdd8a23c6ddb70f7cc279e23a9941adefe05 [INFO] checking EmbeddedAndMore/Rust_UdsServer/3f1ecdd8a23c6ddb70f7cc279e23a9941adefe05 against 67854e511de21d881bb16426996cd4259d44aa2e for pr-161154 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEmbeddedAndMore%2FRust_UdsServer" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/EmbeddedAndMore/Rust_UdsServer [INFO] finished tweaking git repo https://github.com/EmbeddedAndMore/Rust_UdsServer [INFO] tweaked toml for git repo https://github.com/EmbeddedAndMore/Rust_UdsServer written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EmbeddedAndMore/Rust_UdsServer on toolchain 67854e511de21d881bb16426996cd4259d44aa2e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EmbeddedAndMore/Rust_UdsServer 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" "+67854e511de21d881bb16426996cd4259d44aa2e" "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 syn v2.0.42 [INFO] [stderr] Downloaded tokio v1.35.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9 [INFO] running `Command { std: "docker" "start" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9" "/opt/rustwide/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9" "/opt/rustwide/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling syn v2.0.42 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking uds_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> src/main.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::{TcpListener, TcpStream, UnixListener, UnixStream}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> src/main.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::{TcpListener, TcpStream, UnixListener, UnixStream}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: async block may outlive the current function, but it borrows `client_stream`, which is owned by the current function [INFO] [stdout] --> src/main.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async { [INFO] [stdout] | ^^^^^ may outlive borrowed value `client_stream` [INFO] [stdout] ... [INFO] [stdout] 19 | client_stream = Some(stream); [INFO] [stdout] | ------------- `client_stream` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: async blocks are not executed immediately and must either take a reference or ownership of outside variables they use [INFO] [stdout] help: to force the async block to take ownership of `client_stream` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async move { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `stream` [INFO] [stdout] --> src/main.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 18 | let (stream, addr) = listener.accept().await.unwrap(); [INFO] [stdout] | ------ move occurs because `stream` has type `tokio::net::TcpStream`, which does not implement the `Copy` trait [INFO] [stdout] 19 | client_stream = Some(stream); [INFO] [stdout] | ------ value moved here [INFO] [stdout] ... [INFO] [stdout] 22 | println!("the stream fd is: {}", stream.as_raw_fd()); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (uds_stream, addr) = uds_listener.accept().await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ready` [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let ready = uds_stream.ready(Interest::READABLE | Interest::WRITABLE).await.unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ready` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `uds_server` (bin "uds_server" test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0373]: async block may outlive the current function, but it borrows `client_stream`, which is owned by the current function [INFO] [stdout] --> src/main.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async { [INFO] [stdout] | ^^^^^ may outlive borrowed value `client_stream` [INFO] [stdout] ... [INFO] [stdout] 19 | client_stream = Some(stream); [INFO] [stdout] | ------------- `client_stream` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: async blocks are not executed immediately and must either take a reference or ownership of outside variables they use [INFO] [stdout] help: to force the async block to take ownership of `client_stream` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 13 | tokio::spawn(async move { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `stream` [INFO] [stdout] --> src/main.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 18 | let (stream, addr) = listener.accept().await.unwrap(); [INFO] [stdout] | ------ move occurs because `stream` has type `tokio::net::TcpStream`, which does not implement the `Copy` trait [INFO] [stdout] 19 | client_stream = Some(stream); [INFO] [stdout] | ------ value moved here [INFO] [stdout] ... [INFO] [stdout] 22 | println!("the stream fd is: {}", stream.as_raw_fd()); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let (uds_stream, addr) = uds_listener.accept().await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ready` [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let ready = uds_stream.ready(Interest::READABLE | Interest::WRITABLE).await.unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ready` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `uds_server` (bin "uds_server") due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9", kill_on_drop: false }` [INFO] [stdout] a332549177cd64355dd7f5d4ca2f1f06bc9facc36cf3a0e3e30892d92c72b1a9