[INFO] cloning repository https://github.com/acwink/my-redis
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/acwink/my-redis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facwink%2Fmy-redis", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facwink%2Fmy-redis'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a3dbe5c5096c55beec1a796fafa980e239ee9717
[INFO] checking acwink/my-redis against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facwink%2Fmy-redis" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/acwink/my-redis
[INFO] finished tweaking git repo https://github.com/acwink/my-redis
[INFO] tweaked toml for git repo https://github.com/acwink/my-redis written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/acwink/my-redis on toolchain 65b20a97de33e9e59992793a144aef2950c48c76
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/acwink/my-redis 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded atoi v0.3.3
[INFO] [stderr]   Downloaded mini-redis v0.4.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487
[INFO] running `Command { std: "docker" "start" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487", 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" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487", 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" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]     Checking pin-project-lite v0.2.14
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking regex-syntax v0.8.4
[INFO] [stderr]    Compiling serde_json v1.0.122
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling unicode-segmentation v1.11.0
[INFO] [stderr]     Checking unicode-width v0.1.13
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking regex-automata v0.1.10
[INFO] [stderr]     Checking iana-time-zone v0.1.60
[INFO] [stderr]     Checking futures-core v0.3.30
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking ryu v1.0.18
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking mio v1.0.1
[INFO] [stderr]     Checking regex-automata v0.4.7
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]     Checking chrono v0.4.38
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking tracing-log v0.1.4
[INFO] [stderr]     Checking matchers v0.0.1
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking atoi v0.3.3
[INFO] [stderr]     Checking regex v1.10.6
[INFO] [stderr]     Checking tracing-serde v0.1.3
[INFO] [stderr]    Compiling structopt-derive v0.4.18
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]     Checking async-stream v0.3.5
[INFO] [stderr]     Checking structopt v0.3.26
[INFO] [stderr]     Checking tokio v1.39.2
[INFO] [stderr]     Checking pin-project v1.1.5
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]     Checking tracing-subscriber v0.2.25
[INFO] [stderr]     Checking tracing-futures v0.2.5
[INFO] [stderr]     Checking tokio-stream v0.1.15
[INFO] [stderr]     Checking mini-redis v0.4.1
[INFO] [stderr]     Checking my-redis v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]  --> src/main.rs:1:13
[INFO] [stdout]   |
[INFO] [stdout] 1 | use bytes::{BytesMut, Bytes};
[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: `BytesMut`
[INFO] [stdout]  --> src/main.rs:1:13
[INFO] [stdout]   |
[INFO] [stdout] 1 | use bytes::{BytesMut, Bytes};
[INFO] [stdout]   |             ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in an async function that returns `Result`
[INFO] [stdout]   --> src/main.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub async fn read_frame(&mut self) -> Result<Option<Frame>> {
[INFO] [stdout]    |  _______________________________________________________________-
[INFO] [stdout] 31 | |     loop {
[INFO] [stdout] 32 | |       if let Some(frame) = self.parse_from()? {
[INFO] [stdout]    | |                                             ^ use `.ok_or(...)?` to provide an error compatible with `Result<Option<Frame>, Box<dyn std::error::Error + Send + Sync>>`
[INFO] [stdout] 33 | |         return Ok(Some(frame));
[INFO] [stdout] ...  |
[INFO] [stdout] 49 | |   }
[INFO] [stdout]    | |___- this function returns a `Result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 |       if let Some(frame) = self.parse_from()? {
[INFO] [stdout]    |              ^^^^^^^^^^^   ------------------ this expression has type `Frame`
[INFO] [stdout]    |              |
[INFO] [stdout]    |              expected `Frame`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Frame`
[INFO] [stdout]               found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in an async function that returns `Result`
[INFO] [stdout]   --> src/main.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub async fn read_frame(&mut self) -> Result<Option<Frame>> {
[INFO] [stdout]    |  _______________________________________________________________-
[INFO] [stdout] 31 | |     loop {
[INFO] [stdout] 32 | |       if let Some(frame) = self.parse_from()? {
[INFO] [stdout]    | |                                             ^ use `.ok_or(...)?` to provide an error compatible with `Result<Option<Frame>, Box<dyn std::error::Error + Send + Sync>>`
[INFO] [stdout] 33 | |         return Ok(Some(frame));
[INFO] [stdout] ...  |
[INFO] [stdout] 49 | |   }
[INFO] [stdout]    | |___- this function returns a `Result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 |       if let Some(frame) = self.parse_from()? {
[INFO] [stdout]    |              ^^^^^^^^^^^   ------------------ this expression has type `Frame`
[INFO] [stdout]    |              |
[INFO] [stdout]    |              expected `Frame`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Frame`
[INFO] [stdout]               found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my-redis` (bin "my-redis" test) due to 2 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `my-redis` (bin "my-redis") due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487", kill_on_drop: false }`
[INFO] [stdout] 33e470d21140bd285f888d46bf77014ea3138277efdf1fdf9b16e4849015f487
