[INFO] updating cached repository https://github.com/jjgumucio/rust-http-server [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7c04c5304f6fbffac078d2377bcf057dc4af858a [INFO] testing jjgumucio/rust-http-server against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjgumucio%2Frust-http-server" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jjgumucio/rust-http-server on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/jjgumucio/rust-http-server [INFO] finished tweaking git repo https://github.com/jjgumucio/rust-http-server [INFO] tweaked toml for git repo https://github.com/jjgumucio/rust-http-server written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jjgumucio/rust-http-server already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 463d9faf76c7feae7df3e436b490620887b4a66baeecf7dcc8ba0b3c8b47c50c [INFO] running `"docker" "start" "-a" "463d9faf76c7feae7df3e436b490620887b4a66baeecf7dcc8ba0b3c8b47c50c"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0425]: cannot find value `stream` in this scope [INFO] [stderr] --> src/main.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | match stream.read(&mut buf) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `buf` in this scope [INFO] [stderr] --> src/main.rs:27:52 [INFO] [stderr] | [INFO] [stderr] 27 | let req_str = String::from_utf8_lossy(&buf); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/main.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 28 | Some(HttpRequest::new(req_str.into_owned())) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `http_response::HttpResponse` [INFO] [stderr] found enum `std::option::Option` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 24 | fn build_response(request: HttpRequest) -> HttpResponse { [INFO] [stderr] | ------------ expected `http_response::HttpResponse` because of return type [INFO] [stderr] ... [INFO] [stderr] 32 | None [INFO] [stderr] | ^^^^ expected struct `http_response::HttpResponse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `http_response::HttpResponse` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:48:18 [INFO] [stderr] | [INFO] [stderr] 48 | Some(response) [INFO] [stderr] | ^^^^^^^^ expected struct `http_response::HttpResponse`, found struct `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:50:25 [INFO] [stderr] | [INFO] [stderr] 50 | Method::POST => println!("Handle this POST request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found `()` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option` [INFO] [stderr] found unit type `()` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:51:24 [INFO] [stderr] | [INFO] [stderr] 51 | Method::PUT => println!("Handle this PUT request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found `()` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option` [INFO] [stderr] found unit type `()` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:52:27 [INFO] [stderr] | [INFO] [stderr] 52 | Method::DELETE => println!("Handle this DELETE request"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found `()` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option` [INFO] [stderr] found unit type `()` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `expect` found for struct `http_response::HttpResponse` in the current scope [INFO] [stderr] --> src/main.rs:63:54 [INFO] [stderr] | [INFO] [stderr] 63 | let http_response = build_response(http_request).expect("Failed to build HttpResponse"); [INFO] [stderr] | ^^^^^^ method not found in `http_response::HttpResponse` [INFO] [stderr] | [INFO] [stderr] ::: src/http_response.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct HttpResponse { [INFO] [stderr] | ----------------------- method `expect` not found for this [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `http-server`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "463d9faf76c7feae7df3e436b490620887b4a66baeecf7dcc8ba0b3c8b47c50c"` [INFO] running `"docker" "rm" "-f" "463d9faf76c7feae7df3e436b490620887b4a66baeecf7dcc8ba0b3c8b47c50c"` [INFO] [stdout] 463d9faf76c7feae7df3e436b490620887b4a66baeecf7dcc8ba0b3c8b47c50c