[INFO] cloning repository https://github.com/oteca58/lyhat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oteca58/lyhat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foteca58%2Flyhat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foteca58%2Flyhat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d51549889ee634ad71c2ddacb3af24384de34604 [INFO] building oteca58/lyhat against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foteca58%2Flyhat" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oteca58/lyhat [INFO] finished tweaking git repo https://github.com/oteca58/lyhat [INFO] tweaked toml for git repo https://github.com/oteca58/lyhat written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oteca58/lyhat on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oteca58/lyhat 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aec6a9a69c6c2f95bb32313ac7d757ad30964cfc322f8d703691987082620d56 [INFO] running `Command { std: "docker" "start" "-a" "aec6a9a69c6c2f95bb32313ac7d757ad30964cfc322f8d703691987082620d56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aec6a9a69c6c2f95bb32313ac7d757ad30964cfc322f8d703691987082620d56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aec6a9a69c6c2f95bb32313ac7d757ad30964cfc322f8d703691987082620d56", kill_on_drop: false }` [INFO] [stdout] aec6a9a69c6c2f95bb32313ac7d757ad30964cfc322f8d703691987082620d56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 413b882c72cc30d5f65c3d0c9e3cd7d9b3d853e438dbd53a34d6b1a329fb6379 [INFO] running `Command { std: "docker" "start" "-a" "413b882c72cc30d5f65c3d0c9e3cd7d9b3d853e438dbd53a34d6b1a329fb6379", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling tui v0.19.0 [INFO] [stderr] Compiling Lyhat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0596]: cannot borrow `app.messages` as mutable, as `app` is not declared as mutable [INFO] [stdout] --> src/main.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | app.messages.push(String::from(received)); [INFO] [stdout] | ^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 182 | fn handle_client(mut stream: TcpStream, mut app: App) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `app` [INFO] [stdout] --> src/main.rs:84:39 [INFO] [stdout] | [INFO] [stdout] 84 | handle_client(stream, app); [INFO] [stdout] | ^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] = note: move occurs because `app` has type `App`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `app` [INFO] [stdout] --> src/main.rs:108:35 [INFO] [stdout] | [INFO] [stdout] 73 | fn run_app(terminal: &mut Terminal, mut app: App) -> io::Result<()> { [INFO] [stdout] | ------- move occurs because `app` has type `App`, which does not implement the `Copy` trait [INFO] [stdout] 74 | //Start thred for listener [INFO] [stdout] 75 | let res_thread = thread::spawn(move || { [INFO] [stdout] | ------- value moved into closure here [INFO] [stdout] ... [INFO] [stdout] 81 | for stream in listener.incoming() { [INFO] [stdout] | --------------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 84 | handle_client(stream, app); [INFO] [stdout] | --- variable moved due to use in closure [INFO] [stdout] ... [INFO] [stdout] 108 | app.messages.push(app.input.drain(..).collect()); [INFO] [stdout] | ^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `handle_client` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:182:46 [INFO] [stdout] | [INFO] [stdout] 182 | fn handle_client(mut stream: TcpStream, app: App) { [INFO] [stdout] | ------------- in this function ^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `App` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | struct App { [INFO] [stdout] | ^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 84 | handle_client(stream, app); [INFO] [stdout] | --- you could clone this value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 81 ~ let mut value = handle_client(stream, app); [INFO] [stdout] 82 ~ for stream in listener.incoming() { [INFO] [stdout] 83 | match stream { [INFO] [stdout] 84 | Ok(stream) => { [INFO] [stdout] 85 ~ value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Lyhat` (bin "Lyhat") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "413b882c72cc30d5f65c3d0c9e3cd7d9b3d853e438dbd53a34d6b1a329fb6379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "413b882c72cc30d5f65c3d0c9e3cd7d9b3d853e438dbd53a34d6b1a329fb6379", kill_on_drop: false }` [INFO] [stdout] 413b882c72cc30d5f65c3d0c9e3cd7d9b3d853e438dbd53a34d6b1a329fb6379