[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 master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [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 a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c41e3c1db8ea99f12ce3c74fd7df2de6cdaec0a77d412b1389d0a0e4389fa02f [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" "c41e3c1db8ea99f12ce3c74fd7df2de6cdaec0a77d412b1389d0a0e4389fa02f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c41e3c1db8ea99f12ce3c74fd7df2de6cdaec0a77d412b1389d0a0e4389fa02f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c41e3c1db8ea99f12ce3c74fd7df2de6cdaec0a77d412b1389d0a0e4389fa02f", kill_on_drop: false }` [INFO] [stdout] c41e3c1db8ea99f12ce3c74fd7df2de6cdaec0a77d412b1389d0a0e4389fa02f [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=forbid" "-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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ff034c830c422c7c401b9af9c6e967bd6b9721d69a803b7a664be8cb918357f [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" "3ff034c830c422c7c401b9af9c6e967bd6b9721d69a803b7a664be8cb918357f", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling deunicode v0.4.3 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.20 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling slug v0.1.4 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling tracing v0.1.27 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling bstr v0.2.16 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling globset v0.4.8 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [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_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" "3ff034c830c422c7c401b9af9c6e967bd6b9721d69a803b7a664be8cb918357f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ff034c830c422c7c401b9af9c6e967bd6b9721d69a803b7a664be8cb918357f", kill_on_drop: false }` [INFO] [stdout] 3ff034c830c422c7c401b9af9c6e967bd6b9721d69a803b7a664be8cb918357f