[INFO] cloning repository https://github.com/fjqz177/snake-rs2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fjqz177/snake-rs2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffjqz177%2Fsnake-rs2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffjqz177%2Fsnake-rs2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 40886bc0ba33090db608ac3cb2fd79171dcfee3d [INFO] checking fjqz177/snake-rs2 against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffjqz177%2Fsnake-rs2" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fjqz177/snake-rs2 on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fjqz177/snake-rs2 [INFO] finished tweaking git repo https://github.com/fjqz177/snake-rs2 [INFO] tweaked toml for git repo https://github.com/fjqz177/snake-rs2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fjqz177/snake-rs2 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" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddf4ef33ca4f7256fbe4d218a2c93a9b18dc2bb8ef79ef4af73314aa3b45ce6a [INFO] running `Command { std: "docker" "start" "-a" "ddf4ef33ca4f7256fbe4d218a2c93a9b18dc2bb8ef79ef4af73314aa3b45ce6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddf4ef33ca4f7256fbe4d218a2c93a9b18dc2bb8ef79ef4af73314aa3b45ce6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddf4ef33ca4f7256fbe4d218a2c93a9b18dc2bb8ef79ef4af73314aa3b45ce6a", kill_on_drop: false }` [INFO] [stdout] ddf4ef33ca4f7256fbe4d218a2c93a9b18dc2bb8ef79ef4af73314aa3b45ce6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2e32710aee85d74aa76f22c54f4cdc03e344e2bd5be78fb77801cb8b6e343fe [INFO] running `Command { std: "docker" "start" "-a" "a2e32710aee85d74aa76f22c54f4cdc03e344e2bd5be78fb77801cb8b6e343fe", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling device_query v2.0.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking snake-rs2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:275:11 [INFO] [stdout] | [INFO] [stdout] 275 | spawn(input_handler(tx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ future returned by `input_handler` is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `impl Future`, the trait `Send` is not implemented for `Rc` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:202:26 [INFO] [stdout] | [INFO] [stdout] 198 | let device_state = DeviceState::new(); [INFO] [stdout] | ------------ has type `DeviceState` which is not `Send` [INFO] [stdout] ... [INFO] [stdout] 202 | tx.send(key).await.unwrap(); [INFO] [stdout] | ^^^^^ await occurs here, with `device_state` maybe used later [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/task/spawn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 165 | where [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:275:11 [INFO] [stdout] | [INFO] [stdout] 275 | spawn(input_handler(tx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ future returned by `input_handler` is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `impl Future`, the trait `Send` is not implemented for `Rc` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:202:26 [INFO] [stdout] | [INFO] [stdout] 198 | let device_state = DeviceState::new(); [INFO] [stdout] | ------------ has type `DeviceState` which is not `Send` [INFO] [stdout] ... [INFO] [stdout] 202 | tx.send(key).await.unwrap(); [INFO] [stdout] | ^^^^^ await occurs here, with `device_state` maybe used later [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/task/spawn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 165 | where [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `snake-rs2` (bin "snake-rs2" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `snake-rs2` (bin "snake-rs2") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "a2e32710aee85d74aa76f22c54f4cdc03e344e2bd5be78fb77801cb8b6e343fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2e32710aee85d74aa76f22c54f4cdc03e344e2bd5be78fb77801cb8b6e343fe", kill_on_drop: false }` [INFO] [stdout] a2e32710aee85d74aa76f22c54f4cdc03e344e2bd5be78fb77801cb8b6e343fe