[INFO] cloning repository https://github.com/yhnu/tcpdemo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yhnu/tcpdemo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhnu%2Ftcpdemo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhnu%2Ftcpdemo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86bff710aafbed14d2b1a4e6a54fc8965b70c543 [INFO] checking yhnu/tcpdemo against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhnu%2Ftcpdemo" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yhnu/tcpdemo on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yhnu/tcpdemo [INFO] finished tweaking git repo https://github.com/yhnu/tcpdemo [INFO] tweaked toml for git repo https://github.com/yhnu/tcpdemo written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yhnu/tcpdemo 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded prost-types v0.10.0 [INFO] [stderr] Downloaded prost-derive v0.10.0 [INFO] [stderr] Downloaded prost v0.10.0 [INFO] [stderr] Downloaded prost-build v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30363616bfead77f5fca26f40c054cd09d935f0953c214cd96b2d94c1790eed2 [INFO] running `Command { std: "docker" "start" "-a" "30363616bfead77f5fca26f40c054cd09d935f0953c214cd96b2d94c1790eed2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30363616bfead77f5fca26f40c054cd09d935f0953c214cd96b2d94c1790eed2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30363616bfead77f5fca26f40c054cd09d935f0953c214cd96b2d94c1790eed2", kill_on_drop: false }` [INFO] [stdout] 30363616bfead77f5fca26f40c054cd09d935f0953c214cd96b2d94c1790eed2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14d327df00b1e1414b65cecd6c53248564a3bd73f66043518793d02f1ce8ebde [INFO] running `Command { std: "docker" "start" "-a" "14d327df00b1e1414b65cecd6c53248564a3bd73f66043518793d02f1ce8ebde", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling prost-build v0.10.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling prost-derive v0.10.0 [INFO] [stderr] Compiling prost v0.10.0 [INFO] [stderr] Checking prost-types v0.10.0 [INFO] [stderr] Compiling tcpdemo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: use of moved value: `self` [INFO] [stdout] --> src/main.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn start_threads(&mut self, rx :Receiver>) { [INFO] [stdout] | --------- move occurs because `self` has type `&mut MessageStreamConnection`, which does not implement the `Copy` trait [INFO] [stdout] 113 | let stop = self.stop.clone(); [INFO] [stdout] 114 | self.handle = Some(thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^ ------- value moved into closure here [INFO] [stdout] | | [INFO] [stdout] | value used here after move [INFO] [stdout] 115 | // some work here [INFO] [stdout] 116 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 125 | self.conn.send(&len); [INFO] [stdout] | --------- variable moved due to use in closure [INFO] [stdout] | [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 116 ~ let mut value = self.conn.send(&len); [INFO] [stdout] 117 ~ loop { [INFO] [stdout] 118 | if !stop.load(Ordering::SeqCst) { [INFO] [stdout] ... [INFO] [stdout] 125 | let len = len.to_be_bytes(); [INFO] [stdout] 126 ~ value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `self` [INFO] [stdout] --> src/main.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn start_threads(&mut self, rx :Receiver>) { [INFO] [stdout] | --------- move occurs because `self` has type `&mut MessageStreamConnection`, which does not implement the `Copy` trait [INFO] [stdout] 113 | let stop = self.stop.clone(); [INFO] [stdout] 114 | self.handle = Some(thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^ ------- value moved into closure here [INFO] [stdout] | | [INFO] [stdout] | value used here after move [INFO] [stdout] 115 | // some work here [INFO] [stdout] 116 | loop { [INFO] [stdout] | ---- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 125 | self.conn.send(&len); [INFO] [stdout] | --------- variable moved due to use in closure [INFO] [stdout] | [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 116 ~ let mut value = self.conn.send(&len); [INFO] [stdout] 117 ~ loop { [INFO] [stdout] 118 | if !stop.load(Ordering::SeqCst) { [INFO] [stdout] ... [INFO] [stdout] 125 | let len = len.to_be_bytes(); [INFO] [stdout] 126 ~ value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/main.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn start_threads(&mut self, rx :Receiver>) { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] 113 | let stop = self.stop.clone(); [INFO] [stdout] 114 | self.handle = Some(thread::spawn(move || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 115 | | // some work here [INFO] [stdout] 116 | | loop { [INFO] [stdout] 117 | | if !stop.load(Ordering::SeqCst) { [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | })); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/main.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn start_threads(&mut self, rx :Receiver>) { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] 113 | let stop = self.stop.clone(); [INFO] [stdout] 114 | self.handle = Some(thread::spawn(move || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 115 | | // some work here [INFO] [stdout] 116 | | loop { [INFO] [stdout] 117 | | if !stop.load(Ordering::SeqCst) { [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | })); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0521. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0521. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tcpdemo` (bin "tcpdemo") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tcpdemo` (bin "tcpdemo" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "14d327df00b1e1414b65cecd6c53248564a3bd73f66043518793d02f1ce8ebde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14d327df00b1e1414b65cecd6c53248564a3bd73f66043518793d02f1ce8ebde", kill_on_drop: false }` [INFO] [stdout] 14d327df00b1e1414b65cecd6c53248564a3bd73f66043518793d02f1ce8ebde [INFO] checking yhnu/tcpdemo against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhnu%2Ftcpdemo" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yhnu/tcpdemo on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yhnu/tcpdemo [INFO] finished tweaking git repo https://github.com/yhnu/tcpdemo [INFO] tweaked toml for git repo https://github.com/yhnu/tcpdemo written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yhnu/tcpdemo 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 770be521c6036a7419c8f29d5d69e5a03d1d1b9019d42347dd1dd27b61052812 [INFO] running `Command { std: "docker" "start" "-a" "770be521c6036a7419c8f29d5d69e5a03d1d1b9019d42347dd1dd27b61052812", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "770be521c6036a7419c8f29d5d69e5a03d1d1b9019d42347dd1dd27b61052812", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "770be521c6036a7419c8f29d5d69e5a03d1d1b9019d42347dd1dd27b61052812", kill_on_drop: false }` [INFO] [stdout] 770be521c6036a7419c8f29d5d69e5a03d1d1b9019d42347dd1dd27b61052812 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a41ca954a0ff60487b2a0fa877802021873073ceb2faf368d45d92463ad5c44 [INFO] running `Command { std: "docker" "start" "-a" "9a41ca954a0ff60487b2a0fa877802021873073ceb2faf368d45d92463ad5c44", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "9a41ca954a0ff60487b2a0fa877802021873073ceb2faf368d45d92463ad5c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a41ca954a0ff60487b2a0fa877802021873073ceb2faf368d45d92463ad5c44", kill_on_drop: false }` [INFO] [stdout] 9a41ca954a0ff60487b2a0fa877802021873073ceb2faf368d45d92463ad5c44