[INFO] fetching crate scrapyard 0.3.1... [INFO] testing scrapyard-0.3.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate scrapyard 0.3.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate scrapyard 0.3.1 [INFO] finished tweaking crates.io crate scrapyard 0.3.1 [INFO] tweaked toml for crates.io crate scrapyard 0.3.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scrapyard 0.3.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 201 packages to latest compatible versions [INFO] [stderr] Adding dirs v5.0.1 (available: v6.0.0) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.24) [INFO] [stderr] Adding serde-inline-default v0.1.1 (available: v1.0.0) [INFO] [stderr] Adding serde_default v0.1.0 (available: v0.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded diligent-date-parser v0.1.5 [INFO] [stderr] Downloaded serde-inline-default v0.1.1 [INFO] [stderr] Downloaded rss v2.0.12 [INFO] [stderr] Downloaded atom_syndication v0.12.7 [INFO] [stderr] Downloaded subprocess v0.2.9 [INFO] [stderr] Downloaded serde_default v0.1.0 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ff310472ae5a14d1adb303661c5c1ed57ec49c726d78bf941cfab7280591b5e [INFO] running `Command { std: "docker" "start" "-a" "9ff310472ae5a14d1adb303661c5c1ed57ec49c726d78bf941cfab7280591b5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ff310472ae5a14d1adb303661c5c1ed57ec49c726d78bf941cfab7280591b5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff310472ae5a14d1adb303661c5c1ed57ec49c726d78bf941cfab7280591b5e", kill_on_drop: false }` [INFO] [stdout] 9ff310472ae5a14d1adb303661c5c1ed57ec49c726d78bf941cfab7280591b5e [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc17e80f297b3a82d0ec5844f74469b714929b703e21d601a20fa1dc75606032 [INFO] running `Command { std: "docker" "start" "-a" "dc17e80f297b3a82d0ec5844f74469b714929b703e21d601a20fa1dc75606032", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling never v0.1.0 [INFO] [stderr] Compiling scrapyard v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling diligent-date-parser v0.1.5 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling serde-inline-default v0.1.1 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling atom_syndication v0.12.7 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling rss v2.0.12 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_default v0.1.0 [INFO] [stderr] Compiling tokio-util v0.7.17 [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] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | if $locks.0.get().is_none() { [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | $locks.0.set(std::collections::HashMap::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/locks.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | / $locks [INFO] [stdout] 21 | | .0 [INFO] [stdout] | |__________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.55s [INFO] running `Command { std: "docker" "inspect" "dc17e80f297b3a82d0ec5844f74469b714929b703e21d601a20fa1dc75606032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc17e80f297b3a82d0ec5844f74469b714929b703e21d601a20fa1dc75606032", kill_on_drop: false }` [INFO] [stdout] dc17e80f297b3a82d0ec5844f74469b714929b703e21d601a20fa1dc75606032 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff58ee659db99c85934c5bd6b1b77c2dccbe0dc1a54f4772fd71a008aed2702c [INFO] running `Command { std: "docker" "start" "-a" "ff58ee659db99c85934c5bd6b1b77c2dccbe0dc1a54f4772fd71a008aed2702c", kill_on_drop: false }` [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | if $locks.0.get().is_none() { [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | $locks.0.set(std::collections::HashMap::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/locks.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | / $locks [INFO] [stdout] 21 | | .0 [INFO] [stdout] | |__________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling scrapyard v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | if $locks.0.get().is_none() { [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/locks.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | $locks.0.set(std::collections::HashMap::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/locks.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | / $locks [INFO] [stdout] 21 | | .0 [INFO] [stdout] | |__________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/options/feeds.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.47s [INFO] running `Command { std: "docker" "inspect" "ff58ee659db99c85934c5bd6b1b77c2dccbe0dc1a54f4772fd71a008aed2702c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff58ee659db99c85934c5bd6b1b77c2dccbe0dc1a54f4772fd71a008aed2702c", kill_on_drop: false }` [INFO] [stdout] ff58ee659db99c85934c5bd6b1b77c2dccbe0dc1a54f4772fd71a008aed2702c [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 360f24af51a520db22b5e0596938d108df596f320d31c40ff00306c02917b4d9 [INFO] running `Command { std: "docker" "start" "-a" "360f24af51a520db22b5e0596938d108df596f320d31c40ff00306c02917b4d9", kill_on_drop: false }` [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/locks.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 17 | if $locks.0.get().is_none() { [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/options/feeds.rs:74:37 [INFO] [stderr] | [INFO] [stderr] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/locks.rs:18:17 [INFO] [stderr] | [INFO] [stderr] 18 | $locks.0.set(std::collections::HashMap::default()).unwrap(); [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/options/feeds.rs:74:37 [INFO] [stderr] | [INFO] [stderr] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/locks.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | / $locks [INFO] [stderr] 21 | | .0 [INFO] [stderr] | |__________________^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/options/feeds.rs:74:37 [INFO] [stderr] | [INFO] [stderr] 74 | let _lock = take_lock!(LOCKS, feed.label.clone()); [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: this warning originates in the macro `take_lock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `scrapyard` (lib) generated 3 warnings [INFO] [stderr] warning: `scrapyard` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scrapyard-d4dceef942f41caf) [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 scrapyard [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 42) ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 42) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | let config_path = PathBuf::from("/my/special/path"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_42_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 44 | let config_path = PathBuf::from("/my/special/path"); [INFO] [stdout] 45 | scrapyard::init(Some(config_path)).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[tokio::main] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | let feeds_path = PathBuf::from("feeds.json"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Feeds` [INFO] [stdout] --> src/lib.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let feeds = Feeds::load_json(&feeds_path).await [INFO] [stdout] | ^^^^^ use of undeclared type `Feeds` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use scrapyard::Feeds; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Feeds` [INFO] [stdout] --> src/lib.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | let default = Feeds::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Feeds` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use scrapyard::Feeds; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let feeds = Feeds::load_json(&feeds_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServer` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | HttpServer::new(|| {}) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpServer` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / HttpServer::new(|| {}) [INFO] [stdout] 30 | | .bind(("0.0.0.0", 8080)).unwrap() [INFO] [stdout] 31 | | .run().await.unwrap(); [INFO] [stdout] | |____________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 42) [INFO] [stdout] src/lib.rs - (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "360f24af51a520db22b5e0596938d108df596f320d31c40ff00306c02917b4d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "360f24af51a520db22b5e0596938d108df596f320d31c40ff00306c02917b4d9", kill_on_drop: false }` [INFO] [stdout] 360f24af51a520db22b5e0596938d108df596f320d31c40ff00306c02917b4d9