[INFO] fetching crate imgurs 0.7.2... [INFO] testing imgurs-0.7.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate imgurs 0.7.2 into /workspace/builds/worker-48/source [INFO] validating manifest of crates.io crate imgurs 0.7.2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate imgurs 0.7.2 [INFO] finished tweaking crates.io crate imgurs 0.7.2 [INFO] tweaked toml for crates.io crate imgurs 0.7.2 written to /workspace/builds/worker-48/source/Cargo.toml [INFO] crate crates.io crate imgurs 0.7.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3889ca3e20f20cbf014a6990fb10202fb2f8aca8931e24f02c50193ad9cf6716 [INFO] running `Command { std: "docker" "start" "-a" "3889ca3e20f20cbf014a6990fb10202fb2f8aca8931e24f02c50193ad9cf6716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3889ca3e20f20cbf014a6990fb10202fb2f8aca8931e24f02c50193ad9cf6716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3889ca3e20f20cbf014a6990fb10202fb2f8aca8931e24f02c50193ad9cf6716", kill_on_drop: false }` [INFO] [stdout] 3889ca3e20f20cbf014a6990fb10202fb2f8aca8931e24f02c50193ad9cf6716 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bb021d3d6554c860bc58ef74a1acbf59be19b871e0f2546818e260eb74ddd0b [INFO] running `Command { std: "docker" "start" "-a" "8bb021d3d6554c860bc58ef74a1acbf59be19b871e0f2546818e260eb74ddd0b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.116 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling easy-parallel v3.2.0 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling async-task v4.1.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling roff v0.2.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling rustls-pemfile v0.3.0 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling ordered-stream v0.0.1 [INFO] [stderr] Compiling async-broadcast v0.3.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling validator_types v0.14.0 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling console v0.15.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling simple_logger v2.1.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling better-panic v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling rustls v0.20.2 [INFO] [stderr] Compiling webpki-roots v0.22.2 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.3 [INFO] [stderr] Compiling clap_derive v3.1.7 [INFO] [stderr] Compiling async-recursion v0.3.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_repr v0.1.7 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling clap v3.1.8 [INFO] [stderr] Compiling zvariant_derive v3.1.2 [INFO] [stderr] Compiling zbus_macros v2.1.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-rustls v0.23.2 [INFO] [stderr] Compiling clap_mangen v0.1.2 [INFO] [stderr] Compiling clap_complete v3.1.1 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling enumflags2 v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling zvariant v3.1.2 [INFO] [stderr] Compiling validator v0.14.0 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Compiling zbus_names v2.1.0 [INFO] [stderr] Compiling zbus v2.1.1 [INFO] [stderr] Compiling hyper-rustls v0.23.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling discord-webhook v0.1.0 [INFO] [stderr] Compiling notify-rust v4.5.8 [INFO] [stderr] Compiling imgurs v0.7.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "8bb021d3d6554c860bc58ef74a1acbf59be19b871e0f2546818e260eb74ddd0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bb021d3d6554c860bc58ef74a1acbf59be19b871e0f2546818e260eb74ddd0b", kill_on_drop: false }` [INFO] [stdout] 8bb021d3d6554c860bc58ef74a1acbf59be19b871e0f2546818e260eb74ddd0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b39a440310abc76a880c463447bb3b184cf83f1a7c66380cc1d55e35b7fbbaa [INFO] running `Command { std: "docker" "start" "-a" "0b39a440310abc76a880c463447bb3b184cf83f1a7c66380cc1d55e35b7fbbaa", 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 imgurs v0.7.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.01s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/imgurs-ddb0f8681157365b) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/imgurs-04ed9e76335ee66d) [INFO] running `Command { std: "docker" "inspect" "0b39a440310abc76a880c463447bb3b184cf83f1a7c66380cc1d55e35b7fbbaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b39a440310abc76a880c463447bb3b184cf83f1a7c66380cc1d55e35b7fbbaa", kill_on_drop: false }` [INFO] [stdout] 0b39a440310abc76a880c463447bb3b184cf83f1a7c66380cc1d55e35b7fbbaa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 159c565fd82cf31547d38dc2d337b5ca9b290c61617f6ae38c66067fcce79f3c [INFO] running `Command { std: "docker" "start" "-a" "159c565fd82cf31547d38dc2d337b5ca9b290c61617f6ae38c66067fcce79f3c", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.64s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/imgurs-ddb0f8681157365b) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/imgurs-04ed9e76335ee66d) [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 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests imgurs [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 20) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - (line 48) ... FAILED [INFO] [stdout] test src/lib.rs - (line 41) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 20) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 6 | let client = ImgurClient::new("client id"); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 6 | let client = ImgurClient::new("client id".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] 6 | let client = ImgurClient::new("client id".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 4 | let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 7 | let info = client.upload_image("path/to/image.png").await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:29:71 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 4 | let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").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/lib.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let info = client.upload_image("path/to/image.png").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/lib.rs:29:77 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // From File [INFO] [stdout] 7 | | let info = client.upload_image("path/to/image.png").await?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_27_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] [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:32:58 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").await?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // From File [INFO] [stdout] 7 | | let info = client.upload_image("path/to/image.png").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_27_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] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 3 | client.delete_image("SuPeRsEcReTDeLeTeHaSh").await?; // delete hash [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_36_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 3 | client.delete_image("SuPeRsEcReTDeLeTeHaSh").await?; // delete hash [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stderr] error: test failed, to rerun pass '--doc' [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:37:51 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_36_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | client.delete_image("SuPeRsEcReTDeLeTeHaSh").await?; // delete hash [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_36_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] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 48) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 3 | let info = client.rate_limit.await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_48_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 3 | let info = client.rate_limit.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/lib.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_48_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let info = client.rate_limit.await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!("{:?}", info); [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_48_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] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 3 | let info = client.image_info("lFaGr1x").await?; // image id [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 3 | let info = client.image_info("lFaGr1x").await?; // image id [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/lib.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let info = client.image_info("lFaGr1x").await?; // image id [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!("{:?}", info); [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_41_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] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, 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 - (line 20) [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 36) [INFO] [stdout] src/lib.rs - (line 41) [INFO] [stdout] src/lib.rs - (line 48) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.59s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "159c565fd82cf31547d38dc2d337b5ca9b290c61617f6ae38c66067fcce79f3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "159c565fd82cf31547d38dc2d337b5ca9b290c61617f6ae38c66067fcce79f3c", kill_on_drop: false }` [INFO] [stdout] 159c565fd82cf31547d38dc2d337b5ca9b290c61617f6ae38c66067fcce79f3c