[INFO] fetching crate duolingo_rs 0.3.2... [INFO] testing duolingo_rs-0.3.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate duolingo_rs 0.3.2 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate duolingo_rs 0.3.2 [INFO] finished tweaking crates.io crate duolingo_rs 0.3.2 [INFO] tweaked toml for crates.io crate duolingo_rs 0.3.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate duolingo_rs 0.3.2 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 192 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.24) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f64252f928e585a4edc4455acbe5f9b01eaece4dff623873205a11ab47596904 [INFO] running `Command { std: "docker" "start" "-a" "f64252f928e585a4edc4455acbe5f9b01eaece4dff623873205a11ab47596904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f64252f928e585a4edc4455acbe5f9b01eaece4dff623873205a11ab47596904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f64252f928e585a4edc4455acbe5f9b01eaece4dff623873205a11ab47596904", kill_on_drop: false }` [INFO] [stdout] f64252f928e585a4edc4455acbe5f9b01eaece4dff623873205a11ab47596904 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66936e917de579cb9c8383092bc5d97de25c7b9ae9a7727ced606d70b577268e [INFO] running `Command { std: "docker" "start" "-a" "66936e917de579cb9c8383092bc5d97de25c7b9ae9a7727ced606d70b577268e", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling cookie_store v0.20.0 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling duolingo_rs v0.3.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.96s [INFO] running `Command { std: "docker" "inspect" "66936e917de579cb9c8383092bc5d97de25c7b9ae9a7727ced606d70b577268e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66936e917de579cb9c8383092bc5d97de25c7b9ae9a7727ced606d70b577268e", kill_on_drop: false }` [INFO] [stdout] 66936e917de579cb9c8383092bc5d97de25c7b9ae9a7727ced606d70b577268e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0cc1d48612ba23e645359f980e7a51e570e2117f8c1e589bf10971e72c75ea0b [INFO] running `Command { std: "docker" "start" "-a" "0cc1d48612ba23e645359f980e7a51e570e2117f8c1e589bf10971e72c75ea0b", kill_on_drop: false }` [INFO] [stderr] Compiling duolingo_rs v0.3.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] running `Command { std: "docker" "inspect" "0cc1d48612ba23e645359f980e7a51e570e2117f8c1e589bf10971e72c75ea0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cc1d48612ba23e645359f980e7a51e570e2117f8c1e589bf10971e72c75ea0b", kill_on_drop: false }` [INFO] [stdout] 0cc1d48612ba23e645359f980e7a51e570e2117f8c1e589bf10971e72c75ea0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a6093f8b53ebef6b8e42b481e5863c5f0c7616ad28454271a6a45f73be2f9a4f [INFO] running `Command { std: "docker" "start" "-a" "a6093f8b53ebef6b8e42b481e5863c5f0c7616ad28454271a6a45f73be2f9a4f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/duolingo_rs-1b1be3e9b6893c24) [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests duolingo_rs [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - login (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - fetch_streak_map (line 106) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - login (line 13) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `login_endpoint` in this scope [INFO] [stdout] --> src/lib.rs:28:54 [INFO] [stdout] | [INFO] [stdout] 28 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] note: this implements `Future` and its output type supports `?`, but the future cannot be awaited in a synchronous function [INFO] [stdout] --> src/lib.rs:28:69 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { [INFO] [stdout] | --------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^ [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:28:69 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 28 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - fetch_streak_map (line 106) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `login_endpoint` in this scope [INFO] [stdout] --> src/lib.rs:123:54 [INFO] [stdout] | [INFO] [stdout] 123 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/lib.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 108 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:132:82 [INFO] [stdout] | [INFO] [stdout] 111 | fn main() { [INFO] [stdout] | --------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 132 | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] note: this implements `Future` and its output type supports `?`, but the future cannot be awaited in a synchronous function [INFO] [stdout] --> src/lib.rs:123:69 [INFO] [stdout] | [INFO] [stdout] 111 | fn main() { [INFO] [stdout] | --------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 123 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^ [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:123:69 [INFO] [stdout] | [INFO] [stdout] 111 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 123 | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:132:58 [INFO] [stdout] | [INFO] [stdout] 132 | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] | ---------------- ^^^^^^^^^ expected `Vec`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<_>` [INFO] [stdout] found reference `&Vec<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn fetch_streak_map( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 132 - let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] 132 + let new_data: HashMap = fetch_streak_map(userlist,login_client).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, 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 - fetch_streak_map (line 106) [INFO] [stdout] src/lib.rs - login (line 13) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a6093f8b53ebef6b8e42b481e5863c5f0c7616ad28454271a6a45f73be2f9a4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6093f8b53ebef6b8e42b481e5863c5f0c7616ad28454271a6a45f73be2f9a4f", kill_on_drop: false }` [INFO] [stdout] a6093f8b53ebef6b8e42b481e5863c5f0c7616ad28454271a6a45f73be2f9a4f