[INFO] fetching crate duolingo_rs 0.2.4... [INFO] testing duolingo_rs-0.2.4 against 1.59.0 for beta-1.60-1 [INFO] extracting crate duolingo_rs 0.2.4 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate duolingo_rs 0.2.4 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate duolingo_rs 0.2.4 [INFO] finished tweaking crates.io crate duolingo_rs 0.2.4 [INFO] tweaked toml for crates.io crate duolingo_rs 0.2.4 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e61da4930e057e34e2b9f483fcc101c5d9390d79bfc19e654f18d58511d1cde [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" "3e61da4930e057e34e2b9f483fcc101c5d9390d79bfc19e654f18d58511d1cde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e61da4930e057e34e2b9f483fcc101c5d9390d79bfc19e654f18d58511d1cde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e61da4930e057e34e2b9f483fcc101c5d9390d79bfc19e654f18d58511d1cde", kill_on_drop: false }` [INFO] [stdout] 3e61da4930e057e34e2b9f483fcc101c5d9390d79bfc19e654f18d58511d1cde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2fa1792b35e971e7e81abebd8af7f0252456b9fe6ada74503169d76dcf59ab0 [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" "e2fa1792b35e971e7e81abebd8af7f0252456b9fe6ada74503169d76dcf59ab0", kill_on_drop: false }` [INFO] [stderr] Compiling psl-types v2.0.10 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling publicsuffix v2.1.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling cookie_store v0.15.1 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling duolingo_rs v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 38.25s [INFO] running `Command { std: "docker" "inspect" "e2fa1792b35e971e7e81abebd8af7f0252456b9fe6ada74503169d76dcf59ab0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2fa1792b35e971e7e81abebd8af7f0252456b9fe6ada74503169d76dcf59ab0", kill_on_drop: false }` [INFO] [stdout] e2fa1792b35e971e7e81abebd8af7f0252456b9fe6ada74503169d76dcf59ab0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 360c71c86fc8db349487d4985e4d19f69bc4aae416538895567e5b4babe89b2a [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" "360c71c86fc8db349487d4985e4d19f69bc4aae416538895567e5b4babe89b2a", kill_on_drop: false }` [INFO] [stderr] Compiling duolingo_rs v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `Command { std: "docker" "inspect" "360c71c86fc8db349487d4985e4d19f69bc4aae416538895567e5b4babe89b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "360c71c86fc8db349487d4985e4d19f69bc4aae416538895567e5b4babe89b2a", kill_on_drop: false }` [INFO] [stdout] 360c71c86fc8db349487d4985e4d19f69bc4aae416538895567e5b4babe89b2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.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] 35a1064157328ad82d3af7c27f0c5d4cdf1b9e1fe55a7d72fa01b09e1eefc02a [INFO] running `Command { std: "docker" "start" "-a" "35a1064157328ad82d3af7c27f0c5d4cdf1b9e1fe55a7d72fa01b09e1eefc02a", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/duolingo_rs-25964b714345fdc0) [INFO] [stderr] Doc-tests duolingo_rs [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - login (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - fetch_streak_map (line 88) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - login (line 12) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `login_endpoint` in this scope [INFO] [stdout] --> src/lib.rs:26:54 [INFO] [stdout] | [INFO] [stdout] 16 | 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:26:24 [INFO] [stdout] | [INFO] [stdout] 16 | 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] [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:26:69 [INFO] [stdout] | [INFO] [stdout] 6 | / fn main() { [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | // [INFO] [stdout] 9 | | // please for the love of God don't hardcode your [INFO] [stdout] ... | [INFO] [stdout] 16 | | let login_client = login(my_username,my_password,login_endpoint)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 17 | | [INFO] [stdout] 18 | | // pass off the client anywhere you want now! [INFO] [stdout] 19 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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 88) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `login_endpoint` in this scope [INFO] [stdout] --> src/lib.rs:102:54 [INFO] [stdout] | [INFO] [stdout] 16 | 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:111:19 [INFO] [stdout] | [INFO] [stdout] 25 | 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] 3 | 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:111:81 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | 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:102:24 [INFO] [stdout] | [INFO] [stdout] 16 | 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] [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:102:69 [INFO] [stdout] | [INFO] [stdout] 6 | / fn main() { [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | // [INFO] [stdout] 9 | | // please for the love of God don't hardcode your [INFO] [stdout] ... | [INFO] [stdout] 16 | | 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] 25 | | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] 26 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:111:58 [INFO] [stdout] | [INFO] [stdout] 25 | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] | ^^^^^^^^^ expected struct `Vec`, found `&Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 25 - let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] 25 + let new_data: HashMap = fetch_streak_map(userlist,login_client).await?; [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:111:87 [INFO] [stdout] | [INFO] [stdout] 6 | / fn main() { [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | // [INFO] [stdout] 9 | | // please for the love of God don't hardcode your [INFO] [stdout] ... | [INFO] [stdout] 25 | | let new_data: HashMap = fetch_streak_map(&userlist,login_client).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 26 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 88) [INFO] [stdout] src/lib.rs - login (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.77s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "35a1064157328ad82d3af7c27f0c5d4cdf1b9e1fe55a7d72fa01b09e1eefc02a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35a1064157328ad82d3af7c27f0c5d4cdf1b9e1fe55a7d72fa01b09e1eefc02a", kill_on_drop: false }` [INFO] [stdout] 35a1064157328ad82d3af7c27f0c5d4cdf1b9e1fe55a7d72fa01b09e1eefc02a