[INFO] fetching crate site_icons 0.1.6... [INFO] testing site_icons-0.1.6 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate site_icons 0.1.6 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate site_icons 0.1.6 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate site_icons 0.1.6 [INFO] finished tweaking crates.io crate site_icons 0.1.6 [INFO] tweaked toml for crates.io crate site_icons 0.1.6 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate crates.io crate site_icons 0.1.6 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_with_macros v1.3.0 [INFO] [stderr] Downloaded bumpalo v3.5.0 [INFO] [stderr] Downloaded wasm-streams v0.1.2 [INFO] [stderr] Downloaded quoted-string v0.2.2 [INFO] [stderr] Downloaded mime-parse-4 v0.0.0 [INFO] [stderr] Downloaded reqwest-wasm v0.11.0 [INFO] [stderr] Downloaded serde_with v1.6.2 [INFO] [stderr] Downloaded mime_4 v0.4.0-a.0 [INFO] [stderr] Downloaded tokio-futures-byteorder v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc0f5cb622dde18b881397e12aa347d4af4b53f690b6bc826c168e2735f812aa [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc0f5cb622dde18b881397e12aa347d4af4b53f690b6bc826c168e2735f812aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc0f5cb622dde18b881397e12aa347d4af4b53f690b6bc826c168e2735f812aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc0f5cb622dde18b881397e12aa347d4af4b53f690b6bc826c168e2735f812aa", kill_on_drop: false }` [INFO] [stdout] cc0f5cb622dde18b881397e12aa347d4af4b53f690b6bc826c168e2735f812aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 533095e16bd0434b11152eb6b8c5ba42a466bfc7b6832204797c50778380b7ef [INFO] running `Command { std: "docker" "start" "-a" "533095e16bd0434b11152eb6b8c5ba42a466bfc7b6832204797c50778380b7ef", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling libc v0.2.84 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling futures-io v0.3.12 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling thin-slice v0.1.1 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling mime-parse-4 v0.0.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling tokio v1.1.1 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling time v0.2.25 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling data-url v0.1.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling futures-channel v0.3.12 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling futures-task v0.3.12 [INFO] [stderr] Compiling thread_local v1.1.2 [INFO] [stderr] Compiling dtoa-short v0.3.3 [INFO] [stderr] Compiling servo_arc v0.1.1 [INFO] [stderr] Compiling textwrap v0.12.1 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling quoted-string v0.2.2 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling tendril v0.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling mime_4 v0.4.0-a.0 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.7 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio-futures-byteorder v0.2.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling http-body v0.4.0 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling selectors v0.22.0 [INFO] [stderr] Compiling env_logger v0.8.2 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling tokio-macros v1.0.0 [INFO] [stderr] Compiling futures-macro v0.3.12 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling async-stream-impl v0.3.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.0.4 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling serde_with_macros v1.3.0 [INFO] [stderr] Compiling async-stream v0.3.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.12 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling pin-project v1.0.4 [INFO] [stderr] Compiling clap v3.0.0-beta.2 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling futures-executor v0.3.12 [INFO] [stderr] Compiling tokio-stream v0.1.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling futures v0.3.12 [INFO] [stderr] Compiling tokio-util v0.6.2 [INFO] [stderr] Compiling h2 v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_with v1.6.2 [INFO] [stderr] Compiling vec1 v1.6.0 [INFO] [stderr] Compiling hyper v0.14.2 [INFO] [stderr] Compiling publicsuffix v1.5.4 [INFO] [stderr] Compiling cookie_store v0.12.0 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest-wasm v0.11.0 [INFO] [stderr] Compiling scraper v0.12.0 [INFO] [stderr] Compiling site_icons v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `map_into_keys_values` has been stable since 1.54.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(async_closure, map_into_keys_values, bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 24s [INFO] running `Command { std: "docker" "inspect" "533095e16bd0434b11152eb6b8c5ba42a466bfc7b6832204797c50778380b7ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "533095e16bd0434b11152eb6b8c5ba42a466bfc7b6832204797c50778380b7ef", kill_on_drop: false }` [INFO] [stdout] 533095e16bd0434b11152eb6b8c5ba42a466bfc7b6832204797c50778380b7ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7455cd6c3f164bd31b36bd6fff071450b0f4594f10d58ceb6effa27d745f50de [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7455cd6c3f164bd31b36bd6fff071450b0f4594f10d58ceb6effa27d745f50de", kill_on_drop: false }` [INFO] [stdout] warning: the feature `map_into_keys_values` has been stable since 1.54.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(async_closure, map_into_keys_values, bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling site_icons v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `map_into_keys_values` has been stable since 1.54.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(async_closure, map_into_keys_values, bool_to_option)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.00s [INFO] running `Command { std: "docker" "inspect" "7455cd6c3f164bd31b36bd6fff071450b0f4594f10d58ceb6effa27d745f50de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7455cd6c3f164bd31b36bd6fff071450b0f4594f10d58ceb6effa27d745f50de", kill_on_drop: false }` [INFO] [stdout] 7455cd6c3f164bd31b36bd6fff071450b0f4594f10d58ceb6effa27d745f50de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 96779a35bd2d7eb3b3aa7c40f81733cf020c886cfdf4dbd9b7dc13b08206daf3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "96779a35bd2d7eb3b3aa7c40f81733cf020c886cfdf4dbd9b7dc13b08206daf3", kill_on_drop: false }` [INFO] [stderr] warning: the feature `map_into_keys_values` has been stable since 1.54.0 and no longer requires an attribute to enable [INFO] [stderr] --> src/lib.rs:1:27 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(async_closure, map_into_keys_values, bool_to_option)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(stable_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `map_into_keys_values` has been stable since 1.54.0 and no longer requires an attribute to enable [INFO] [stderr] --> src/lib.rs:1:27 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(async_closure, map_into_keys_values, bool_to_option)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(stable_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/site_icons-8361ed2c3b40f155) [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] Running unittests (/opt/rustwide/target/debug/deps/site_icons-72c7b104e2803e86) [INFO] [stdout] [INFO] [stderr] Doc-tests site_icons [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 6) ... FAILED [INFO] [stdout] test src/icons.rs - icons::Icons::entries (line 247) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 6) stdout ---- [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/lib.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 15 | println("{:?}", icon) [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 15 | println!("{:?}", icon) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | icons.load_website("https://github.com").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:14:15 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | let entries = icons.entries().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:11:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use site_icons::Icons; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let icons = Icons::new(); [INFO] [stdout] 7 | | // scrape the icons from a url [INFO] [stdout] 8 | | icons.load_website("https://github.com").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 16 | | } [INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/icons.rs - icons::Icons::entries (line 247) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/icons.rs:256:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_icons_rs_247_0() { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 11 | } _doctest_main_src_icons_rs_247_0() } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Icons` [INFO] [stdout] --> src/icons.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 4 | let icons = Icons::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use site_icons::Icons; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/icons.rs:254:3 [INFO] [stdout] | [INFO] [stdout] 9 | println("{:?}", icon) [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 9 | println!("{:?}", icon) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/icons.rs:250:47 [INFO] [stdout] | [INFO] [stdout] 3 | async fn run() { [INFO] [stdout] | ________________- [INFO] [stdout] 4 | | let icons = Icons::new(); [INFO] [stdout] 5 | | icons.load_website("https://github.com").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } _doctest_main_src_icons_rs_247_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0433. [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/icons.rs - icons::Icons::entries (line 247) [INFO] [stdout] src/lib.rs - (line 6) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.18s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "96779a35bd2d7eb3b3aa7c40f81733cf020c886cfdf4dbd9b7dc13b08206daf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96779a35bd2d7eb3b3aa7c40f81733cf020c886cfdf4dbd9b7dc13b08206daf3", kill_on_drop: false }` [INFO] [stdout] 96779a35bd2d7eb3b3aa7c40f81733cf020c886cfdf4dbd9b7dc13b08206daf3