[INFO] fetching crate indexed_db_futures 0.1.2... [INFO] testing indexed_db_futures-0.1.2 against beta-2021-09-08 for beta-1.56-1 [INFO] extracting crate indexed_db_futures 0.1.2 into /workspace/builds/worker-93/source [INFO] validating manifest of crates.io crate indexed_db_futures 0.1.2 on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate indexed_db_futures 0.1.2 [INFO] finished tweaking crates.io crate indexed_db_futures 0.1.2 [INFO] tweaked toml for crates.io crate indexed_db_futures 0.1.2 written to /workspace/builds/worker-93/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "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" "+beta-2021-09-08" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30f411407098ef27a554cb6d2d4bc9a0cb85d34c9dc21753401fe3377bcd01b3 [INFO] running `Command { std: "docker" "start" "-a" "30f411407098ef27a554cb6d2d4bc9a0cb85d34c9dc21753401fe3377bcd01b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30f411407098ef27a554cb6d2d4bc9a0cb85d34c9dc21753401fe3377bcd01b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30f411407098ef27a554cb6d2d4bc9a0cb85d34c9dc21753401fe3377bcd01b3", kill_on_drop: false }` [INFO] [stdout] 30f411407098ef27a554cb6d2d4bc9a0cb85d34c9dc21753401fe3377bcd01b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49edc172624770ba604c6ed4300f7ee5d2448ac23b703a73a504de4090b41bde [INFO] running `Command { std: "docker" "start" "-a" "49edc172624770ba604c6ed4300f7ee5d2448ac23b703a73a504de4090b41bde", 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] Compiling wasm-bindgen-shared v0.2.77 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.77 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.77 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.77 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.77 [INFO] [stderr] Compiling js-sys v0.3.54 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.27 [INFO] [stderr] Compiling web-sys v0.3.54 [INFO] [stderr] Compiling indexed_db_futures v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.32s [INFO] running `Command { std: "docker" "inspect" "49edc172624770ba604c6ed4300f7ee5d2448ac23b703a73a504de4090b41bde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49edc172624770ba604c6ed4300f7ee5d2448ac23b703a73a504de4090b41bde", kill_on_drop: false }` [INFO] [stdout] 49edc172624770ba604c6ed4300f7ee5d2448ac23b703a73a504de4090b41bde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04bff9a88fba19f3136a69de6d0986a2629e3a972b821b1487bbdd19118832ef [INFO] running `Command { std: "docker" "start" "-a" "04bff9a88fba19f3136a69de6d0986a2629e3a972b821b1487bbdd19118832ef", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.27 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.27 [INFO] [stderr] Compiling indexed_db_futures v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.80s [INFO] running `Command { std: "docker" "inspect" "04bff9a88fba19f3136a69de6d0986a2629e3a972b821b1487bbdd19118832ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04bff9a88fba19f3136a69de6d0986a2629e3a972b821b1487bbdd19118832ef", kill_on_drop: false }` [INFO] [stdout] 04bff9a88fba19f3136a69de6d0986a2629e3a972b821b1487bbdd19118832ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-93/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 895e5c128e55ffccae5369d22ddc5f81bf05c72a3b8dbf67fcf8bc3f8b24e723 [INFO] running `Command { std: "docker" "start" "-a" "895e5c128e55ffccae5369d22ddc5f81bf05c72a3b8dbf67fcf8bc3f8b24e723", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/indexed_db_futures-02502b5235a7c0e6) [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 indexed_db_futures [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 36) ... FAILED [INFO] [stdout] test src/idb_cursor.rs - idb_cursor (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 36) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `DomException` in this scope [INFO] [stdout] --> src/lib.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn example() -> Result<(), DomException> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::DomException; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:42:82 [INFO] [stdout] | [INFO] [stdout] 9 | db_req.set_on_upgrade_needed(Some(|evt: IdbVersionChangeEvent| -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 24 | let value_to_put: JsValue = get_some_js_value(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_some_js_value` in this scope [INFO] [stdout] --> src/lib.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 24 | let value_to_put: JsValue = get_some_js_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:74:23 [INFO] [stdout] | [INFO] [stdout] 41 | let value: Option = store.get_owned("my_key")?.await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `use_value` in this scope [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 42 | use_value(value); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/idb_cursor.rs - idb_cursor (line 8) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `object_store` in this scope [INFO] [stdout] --> src/idb_cursor.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 3 | match object_store.open_cursor()?.await? { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/idb_cursor.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 5 | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/idb_cursor.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 6 | let first_value: JsValue = cursor.value(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/idb_cursor.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 10 | let subsequent_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/idb_cursor.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 11 | let subsequent_value: JsValue = cursor.value(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `KeyVal` in this scope [INFO] [stdout] --> src/idb_cursor.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 15 | let cursor_contents: Vec = cursor.into_vec(0).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use indexed_db_futures::idb_cursor::KeyVal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/idb_cursor.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | match object_store.open_cursor()?.await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/idb_cursor.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | while cursor.continue_cursor()?.await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/idb_cursor.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let cursor_contents: Vec = cursor.into_vec(0).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 `FromResidual`) [INFO] [stdout] --> src/idb_cursor.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | match object_store.open_cursor()?.await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | Some(cursor) => { [INFO] [stdout] 5 | | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } _doctest_main_src_idb_cursor_rs_8_0() } [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] note: required by `from_residual` [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/idb_cursor.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | match object_store.open_cursor()?.await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | Some(cursor) => { [INFO] [stdout] 5 | | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } _doctest_main_src_idb_cursor_rs_8_0() } [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] note: required by `from_residual` [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/idb_cursor.rs:15:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | match object_store.open_cursor()?.await? { [INFO] [stdout] 4 | | Some(cursor) => { [INFO] [stdout] 5 | | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 9 | | while cursor.continue_cursor()?.await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } _doctest_main_src_idb_cursor_rs_8_0() } [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] note: required by `from_residual` [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/idb_cursor.rs:15:46 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | match object_store.open_cursor()?.await? { [INFO] [stdout] 4 | | Some(cursor) => { [INFO] [stdout] 5 | | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 9 | | while cursor.continue_cursor()?.await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } _doctest_main_src_idb_cursor_rs_8_0() } [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] note: required by `from_residual` [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/idb_cursor.rs:21:68 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_idb_cursor_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | match object_store.open_cursor()?.await? { [INFO] [stdout] 4 | | Some(cursor) => { [INFO] [stdout] 5 | | let first_key: JsValue = cursor.key().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 15 | | let cursor_contents: Vec = cursor.into_vec(0).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } _doctest_main_src_idb_cursor_rs_8_0() } [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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, 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/idb_cursor.rs - idb_cursor (line 8) [INFO] [stdout] src/lib.rs - (line 36) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "895e5c128e55ffccae5369d22ddc5f81bf05c72a3b8dbf67fcf8bc3f8b24e723", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "895e5c128e55ffccae5369d22ddc5f81bf05c72a3b8dbf67fcf8bc3f8b24e723", kill_on_drop: false }` [INFO] [stdout] 895e5c128e55ffccae5369d22ddc5f81bf05c72a3b8dbf67fcf8bc3f8b24e723