[INFO] cloning repository https://github.com/pp-qq/rust-http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pp-qq/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpp-qq%2Frust-http-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpp-qq%2Frust-http-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 87ddd70278e8a23702c46917db5e1cb2edb2c5e1 [INFO] testing pp-qq/rust-http-server against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpp-qq%2Frust-http-server" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pp-qq/rust-http-server on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pp-qq/rust-http-server [INFO] finished tweaking git repo https://github.com/pp-qq/rust-http-server [INFO] tweaked toml for git repo https://github.com/pp-qq/rust-http-server written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/pp-qq/rust-http-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tera v1.12.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b07614924dd07203fca112efb3296eba450f298b1751ce007199129b6211a49 [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" "3b07614924dd07203fca112efb3296eba450f298b1751ce007199129b6211a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b07614924dd07203fca112efb3296eba450f298b1751ce007199129b6211a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b07614924dd07203fca112efb3296eba450f298b1751ce007199129b6211a49", kill_on_drop: false }` [INFO] [stdout] 3b07614924dd07203fca112efb3296eba450f298b1751ce007199129b6211a49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b35452b2f410f2e6c829bc61d40116bdfa63c1ddce16eb7dc6e8620251bb0e33 [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" "b35452b2f410f2e6c829bc61d40116bdfa63c1ddce16eb7dc6e8620251bb0e33", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling tracing-core v0.1.20 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling bstr v0.2.16 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling tracing v0.1.27 [INFO] [stderr] Compiling globset v0.4.8 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling h2 v0.3.4 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling rusqlite v0.25.3 [INFO] [stderr] Compiling tera v1.12.1 [INFO] [stderr] Compiling hyper v0.14.13 [INFO] [stderr] Compiling web-memory v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 92 | ("/", "GET") => handle_with_body(req, tera).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result, hyper::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | ("/posts", "POST") => create_post(req, tera, conn).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result, hyper::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `status_with` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | (path, "GET") if path.status_with("/posts/") => find_post(req, tera, conn).await, [INFO] [stdout] | ^^^^^^^^^^^ help: there is an associated function with a similar name: `starts_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:95:57 [INFO] [stdout] | [INFO] [stdout] 95 | (path, "GET") if path.status_with("/posts/") => find_post(req, tera, conn).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result, hyper::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | fn render(&self, tera: Arc) -> String { [INFO] [stdout] | ------ ^^^^^^ expected struct `std::string::String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_id(req: &Request) -> Uuid { [INFO] [stdout] | ------ ^^^^ expected struct `Uuid`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `web-memory` due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "b35452b2f410f2e6c829bc61d40116bdfa63c1ddce16eb7dc6e8620251bb0e33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b35452b2f410f2e6c829bc61d40116bdfa63c1ddce16eb7dc6e8620251bb0e33", kill_on_drop: false }` [INFO] [stdout] b35452b2f410f2e6c829bc61d40116bdfa63c1ddce16eb7dc6e8620251bb0e33