[INFO] fetching crate virustotal3 3.0.2... [INFO] testing virustotal3-3.0.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate virustotal3 3.0.2 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate virustotal3 3.0.2 [INFO] finished tweaking crates.io crate virustotal3 3.0.2 [INFO] tweaked toml for crates.io crate virustotal3 3.0.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate virustotal3 3.0.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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 158 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] [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] d49ada69ef7ef7f0b11d320c68a21ad7b72623f54d4da8da1768a8f14a6aea66 [INFO] running `Command { std: "docker" "start" "-a" "d49ada69ef7ef7f0b11d320c68a21ad7b72623f54d4da8da1768a8f14a6aea66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d49ada69ef7ef7f0b11d320c68a21ad7b72623f54d4da8da1768a8f14a6aea66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d49ada69ef7ef7f0b11d320c68a21ad7b72623f54d4da8da1768a8f14a6aea66", kill_on_drop: false }` [INFO] [stdout] d49ada69ef7ef7f0b11d320c68a21ad7b72623f54d4da8da1768a8f14a6aea66 [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] 6d94417f4e823e6af571e51bcd8b9e3f335a4e4be2ca6a15ba98ed3d5fa478cf [INFO] running `Command { std: "docker" "start" "-a" "6d94417f4e823e6af571e51bcd8b9e3f335a4e4be2ca6a15ba98ed3d5fa478cf", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling url v2.5.7 [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 virustotal3 v3.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.74s [INFO] running `Command { std: "docker" "inspect" "6d94417f4e823e6af571e51bcd8b9e3f335a4e4be2ca6a15ba98ed3d5fa478cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d94417f4e823e6af571e51bcd8b9e3f335a4e4be2ca6a15ba98ed3d5fa478cf", kill_on_drop: false }` [INFO] [stdout] 6d94417f4e823e6af571e51bcd8b9e3f335a4e4be2ca6a15ba98ed3d5fa478cf [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] b00ef064bb2bdbe84a95426c670e74f3adbf1aaf44c4419cc5f219a32b4e8d31 [INFO] running `Command { std: "docker" "start" "-a" "b00ef064bb2bdbe84a95426c670e74f3adbf1aaf44c4419cc5f219a32b4e8d31", kill_on_drop: false }` [INFO] [stderr] Compiling virustotal3 v3.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.67s [INFO] running `Command { std: "docker" "inspect" "b00ef064bb2bdbe84a95426c670e74f3adbf1aaf44c4419cc5f219a32b4e8d31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b00ef064bb2bdbe84a95426c670e74f3adbf1aaf44c4419cc5f219a32b4e8d31", kill_on_drop: false }` [INFO] [stdout] b00ef064bb2bdbe84a95426c670e74f3adbf1aaf44c4419cc5f219a32b4e8d31 [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] 97394d83ac7973947ca3983b7fa7b6e9c4ed3e233b6ad08b38d6c5cb8ff83f68 [INFO] running `Command { std: "docker" "start" "-a" "97394d83ac7973947ca3983b7fa7b6e9c4ed3e233b6ad08b38d6c5cb8ff83f68", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.66s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/virustotal3-d63d3895445f6e71) [INFO] [stderr] Doc-tests virustotal3 [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 21 tests [INFO] [stdout] test src/domain/mod.rs - domain::VtClient<'a>::report_domain (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - file (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::get_report_file (line 42) ... FAILED [INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::rescan_file (line 65) ... FAILED [INFO] [stdout] test src/lib.rs - comment (line 145) ... FAILED [INFO] [stdout] test src/lib.rs - comment (line 134) ... FAILED [INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::delete_comment (line 105) ... FAILED [INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::put_comment (line 12) ... FAILED [INFO] [stdout] test src/url/mod.rs - url::VtClient<'a>::scan_url (line 12) ... FAILED [INFO] [stdout] test src/ip/mod.rs - ip::VtClient<'a>::report_ip_address (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - comment (line 122) ... FAILED [INFO] [stdout] test src/lib.rs - domain (line 54) ... FAILED [INFO] [stdout] test src/lib.rs - ip (line 69) ... FAILED [INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::get_comment (line 67) ... FAILED [INFO] [stdout] test src/lib.rs - file (line 107) ... FAILED [INFO] [stdout] test src/url/mod.rs - url::VtClient<'a>::report_url (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - file (line 87) ... FAILED [INFO] [stdout] test src/lib.rs - url (line 29) ... FAILED [INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::scan_file (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - url (line 39) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/domain/mod.rs - domain::VtClient<'a>::report_domain (line 12) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/domain/mod.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_domain_mod_rs_12_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | vt.report_domain("example.com").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - file (line 97) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 98 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_97_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 103 | vt.get_report_file(&hash).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | vt.scan_url(&url).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file/mod.rs - file::VtClient<'a>::get_report_file (line 42) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/file/mod.rs:47:66 [INFO] [stdout] | [INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_mod_rs_42_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 47 | vt.get_report_file("SHA-256, SHA-1 or MD5 identifying the file").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file/mod.rs - file::VtClient<'a>::rescan_file (line 65) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/file/mod.rs:70:62 [INFO] [stdout] | [INFO] [stdout] 66 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_mod_rs_65_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 70 | vt.rescan_file("SHA-256, SHA-1 or MD5 identifying the file").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - comment (line 145) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 146 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_145_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 151 | vt.delete_comment(&resource).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - comment (line 134) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 135 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_134_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 141 | vt.get_comment(&resource, &vt_type).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/comment/mod.rs - comment::VtClient<'a>::delete_comment (line 105) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/comment/mod.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 106 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_comment_mod_rs_105_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 111 | vt.delete_comment(&resource).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/comment/mod.rs - comment::VtClient<'a>::put_comment (line 12) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/comment/mod.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_comment_mod_rs_12_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | vt.put_comment(&resource, &comment, &vt_type).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/url/mod.rs - url::VtClient<'a>::scan_url (line 12) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/url/mod.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_url_mod_rs_12_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | vt.scan_url(url).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ip/mod.rs - ip::VtClient<'a>::report_ip_address (line 12) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/ip/mod.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ip_mod_rs_12_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | vt.report_ip_address("192.168.2.1").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - comment (line 122) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:130:46 [INFO] [stdout] | [INFO] [stdout] 123 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_122_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 130 | vt.put_comment(resource, &comment, &vt_type).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - domain (line 54) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 55 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_54_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 60 | vt.report_domain(&domain).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - ip (line 69) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 70 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 75 | vt.report_ip_address(&ip).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/comment/mod.rs - comment::VtClient<'a>::get_comment (line 67) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/comment/mod.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 68 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_comment_mod_rs_67_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 74 | vt.get_comment(&resource, &vt_type).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - file (line 107) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 108 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_107_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 113 | vt.rescan_file(resource).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/url/mod.rs - url::VtClient<'a>::report_url (line 40) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/url/mod.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_url_mod_rs_40_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 46 | vt.report_url(resource).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - file (line 87) 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:93:24 [INFO] [stdout] | [INFO] [stdout] 88 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 93 | vt.scan_file(&filename)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 88 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() -> Result<(), Box> { [INFO] [stdout] 89 | use virustotal3::VtClient; [INFO] [stdout] ... [INFO] [stdout] 93 | vt.scan_file(&filename)?; [INFO] [stdout] 94 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - url (line 29) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_29_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 35 | vt.scan_url(&url).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file/mod.rs - file::VtClient<'a>::scan_file (line 12) 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/file/mod.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_mod_rs_12_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 18 | vt.scan_file("eicar.txt")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 13 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_mod_rs_12_0() -> Result<(), Box> { [INFO] [stdout] 14 | use virustotal3::VtClient; [INFO] [stdout] ... [INFO] [stdout] 18 | vt.scan_file("eicar.txt")?; [INFO] [stdout] 19 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - url (line 39) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_39_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 45 | vt.report_url(&resource).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/comment/mod.rs - comment::VtClient<'a>::delete_comment (line 105) [INFO] [stdout] src/comment/mod.rs - comment::VtClient<'a>::get_comment (line 67) [INFO] [stdout] src/comment/mod.rs - comment::VtClient<'a>::put_comment (line 12) [INFO] [stdout] src/domain/mod.rs - domain::VtClient<'a>::report_domain (line 12) [INFO] [stdout] src/file/mod.rs - file::VtClient<'a>::get_report_file (line 42) [INFO] [stdout] src/file/mod.rs - file::VtClient<'a>::rescan_file (line 65) [INFO] [stdout] src/file/mod.rs - file::VtClient<'a>::scan_file (line 12) [INFO] [stdout] src/ip/mod.rs - ip::VtClient<'a>::report_ip_address (line 12) [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] src/lib.rs - comment (line 122) [INFO] [stdout] src/lib.rs - comment (line 134) [INFO] [stdout] src/lib.rs - comment (line 145) [INFO] [stdout] src/lib.rs - domain (line 54) [INFO] [stdout] src/lib.rs - file (line 107) [INFO] [stdout] src/lib.rs - file (line 87) [INFO] [stdout] src/lib.rs - file (line 97) [INFO] [stdout] src/lib.rs - ip (line 69) [INFO] [stdout] src/lib.rs - url (line 29) [INFO] [stdout] src/lib.rs - url (line 39) [INFO] [stdout] src/url/mod.rs - url::VtClient<'a>::report_url (line 40) [INFO] [stdout] src/url/mod.rs - url::VtClient<'a>::scan_url (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 21 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "97394d83ac7973947ca3983b7fa7b6e9c4ed3e233b6ad08b38d6c5cb8ff83f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97394d83ac7973947ca3983b7fa7b6e9c4ed3e233b6ad08b38d6c5cb8ff83f68", kill_on_drop: false }` [INFO] [stdout] 97394d83ac7973947ca3983b7fa7b6e9c4ed3e233b6ad08b38d6c5cb8ff83f68