[INFO] fetching crate web_server 0.4.2... [INFO] testing web_server-0.4.2 against 1.44.0 for beta-1.45-1 [INFO] extracting crate web_server 0.4.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate web_server 0.4.2 on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate web_server 0.4.2 [INFO] finished tweaking crates.io crate web_server 0.4.2 [INFO] tweaked toml for crates.io crate web_server 0.4.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate web_server 0.4.2 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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] eae3a8cba69906ef3b8fd1faca715ed4ce4d2b81bfac9572825fa6ff21d1301b [INFO] running `"docker" "start" "-a" "eae3a8cba69906ef3b8fd1faca715ed4ce4d2b81bfac9572825fa6ff21d1301b"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling web_server v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `"docker" "inspect" "eae3a8cba69906ef3b8fd1faca715ed4ce4d2b81bfac9572825fa6ff21d1301b"` [INFO] running `"docker" "rm" "-f" "eae3a8cba69906ef3b8fd1faca715ed4ce4d2b81bfac9572825fa6ff21d1301b"` [INFO] [stdout] eae3a8cba69906ef3b8fd1faca715ed4ce4d2b81bfac9572825fa6ff21d1301b [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c4ede6c9d93d13dd5e07e46d6ffdce48fb31b5bd2b4fdd930f399b67b7ded9cd [INFO] running `"docker" "start" "-a" "c4ede6c9d93d13dd5e07e46d6ffdce48fb31b5bd2b4fdd930f399b67b7ded9cd"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling cargo-husky v1.5.0 [INFO] [stderr] Compiling web_server v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.12s [INFO] running `"docker" "inspect" "c4ede6c9d93d13dd5e07e46d6ffdce48fb31b5bd2b4fdd930f399b67b7ded9cd"` [INFO] running `"docker" "rm" "-f" "c4ede6c9d93d13dd5e07e46d6ffdce48fb31b5bd2b4fdd930f399b67b7ded9cd"` [INFO] [stdout] c4ede6c9d93d13dd5e07e46d6ffdce48fb31b5bd2b4fdd930f399b67b7ded9cd [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 98e484f59acce94b5a09ef12468335a893026b98bdbeec71f2bfd21a7193263f [INFO] running `"docker" "start" "-a" "98e484f59acce94b5a09ef12468335a893026b98bdbeec71f2bfd21a7193263f"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/web_server-9973bf929567b2d6 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests web_server [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 44) ... FAILED [INFO] [stdout] test src/lib.rs - (line 39) ... FAILED [INFO] [stdout] test src/server.rs - server::HttpServer::not_found (line 98) ... FAILED [INFO] [stdout] test src/server.rs - server::HttpServer::launch (line 118) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] test src/server.rs - server::HttpServer::get (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/server.rs - server::HttpServer::post (line 74) ... FAILED [INFO] [stdout] test src/server.rs - server::HttpServer::any (line 87) ... FAILED [INFO] [stdout] test src/lib.rs - (line 23) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 44) stdout ---- [INFO] [stdout] error: expected expression, found `.` [INFO] [stdout] --> src/lib.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 3 | .get("/image.png", Box::new(|_, _| { [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error: expected expression, found `.` [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 3 | .launch(PORT).unwrap() [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::HttpServer::not_found (line 98) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/server.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.not_found(Box::new(|_, _| "Not found!".into())); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::HttpServer::launch (line 118) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/server.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.launch(8080).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `web_server::route` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | use web_server::route; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `route` in the root [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for unit type `()` in the current scope [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 10 | .unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::HttpServer::get (line 64) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/server.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.get("/user/:id", Box::new(|request, _| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `database` in this scope [INFO] [stdout] --> src/server.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 4 | database.get_user(request.params.get("id").unwrap()).into() [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error: expected expression, found `.` [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 4 | .get("/your/path", Box::new(|request, default_response| { [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::HttpServer::post (line 74) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/server.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.post("/add-user", Box::new(|request, mut default_response| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `default_repsonse` in this scope [INFO] [stdout] --> src/server.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 7 | default_repsonse [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `default_response` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::HttpServer::any (line 87) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/server.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 3 | server [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 23) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] 4 | web_server::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;` [INFO] [stdout] | | [INFO] [stdout] | expected `()`, found struct `web_server::HttpServer` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 23) [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] src/lib.rs - (line 44) [INFO] [stdout] src/server.rs - server::HttpServer::any (line 87) [INFO] [stdout] src/server.rs - server::HttpServer::get (line 64) [INFO] [stdout] src/server.rs - server::HttpServer::launch (line 118) [INFO] [stdout] src/server.rs - server::HttpServer::not_found (line 98) [INFO] [stdout] src/server.rs - server::HttpServer::post (line 74) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "98e484f59acce94b5a09ef12468335a893026b98bdbeec71f2bfd21a7193263f"` [INFO] running `"docker" "rm" "-f" "98e484f59acce94b5a09ef12468335a893026b98bdbeec71f2bfd21a7193263f"` [INFO] [stdout] 98e484f59acce94b5a09ef12468335a893026b98bdbeec71f2bfd21a7193263f