[INFO] fetching crate virustotal3 3.0.2...
[INFO] testing virustotal3-3.0.2 against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681
[INFO] extracting crate virustotal3 3.0.2 into /workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate virustotal3 3.0.2 on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 159 packages to latest compatible versions
[INFO] [stderr]       Adding reqwest v0.11.27 (available: v0.13.1)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3fd773cf8c93fe73595e2c7814db1ab2c0fb15e4a8e5d08750702236fd7855ab
[INFO] running `Command { std: "docker" "start" "-a" "3fd773cf8c93fe73595e2c7814db1ab2c0fb15e4a8e5d08750702236fd7855ab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3fd773cf8c93fe73595e2c7814db1ab2c0fb15e4a8e5d08750702236fd7855ab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3fd773cf8c93fe73595e2c7814db1ab2c0fb15e4a8e5d08750702236fd7855ab", kill_on_drop: false }`
[INFO] [stdout] 3fd773cf8c93fe73595e2c7814db1ab2c0fb15e4a8e5d08750702236fd7855ab
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6811988978abcdeac5bd4911bf1d930818f129459a5a8eaade91473c91eb4a69
[INFO] running `Command { std: "docker" "start" "-a" "6811988978abcdeac5bd4911bf1d930818f129459a5a8eaade91473c91eb4a69", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling virustotal3 v3.0.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.76s
[INFO] running `Command { std: "docker" "inspect" "6811988978abcdeac5bd4911bf1d930818f129459a5a8eaade91473c91eb4a69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6811988978abcdeac5bd4911bf1d930818f129459a5a8eaade91473c91eb4a69", kill_on_drop: false }`
[INFO] [stdout] 6811988978abcdeac5bd4911bf1d930818f129459a5a8eaade91473c91eb4a69
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0d40ac0adecf7424892fe7f4847ae9039e9d3cb21be70b02d48985b4dbbf2824
[INFO] running `Command { std: "docker" "start" "-a" "0d40ac0adecf7424892fe7f4847ae9039e9d3cb21be70b02d48985b4dbbf2824", 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.28s
[INFO] running `Command { std: "docker" "inspect" "0d40ac0adecf7424892fe7f4847ae9039e9d3cb21be70b02d48985b4dbbf2824", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0d40ac0adecf7424892fe7f4847ae9039e9d3cb21be70b02d48985b4dbbf2824", kill_on_drop: false }`
[INFO] [stdout] 0d40ac0adecf7424892fe7f4847ae9039e9d3cb21be70b02d48985b4dbbf2824
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 61ab6c4aacdbc971241acd13ab613a9bf5cdb41719380e2b9bf1ec6d42697b1d
[INFO] running `Command { std: "docker" "start" "-a" "61ab6c4aacdbc971241acd13ab613a9bf5cdb41719380e2b9bf1ec6d42697b1d", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/virustotal3-850c73f5c675c20a)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests virustotal3
[INFO] [stdout] 
[INFO] [stdout] running 21 tests
[INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::get_report_file (line 42) ... FAILED
[INFO] [stdout] test src/ip/mod.rs - ip::VtClient<'a>::report_ip_address (line 12) ... FAILED
[INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::put_comment (line 12) ... FAILED
[INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::rescan_file (line 65) ... FAILED
[INFO] [stdout] test src/lib.rs - comment (line 134) ... FAILED
[INFO] [stdout] test src/domain/mod.rs - domain::VtClient<'a>::report_domain (line 12) ... FAILED
[INFO] [stdout] test src/file/mod.rs - file::VtClient<'a>::scan_file (line 12) ... FAILED
[INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::delete_comment (line 105) ... 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/lib.rs - file (line 97) ... FAILED
[INFO] [stdout] test src/comment/mod.rs - comment::VtClient<'a>::get_comment (line 67) ... FAILED
[INFO] [stdout] test src/lib.rs - comment (line 145) ... FAILED
[INFO] [stdout] test src/lib.rs - comment (line 122) ... FAILED
[INFO] [stdout] test src/lib.rs - file (line 107) ... FAILED
[INFO] [stdout] test src/lib.rs - url (line 39) ... FAILED
[INFO] [stdout] test src/url/mod.rs - url::VtClient<'a>::scan_url (line 12) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 13) ... FAILED
[INFO] [stdout] test src/lib.rs - file (line 87) ... FAILED
[INFO] [stdout] test src/url/mod.rs - url::VtClient<'a>::report_url (line 40) ... FAILED
[INFO] [stdout] test src/lib.rs - url (line 29) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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/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/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/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 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/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/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<dyn std::error::Error>> {
[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/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/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/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/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 - 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 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 - 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/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] ---- 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/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/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<dyn std::error::Error>> {
[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/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 - 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] 
[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 1.01s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "61ab6c4aacdbc971241acd13ab613a9bf5cdb41719380e2b9bf1ec6d42697b1d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "61ab6c4aacdbc971241acd13ab613a9bf5cdb41719380e2b9bf1ec6d42697b1d", kill_on_drop: false }`
[INFO] [stdout] 61ab6c4aacdbc971241acd13ab613a9bf5cdb41719380e2b9bf1ec6d42697b1d
