[INFO] updating cached repository https://github.com/GizmoFactory/rustybots
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 3068bb02d32bb6c5275468cc90821b3a6aba2ddf
[INFO] checking GizmoFactory/rustybots against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGizmoFactory%2Frustybots" "/workspace/builds/worker-3/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/GizmoFactory/rustybots on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/GizmoFactory/rustybots
[INFO] finished tweaking git repo https://github.com/GizmoFactory/rustybots
[INFO] tweaked toml for git repo https://github.com/GizmoFactory/rustybots written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/GizmoFactory/rustybots already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr] error: the lock file /workspace/builds/worker-3/source/Cargo.lock needs to be updated but --locked was passed to prevent this
[INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag.
[INFO] the lockfile is outdated, regenerating it
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stdout] 8d6a8d85908974b5174c2158e9fbd112aa2e4ae8c38f525c41d6345659d4458a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `"docker" "start" "-a" "8d6a8d85908974b5174c2158e9fbd112aa2e4ae8c38f525c41d6345659d4458a"`
[INFO] [stderr]     Checking block-padding v0.1.5
[INFO] [stderr]     Checking mio v0.6.21
[INFO] [stderr]     Checking block-buffer v0.7.3
[INFO] [stderr]     Checking sha-1 v0.8.2
[INFO] [stderr]     Checking mio-extras v2.0.6
[INFO] [stderr]     Checking ws v0.9.1
[INFO] [stderr]     Checking rustybots v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: expected one of `=>`, `@`, `if`, or `|`, found `Ok`
[INFO] [stderr]   --> src/main.rs:22:21
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                                              - expected one of `=>`, `@`, `if`, or `|`
[INFO] [stderr] 21 |                     // socket closed
[INFO] [stderr] 22 |                     Ok(n) if n == 0 ==> return;
[INFO] [stderr]    |                     ^^ unexpected token
[INFO] [stderr] 
[INFO] [stderr] error: expected one of `=>`, `@`, `if`, or `|`, found `Ok`
[INFO] [stderr]   --> src/main.rs:22:21
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                                              - expected one of `=>`, `@`, `if`, or `|`
[INFO] [stderr] 21 |                     // socket closed
[INFO] [stderr] 22 |                     Ok(n) if n == 0 ==> return;
[INFO] [stderr]    |                     ^^ unexpected token
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use tokio::prelude::*;
[INFO] [stderr]   |     ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stderr]  --> src/main.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:8:3
[INFO] [stderr]   |
[INFO] [stderr] 8 | #[tokio::main]
[INFO] [stderr]   |   ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener`
[INFO] [stderr]   --> src/main.rs:10:24
[INFO] [stderr]    |
[INFO] [stderr] 10 |     let mut listener = TcpListener::bind("127.0.0.1:8080").await?;
[INFO] [stderr]    |                        ^^^^^^^^^^^ use of undeclared type or module `TcpListener`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]   --> src/main.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 15 |         tokio::spawn(async move {
[INFO] [stderr]    |         ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:16:17
[INFO] [stderr]    |
[INFO] [stderr] 16 |             let mut buf = [0; 1024];
[INFO] [stderr]    |                 ^^^^^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:20:48
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                                ^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:20:43
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                           ^^^^^^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 10 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0698.
[INFO] [stderr] For more information about an error, try `rustc --explain E0432`.
[INFO] [stderr] error: could not compile `rustybots`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use tokio::prelude::*;
[INFO] [stderr]   |     ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stderr]  --> src/main.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]  --> src/main.rs:8:3
[INFO] [stderr]   |
[INFO] [stderr] 8 | #[tokio::main]
[INFO] [stderr]   |   ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TcpListener`
[INFO] [stderr]   --> src/main.rs:10:24
[INFO] [stderr]    |
[INFO] [stderr] 10 |     let mut listener = TcpListener::bind("127.0.0.1:8080").await?;
[INFO] [stderr]    |                        ^^^^^^^^^^^ use of undeclared type or module `TcpListener`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tokio`
[INFO] [stderr]   --> src/main.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 15 |         tokio::spawn(async move {
[INFO] [stderr]    |         ^^^^^ use of undeclared type or module `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: `main` has invalid return type `impl std::future::Future`
[INFO] [stderr]  --> src/main.rs:9:20
[INFO] [stderr]   |
[INFO] [stderr] 9 | async fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stderr]   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination`
[INFO] [stderr]   |
[INFO] [stderr]   = help: consider using `()`, or a `Result`
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:16:17
[INFO] [stderr]    |
[INFO] [stderr] 16 |             let mut buf = [0; 1024];
[INFO] [stderr]    |                 ^^^^^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:20:48
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                                ^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0698]: type inside `async` block must be known in this context
[INFO] [stderr]   --> src/main.rs:20:43
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                                           ^^^^^^^^ cannot infer type for type `{integer}`
[INFO] [stderr]    |
[INFO] [stderr] note: the type is part of the `async` block because of this `await`
[INFO] [stderr]   --> src/main.rs:20:31
[INFO] [stderr]    |
[INFO] [stderr] 20 |                 let n = match socket.read(&mut buf).await {kj
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 11 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0277, E0432, E0433, E0698.
[INFO] [stderr] For more information about an error, try `rustc --explain E0277`.
[INFO] [stderr] error: could not compile `rustybots`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "8d6a8d85908974b5174c2158e9fbd112aa2e4ae8c38f525c41d6345659d4458a"`
[INFO] running `"docker" "rm" "-f" "8d6a8d85908974b5174c2158e9fbd112aa2e4ae8c38f525c41d6345659d4458a"`
[INFO] [stdout] 8d6a8d85908974b5174c2158e9fbd112aa2e4ae8c38f525c41d6345659d4458a
