[INFO] cloning repository https://github.com/nzengi/wasm-oauth2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nzengi/wasm-oauth2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24bc17d339333072d2db38bdb5d7e1c0688e42b8 [INFO] testing nzengi/wasm-oauth2 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nzengi/wasm-oauth2 [INFO] finished tweaking git repo https://github.com/nzengi/wasm-oauth2 [INFO] tweaked toml for git repo https://github.com/nzengi/wasm-oauth2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nzengi/wasm-oauth2 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nzengi/wasm-oauth2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.12.0 [INFO] [stderr] Downloaded cc v1.1.18 [INFO] [stderr] Downloaded hyper-util v0.1.8 [INFO] [stderr] Downloaded rustls-pki-types v1.8.0 [INFO] [stderr] Downloaded rustls-pemfile v2.1.3 [INFO] [stderr] Downloaded reqwest v0.12.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bacbda84f0b9c794deb02241fb3b596fe93b25ae5c9535854c83ca10a2bcbc8c [INFO] running `Command { std: "docker" "start" "-a" "bacbda84f0b9c794deb02241fb3b596fe93b25ae5c9535854c83ca10a2bcbc8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bacbda84f0b9c794deb02241fb3b596fe93b25ae5c9535854c83ca10a2bcbc8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bacbda84f0b9c794deb02241fb3b596fe93b25ae5c9535854c83ca10a2bcbc8c", kill_on_drop: false }` [INFO] [stdout] bacbda84f0b9c794deb02241fb3b596fe93b25ae5c9535854c83ca10a2bcbc8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db0e1a59b6ac42a260789158ff2f60301cabba95babfacbdab26c7b70fe77198 [INFO] running `Command { std: "docker" "start" "-a" "db0e1a59b6ac42a260789158ff2f60301cabba95babfacbdab26c7b70fe77198", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.93 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling cc v1.1.18 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling wasm-bindgen v0.2.93 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling rustls-pki-types v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling ipnet v2.10.0 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.93 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.93 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.93 [INFO] [stderr] Compiling js-sys v0.3.70 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-util v0.1.8 [INFO] [stderr] Compiling web-sys v0.3.70 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.43 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling wasm-oauth2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `web_sys::console` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::console; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `console` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `authorize` in module `oauth_client` [INFO] [stdout] --> src/lib.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | oauth_client::authorize() [INFO] [stdout] | ^^^^^^^^^ not found in `oauth_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `js_sys` [INFO] [stdout] --> src/lib.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn exchange_code(code: String) -> js_sys::Promise { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `js_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `js_sys`, use `cargo add js_sys` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these crates [INFO] [stdout] | [INFO] [stdout] 1 + use wasm_bindgen_futures::js_sys; [INFO] [stdout] | [INFO] [stdout] 1 + use web_sys::js_sys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exchange_code` in module `oauth_client` [INFO] [stdout] --> src/lib.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | future_to_promise(oauth_client::exchange_code(code)) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `oauth_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/oauth_client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen_futures::future_to_promise` [INFO] [stdout] --> src/oauth_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen_futures::future_to_promise; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `json` found for struct `RequestBuilder` in the current scope [INFO] [stdout] --> src/http/fetch_client.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 13 | let res = client.post("https://example.com/token") [INFO] [stdout] | _______________- [INFO] [stdout] 14 | | .json(¶ms) [INFO] [stdout] | | -^^^^ method not found in `RequestBuilder` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/http/fetch_client.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let res = client.post("https://example.com/token") [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | if response.status().is_success() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 13 | let res: Result<_, E> = client.post("https://example.com/token") [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/http/fetch_client.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | let token: AccessToken = response.json().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<{type error}, _>` [INFO] [stdout] --> src/http/fetch_client.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let res = client.post("https://example.com/token") [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | Err(err) => Err(OAuth2Error::RequestError(err.to_string())) [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 13 | let res: Result<_, E> = client.post("https://example.com/token") [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/utils.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn is_token_expired(token: &str) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-oauth2` (lib) due to 8 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "db0e1a59b6ac42a260789158ff2f60301cabba95babfacbdab26c7b70fe77198", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db0e1a59b6ac42a260789158ff2f60301cabba95babfacbdab26c7b70fe77198", kill_on_drop: false }` [INFO] [stdout] db0e1a59b6ac42a260789158ff2f60301cabba95babfacbdab26c7b70fe77198