[INFO] crate tide-http-auth 0.2.0 is already in cache [INFO] testing tide-http-auth-0.2.0 against 1.45.2 for beta-1.46-1 [INFO] extracting crate tide-http-auth 0.2.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate tide-http-auth 0.2.0 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate tide-http-auth 0.2.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate tide-http-auth 0.2.0 [INFO] tweaked toml for crates.io crate tide-http-auth 0.2.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate crates.io crate tide-http-auth 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c50096b3e4a4c77ba87814029d983f77272ca5ebc6b4b29f2e953e779846e12d [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" "c50096b3e4a4c77ba87814029d983f77272ca5ebc6b4b29f2e953e779846e12d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c50096b3e4a4c77ba87814029d983f77272ca5ebc6b4b29f2e953e779846e12d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c50096b3e4a4c77ba87814029d983f77272ca5ebc6b4b29f2e953e779846e12d", kill_on_drop: false }` [INFO] [stdout] c50096b3e4a4c77ba87814029d983f77272ca5ebc6b4b29f2e953e779846e12d [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" "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1365ddaf831db77322afb70ce9ed1f14e52fe8d3d02f53581b3af41f8cd61595 [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" "1365ddaf831db77322afb70ce9ed1f14e52fe8d3d02f53581b3af41f8cd61595", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.25 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling standback v0.2.8 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling scoped-tls-hkt v0.1.2 [INFO] [stderr] Compiling route-recognizer v0.1.13 [INFO] [stderr] Compiling base64 v0.12.1 [INFO] [stderr] Compiling tracing-core v0.1.10 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling infer v0.1.6 [INFO] [stderr] Compiling crossbeam-channel v0.4.2 [INFO] [stderr] Compiling byte-pool v0.2.1 [INFO] [stderr] Compiling crossbeam v0.7.3 [INFO] [stderr] Compiling kv-log-macro v1.0.6 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling pin-project-internal v0.4.17 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.8 [INFO] [stderr] Compiling async-trait v0.1.31 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling tracing v0.1.14 [INFO] [stderr] Compiling cookie v0.13.3 [INFO] [stderr] Compiling pin-project v0.4.17 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling piper v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling smol v0.1.10 [INFO] [stderr] Compiling async-std v1.6.0 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling femme v2.1.0 [INFO] [stderr] Compiling http-types v2.0.1 [INFO] [stderr] Compiling async-h1 v2.0.2 [INFO] [stderr] Compiling async-sse v3.0.0 [INFO] [stderr] Compiling tide v0.11.0 [INFO] [stderr] Compiling tide-http-auth v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 05s [INFO] running `Command { std: "docker" "inspect" "1365ddaf831db77322afb70ce9ed1f14e52fe8d3d02f53581b3af41f8cd61595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1365ddaf831db77322afb70ce9ed1f14e52fe8d3d02f53581b3af41f8cd61595", kill_on_drop: false }` [INFO] [stdout] 1365ddaf831db77322afb70ce9ed1f14e52fe8d3d02f53581b3af41f8cd61595 [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" "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63ddd24002257478e30e7f31d87907c87876d464925395b3af32befcbf778ec1 [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" "63ddd24002257478e30e7f31d87907c87876d464925395b3af32befcbf778ec1", kill_on_drop: false }` [INFO] [stderr] Compiling tide-http-auth v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused return value of `tide::response::Response::set_status` that must be used [INFO] [stdout] --> examples/basic-in-memory.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | response.set_status(tide::http::StatusCode::Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.51s [INFO] running `Command { std: "docker" "inspect" "63ddd24002257478e30e7f31d87907c87876d464925395b3af32befcbf778ec1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63ddd24002257478e30e7f31d87907c87876d464925395b3af32befcbf778ec1", kill_on_drop: false }` [INFO] [stdout] 63ddd24002257478e30e7f31d87907c87876d464925395b3af32befcbf778ec1 [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" "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e93a85a975d92245fbf944d90cee23bcbc78a1ec7fbd506a8b5cdf3208cc8eec [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" "e93a85a975d92245fbf944d90cee23bcbc78a1ec7fbd506a8b5cdf3208cc8eec", kill_on_drop: false }` [INFO] [stderr] warning: unused return value of `tide::response::Response::set_status` that must be used [INFO] [stderr] --> examples/basic-in-memory.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | response.set_status(tide::http::StatusCode::Unauthorized); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.50s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/tide_http_auth-eb6da5b767180bcd [INFO] [stdout] [INFO] [stderr] Doc-tests tide-http-auth [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - Authentication::new (line 39) ... FAILED [INFO] [stdout] test src/lib.rs - storage::Storage (line 6) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Authentication::new (line 39) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> Result<(), std::io::Error> { block_on(async { [INFO] [stdout] | - - unclosed delimiter [INFO] [stdout] | | [INFO] [stdout] | unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 7 | Ok(()) } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `block_on` in this scope [INFO] [stdout] --> src/lib.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> Result<(), std::io::Error> { block_on(async { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use async_std::task::block_on; [INFO] [stdout] | [INFO] [stdout] 3 | use futures::executor::block_on; [INFO] [stdout] | [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 - storage::Storage (line 6) stdout ---- [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `MyUserType` [INFO] [stdout] --> src/lib.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 8 | / struct MyUserType { [INFO] [stdout] 9 | | username: String [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- `MyUserType` defined here [INFO] [stdout] ... [INFO] [stdout] 19 | Ok(Some(MyUserType("Basil".to_string()))) [INFO] [stdout] | ^^^^^^^^^^ did you mean `MyUserType { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] error[E0053]: method `get_user` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | async fn get_user(&self, request: BasicAuthRequest) -> tide::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `main::{{closure}}#0::MyUserType` [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&'life0 main::{{closure}}#0::MyState, tide_http_auth::BasicAuthRequest) -> std::pin::Pin, http_types::error::Error>> + std::marker::Send + 'async_trait)>>` [INFO] [stdout] found fn pointer `fn(&'life0 main::{{closure}}#0::MyState, tide_http_auth::BasicAuthRequest) -> std::pin::Pin> + std::marker::Send + 'async_trait)>>` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(Some(MyUserType("Basil".to_string()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `main::{{closure}}#0::MyUserType`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `main::{{closure}}#0::MyUserType` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(None) // Nothing went wrong, but these credentials are invalid. [INFO] [stdout] | ^^^^ expected struct `main::{{closure}}#0::MyUserType`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `main::{{closure}}#0::MyUserType` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0308, E0423. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Authentication::new (line 39) [INFO] [stdout] src/lib.rs - storage::Storage (line 6) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "e93a85a975d92245fbf944d90cee23bcbc78a1ec7fbd506a8b5cdf3208cc8eec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e93a85a975d92245fbf944d90cee23bcbc78a1ec7fbd506a8b5cdf3208cc8eec", kill_on_drop: false }` [INFO] [stdout] e93a85a975d92245fbf944d90cee23bcbc78a1ec7fbd506a8b5cdf3208cc8eec