[INFO] cloning repository https://github.com/AnatolyBug/hyper_microservice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AnatolyBug/hyper_microservice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnatolyBug%2Fhyper_microservice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnatolyBug%2Fhyper_microservice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8808c74bae050bdca77e4f495cb05e47718b3811 [INFO] testing AnatolyBug/hyper_microservice against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnatolyBug%2Fhyper_microservice" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AnatolyBug/hyper_microservice on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AnatolyBug/hyper_microservice [INFO] finished tweaking git repo https://github.com/AnatolyBug/hyper_microservice [INFO] tweaked toml for git repo https://github.com/AnatolyBug/hyper_microservice written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/AnatolyBug/hyper_microservice already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa30f249a358a8c28201ba613a6c8de29afc22f777f9a568bb4e05cedf6d91f5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "aa30f249a358a8c28201ba613a6c8de29afc22f777f9a568bb4e05cedf6d91f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa30f249a358a8c28201ba613a6c8de29afc22f777f9a568bb4e05cedf6d91f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa30f249a358a8c28201ba613a6c8de29afc22f777f9a568bb4e05cedf6d91f5", kill_on_drop: false }` [INFO] [stdout] aa30f249a358a8c28201ba613a6c8de29afc22f777f9a568bb4e05cedf6d91f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 332cbeb0e532d7c82fddaf88abeaf33b973fb05f01f286b8d3d338079fdd3d57 [INFO] running `Command { std: "docker" "start" "-a" "332cbeb0e532d7c82fddaf88abeaf33b973fb05f01f286b8d3d338079fdd3d57", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.4 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling hyper_microservice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `users` in this scope [INFO] [stdout] --> src/main.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if users.contains(id) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `users` in this scope [INFO] [stdout] --> src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | users.remove(id); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `users` in this scope [INFO] [stdout] --> src/main.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(user) = users.get_mut(id){ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `users` in this scope [INFO] [stdout] --> src/main.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some(data) = users.get(id) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `users` in this scope [INFO] [stdout] --> src/main.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let id = users.insert(UserData); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 52 | match (req.method(), req.uri().path()) { [INFO] [stdout] | -------------------------------- this expression has type `(&Method, &str)` [INFO] [stdout] ... [INFO] [stdout] 64 | (&Method::DELETE, Some(id)) => { [INFO] [stdout] | ^^^^^^^^ expected `str`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `str` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 52 | match (req.method(), req.uri().path()) { [INFO] [stdout] | -------------------------------- this expression has type `(&Method, &str)` [INFO] [stdout] ... [INFO] [stdout] 72 | (&Method::PUT, Some(id)) => { [INFO] [stdout] | ^^^^^^^^ expected `str`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `str` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 52 | match (req.method(), req.uri().path()) { [INFO] [stdout] | -------------------------------- this expression has type `(&Method, &str)` [INFO] [stdout] ... [INFO] [stdout] 80 | (&Method::GET, Some(id)) => { [INFO] [stdout] | ^^^^^^^^ expected `str`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `str` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 52 | match (req.method(), req.uri().path()) { [INFO] [stdout] | -------------------------------- this expression has type `(&Method, &str)` [INFO] [stdout] ... [INFO] [stdout] 88 | (&Method::POST, None) => { [INFO] [stdout] | ^^^^ expected `str`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `str` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 52 | match (req.method(), req.uri().path()) { [INFO] [stdout] | -------------------------------- this expression has type `(&Method, &str)` [INFO] [stdout] ... [INFO] [stdout] 93 | (&Method::POST, Some(_)) => {response_with_code(StatusCode::BAD_REQUEST)}, [INFO] [stdout] | ^^^^^^^ expected `str`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `str` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `FnMut<(char,)>` closure, found `USER_PATH` [INFO] [stdout] --> src/main.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | (method, path) if path.starts_with(USER_PATH) => { [INFO] [stdout] | ----------- ^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `USER_PATH` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FnMut<(char,)>` is not implemented for `USER_PATH` [INFO] [stdout] = note: required because of the requirements on the impl of `Pattern<'_>` for `USER_PATH` [INFO] [stdout] note: required by a bound in `core::str::::starts_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/main.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | let user_id = path.trim_left_matches(USER_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `FnMut<(char,)>` closure, found `USER_PATH` [INFO] [stdout] --> src/main.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | let user_id = path.trim_left_matches(USER_PATH) [INFO] [stdout] | ----------------- ^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `USER_PATH` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `FnMut<(char,)>` is not implemented for `USER_PATH` [INFO] [stdout] = note: required because of the requirements on the impl of `Pattern<'_>` for `USER_PATH` [INFO] [stdout] note: required by a bound in `core::str::::trim_left_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 52 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 53 | | (&Method::GET, "/") => { [INFO] [stdout] 54 | | //body is an html string [INFO] [stdout] 55 | | Response::new(INDEX.into()) [INFO] [stdout] | | --------------------------- this is found to be of type `Response<_>` [INFO] [stdout] ... | [INFO] [stdout] 62 | | let mut users = user_db.lock().unwrap(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Response`, found `()` [INFO] [stdout] ... | [INFO] [stdout] 95 | | _ => {response_with_code(StatusCode::METHOD_NOT_ALLOWED)} [INFO] [stdout] 96 | | } [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `Response<_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hyper_microservice` due to 14 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "332cbeb0e532d7c82fddaf88abeaf33b973fb05f01f286b8d3d338079fdd3d57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "332cbeb0e532d7c82fddaf88abeaf33b973fb05f01f286b8d3d338079fdd3d57", kill_on_drop: false }` [INFO] [stdout] 332cbeb0e532d7c82fddaf88abeaf33b973fb05f01f286b8d3d338079fdd3d57