[INFO] fetching crate oauth2-surf 0.1.1... [INFO] testing oauth2-surf-0.1.1 against 1.49.0 for beta-1.50-1 [INFO] extracting crate oauth2-surf 0.1.1 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate oauth2-surf 0.1.1 on toolchain 1.49.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate oauth2-surf 0.1.1 [INFO] finished tweaking crates.io crate oauth2-surf 0.1.1 [INFO] tweaked toml for crates.io crate oauth2-surf 0.1.1 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "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" "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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20479f2743d52c4072690d1f61de1493367656642264c74343890c972b81dde7 [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" "20479f2743d52c4072690d1f61de1493367656642264c74343890c972b81dde7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20479f2743d52c4072690d1f61de1493367656642264c74343890c972b81dde7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20479f2743d52c4072690d1f61de1493367656642264c74343890c972b81dde7", kill_on_drop: false }` [INFO] [stdout] 20479f2743d52c4072690d1f61de1493367656642264c74343890c972b81dde7 [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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 24d8d48c39d13f7984773ce305c5b52ad05b931d24f5c39fcd842d1027682d72 [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" "24d8d48c39d13f7984773ce305c5b52ad05b931d24f5c39fcd842d1027682d72", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Compiling isahc v0.9.14 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling http-types v2.9.0 [INFO] [stderr] Compiling data-encoding v2.3.1 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling libnghttp2-sys v0.1.5+1.42.0 [INFO] [stderr] Compiling curl-sys v0.4.39+curl-7.74.0 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling sluice v0.5.3 [INFO] [stderr] Compiling nb-connect v1.0.2 [INFO] [stderr] Compiling polling v2.0.2 [INFO] [stderr] Compiling futures-lite v1.11.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling spinning_top v0.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling flume v0.9.2 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling async-executor v1.4.0 [INFO] [stderr] Compiling async-io v1.3.1 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling async-global-executor v1.4.3 [INFO] [stderr] Compiling async-std v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling serde_qs v0.7.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling oauth2 v4.0.0-alpha.2 [INFO] [stderr] Compiling http-client v6.2.0 [INFO] [stderr] Compiling surf v2.1.0 [INFO] [stderr] Compiling oauth2-surf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 43s [INFO] running `Command { std: "docker" "inspect" "24d8d48c39d13f7984773ce305c5b52ad05b931d24f5c39fcd842d1027682d72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24d8d48c39d13f7984773ce305c5b52ad05b931d24f5c39fcd842d1027682d72", kill_on_drop: false }` [INFO] [stdout] 24d8d48c39d13f7984773ce305c5b52ad05b931d24f5c39fcd842d1027682d72 [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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bff84f80d2df1d74ea114dc3403e0e7cebbd2264823ea2f4b1b829e6302c6273 [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" "bff84f80d2df1d74ea114dc3403e0e7cebbd2264823ea2f4b1b829e6302c6273", kill_on_drop: false }` [INFO] [stderr] Compiling oauth2-surf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.55s [INFO] running `Command { std: "docker" "inspect" "bff84f80d2df1d74ea114dc3403e0e7cebbd2264823ea2f4b1b829e6302c6273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bff84f80d2df1d74ea114dc3403e0e7cebbd2264823ea2f4b1b829e6302c6273", kill_on_drop: false }` [INFO] [stdout] bff84f80d2df1d74ea114dc3403e0e7cebbd2264823ea2f4b1b829e6302c6273 [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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 032260ca11d60fb7df878cc9b68e07f0d0692720ede155554f68615be56b6244 [INFO] running `Command { std: "docker" "start" "-a" "032260ca11d60fb7df878cc9b68e07f0d0692720ede155554f68615be56b6244", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/oauth2_surf-a6d4018a598709a9 [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 oauth2-surf [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `url` [INFO] [stdout] --> src/lib.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 19 | use url::Url; [INFO] [stdout] | ^^^ help: a similar path exists: `oauth2::url` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 55 | let token_result = client [INFO] [stdout] | _____________________^ [INFO] [stdout] 56 | | .exchange_code(AuthorizationCode::new("some authorization code".to_string())) [INFO] [stdout] 57 | | // Set the PKCE code verifier. [INFO] [stdout] 58 | | .set_pkce_verifier(pkce_verifier) [INFO] [stdout] 59 | | .request_async(http_client) [INFO] [stdout] 60 | | .await?; [INFO] [stdout] | |___________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 27 | | AuthUrl::new("http://authorize".to_string())?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 28 | | Some(TokenUrl::new("http://token".to_string())?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 31 | | .set_redirect_url(RedirectUrl::new("http://redirect".to_string())?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 55 | | let token_result = client [INFO] [stdout] | |_____________________^ [INFO] [stdout] 56 | || .exchange_code(AuthorizationCode::new("some authorization code".to_string())) [INFO] [stdout] 57 | || // Set the PKCE code verifier. [INFO] [stdout] 58 | || .set_pkce_verifier(pkce_verifier) [INFO] [stdout] 59 | || .request_async(http_client) [INFO] [stdout] 60 | || .await?; [INFO] [stdout] | ||____________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 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" "032260ca11d60fb7df878cc9b68e07f0d0692720ede155554f68615be56b6244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "032260ca11d60fb7df878cc9b68e07f0d0692720ede155554f68615be56b6244", kill_on_drop: false }` [INFO] [stdout] 032260ca11d60fb7df878cc9b68e07f0d0692720ede155554f68615be56b6244