[INFO] cloning repository https://github.com/AugustsK/mock-api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AugustsK/mock-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustsK%2Fmock-api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustsK%2Fmock-api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b6d1fe6f80cbcd50f8ae780c178cf28eb8921024
[INFO] checking AugustsK/mock-api against c60b92c03ca8a3b101eb9d57f51e2232690638c7 for pr-164148-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustsK%2Fmock-api" "/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/AugustsK/mock-api
[INFO] finished tweaking git repo https://github.com/AugustsK/mock-api
[INFO] tweaked toml for git repo https://github.com/AugustsK/mock-api written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AugustsK/mock-api on toolchain c60b92c03ca8a3b101eb9d57f51e2232690638c7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AugustsK/mock-api 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" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe
[INFO] running `Command { std: "docker" "start" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe", 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" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe" "/opt/rustwide/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe", 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" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe" "/opt/rustwide/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]     Checking pin-project-lite v0.2.12
[INFO] [stderr]     Checking itoa v1.0.9
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling serde v1.0.185
[INFO] [stderr]     Checking futures-sink v0.3.28
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking mio v0.8.8
[INFO] [stderr]     Checking socket2 v0.5.3
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]     Checking ryu v1.0.15
[INFO] [stderr]     Checking percent-encoding v2.3.0
[INFO] [stderr]    Compiling serde_json v1.0.105
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking form_urlencoded v1.2.0
[INFO] [stderr]     Checking tracing-core v0.1.31
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]     Checking http v0.2.9
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.29
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.185
[INFO] [stderr]     Checking tokio v1.32.0
[INFO] [stderr]     Checking tokio-util v0.7.8
[INFO] [stderr]     Checking h2 v0.3.20
[INFO] [stderr]     Checking hyper v0.14.27
[INFO] [stderr]     Checking api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `StatusCode`
[INFO] [stdout]  --> src/main.rs:4:46
[INFO] [stdout]   |
[INFO] [stdout] 4 | use hyper::{Server, Body, Request, Response, StatusCode};
[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: `StatusCode`
[INFO] [stdout]  --> src/main.rs:4:46
[INFO] [stdout]   |
[INFO] [stdout] 4 | use hyper::{Server, Body, Request, Response, StatusCode};
[INFO] [stdout]   |                                              ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `time` is never read
[INFO] [stdout]   --> src/route/api.rs:56:20
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut time = 0;
[INFO] [stdout]    |                    ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 59 |         time = res;
[INFO] [stdout]    |         ---------- `time` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `byte_len` is never read
[INFO] [stdout]   --> src/route/api.rs:78:31
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut byte_len: usize = 10000;
[INFO] [stdout]    |                               ^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 82 |             byte_len = len as usize;
[INFO] [stdout]    |             ----------------------- `byte_len` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `time` is never read
[INFO] [stdout]   --> src/route/api.rs:56:20
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut time = 0;
[INFO] [stdout]    |                    ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 59 |         time = res;
[INFO] [stdout]    |         ---------- `time` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `byte_len` is never read
[INFO] [stdout]   --> src/route/api.rs:78:31
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut byte_len: usize = 10000;
[INFO] [stdout]    |                               ^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 82 |             byte_len = len as usize;
[INFO] [stdout]    |             ----------------------- `byte_len` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u64` api
[INFO] [stdout]   --> src/route/api.rs:75:37
[INFO] [stdout]    |
[INFO] [stdout] 75 |         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout]    |                                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]    = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]    |
[INFO] [stdout] 75 -         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout] 75 +         sleep(Duration::from_millis(time)).await;
[INFO] [stdout]    |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]    |
[INFO] [stdout] 75 -         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout] 75 +         sleep(Duration::from_millis(<u64 as Into<_>>::into(time))).await;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u64` api
[INFO] [stdout]   --> src/route/api.rs:75:37
[INFO] [stdout]    |
[INFO] [stdout] 75 |         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout]    |                                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]    = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]    |
[INFO] [stdout] 75 -         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout] 75 +         sleep(Duration::from_millis(time)).await;
[INFO] [stdout]    |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]    |
[INFO] [stdout] 75 -         sleep(Duration::from_millis(time.into())).await;
[INFO] [stdout] 75 +         sleep(Duration::from_millis(<u64 as Into<_>>::into(time))).await;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `api` (bin "api" test) due to 1 previous error; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `api` (bin "api") due to 1 previous error; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe", kill_on_drop: false }`
[INFO] [stdout] dbdb702f5558d32872b83617c55ed2213619cccac64cb7406ee47c12485bd3fe
