[INFO] fetching crate runner_q 0.4.1... [INFO] testing runner_q-0.4.1 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate runner_q 0.4.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate runner_q 0.4.1 [INFO] finished tweaking crates.io crate runner_q 0.4.1 [INFO] tweaked toml for crates.io crate runner_q 0.4.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate runner_q 0.4.1 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate runner_q 0.4.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22404d007b52212b99a4e440f6eff5ca48d8eb3b3b16cfdccbfe9581fb88d05b [INFO] running `Command { std: "docker" "start" "-a" "22404d007b52212b99a4e440f6eff5ca48d8eb3b3b16cfdccbfe9581fb88d05b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22404d007b52212b99a4e440f6eff5ca48d8eb3b3b16cfdccbfe9581fb88d05b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22404d007b52212b99a4e440f6eff5ca48d8eb3b3b16cfdccbfe9581fb88d05b", kill_on_drop: false }` [INFO] [stdout] 22404d007b52212b99a4e440f6eff5ca48d8eb3b3b16cfdccbfe9581fb88d05b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 811a3946b081eb30343e02661d3e0c94f12f6182c7b5dd0f59aa38b952e64eff [INFO] running `Command { std: "docker" "start" "-a" "811a3946b081eb30343e02661d3e0c94f12f6182c7b5dd0f59aa38b952e64eff", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.6 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling bb8 v0.8.6 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling redis v0.24.0 [INFO] [stderr] Compiling bb8-redis v0.14.0 [INFO] [stderr] Compiling runner_q v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "811a3946b081eb30343e02661d3e0c94f12f6182c7b5dd0f59aa38b952e64eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "811a3946b081eb30343e02661d3e0c94f12f6182c7b5dd0f59aa38b952e64eff", kill_on_drop: false }` [INFO] [stdout] 811a3946b081eb30343e02661d3e0c94f12f6182c7b5dd0f59aa38b952e64eff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c25a3c30e2584a4aec50aa3616285edb9882873c956fdacb16c31c6d335371fe [INFO] running `Command { std: "docker" "start" "-a" "c25a3c30e2584a4aec50aa3616285edb9882873c956fdacb16c31c6d335371fe", kill_on_drop: false }` [INFO] [stderr] Compiling runner_q v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `FileProcessingActivity` is never constructed [INFO] [stdout] --> src/activity/error.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FileProcessingActivity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.77s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "c25a3c30e2584a4aec50aa3616285edb9882873c956fdacb16c31c6d335371fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c25a3c30e2584a4aec50aa3616285edb9882873c956fdacb16c31c6d335371fe", kill_on_drop: false }` [INFO] [stdout] c25a3c30e2584a4aec50aa3616285edb9882873c956fdacb16c31c6d335371fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2e76ee97b3ed60a2bb102577291d8eaebdd6254c9320b161bb5f4799509de0da [INFO] running `Command { std: "docker" "start" "-a" "2e76ee97b3ed60a2bb102577291d8eaebdd6254c9320b161bb5f4799509de0da", kill_on_drop: false }` [INFO] [stderr] warning: struct `FileProcessingActivity` is never constructed [INFO] [stderr] --> src/activity/error.rs:81:16 [INFO] [stderr] | [INFO] [stderr] 81 | pub struct FileProcessingActivity; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `runner_q` (lib test) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/runner_q-faf2f8907a33e154) [INFO] [stdout] running 1 test [INFO] [stderr] Doc-tests runner_q [INFO] [stdout] test queue::queue::tests::test_priority_score_calculation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::calculate_priority_score (line 118) ... ignored [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::create_queue_entry (line 159) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::enqueue (line 273) ... FAILED [INFO] [stdout] test src/activity/activity.rs - activity::activity::ActivityFuture::new (line 140) ... FAILED [INFO] [stdout] test src/activity/activity.rs - activity::activity::ActivityFuture::get_result (line 166) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::get_result (line 712) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::mark_failed (line 435) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::get_stats (line 625) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 153) - compile ... ok [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::get_main_queue_key (line 100) - compile ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::mark_completed (line 409) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 199) - compile ... ok [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::dequeue (line 345) ... FAILED [INFO] [stdout] test src/lib.rs - (line 18) - compile ... ok [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::process_scheduled_activities (line 560) - compile ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::new (line 83) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::schedule_activity (line 508) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::parse_queue_entry (line 183) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::update_activity_status (line 210) ... FAILED [INFO] [stdout] test src/runner/runner.rs - runner::runner::WorkerEngine::start (line 50) ... FAILED [INFO] [stdout] test src/queue/queue.rs - queue::queue::ActivityQueue::store_result (line 673) - compile ... FAILED [INFO] [stdout] test src/runner/runner.rs - runner::runner::WorkerEngine::start_worker_loop (line 131) ... FAILED [INFO] [stdout] test src/runner/runner.rs - runner::runner::WorkerEngine::start_scheduled_activities_processor (line 300) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::create_queue_entry (line 159) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `queue` in this scope [INFO] [stdout] --> src/queue/queue.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 4 | let entry = queue.create_queue_entry(&activity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `activity` in this scope [INFO] [stdout] --> src/queue/queue.rs:161:39 [INFO] [stdout] | [INFO] [stdout] 4 | let entry = queue.create_queue_entry(&activity); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `activity` in this scope [INFO] [stdout] --> src/queue/queue.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 5 | assert!(entry.starts_with(&activity.id)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::enqueue (line 273) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `queue` in this scope [INFO] [stdout] --> src/queue/queue.rs:278:1 [INFO] [stdout] | [INFO] [stdout] 7 | queue.enqueue(activity).await.unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `activity` in this scope [INFO] [stdout] --> src/queue/queue.rs:278:15 [INFO] [stdout] | [INFO] [stdout] 7 | queue.enqueue(activity).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activity/activity.rs - activity::activity::ActivityFuture::new (line 140) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::ActivityFuture` [INFO] [stdout] --> src/activity/activity.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ActivityFuture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `ActivityFuture` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 5 - use crate::ActivityFuture; [INFO] [stdout] 5 + use runner_q::ActivityFuture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/activity/activity.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 6 | let queue = Arc::new(/* an implementation of ActivityQueueTrait */); [INFO] [stdout] | ^^^^^^^^----------------------------------------------- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/2440211fe03bc45c89b6dc1a3df18382ce91e32b/library/alloc/src/sync.rs:406:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 6 - let queue = Arc::new(/* an implementation of ActivityQueueTrait */); [INFO] [stdout] 6 + let queue = Arc::new(/* data */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activity/activity.rs - activity::activity::ActivityFuture::get_result (line 166) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActivityFuture` [INFO] [stdout] --> src/activity/activity.rs:168:11 [INFO] [stdout] | [INFO] [stdout] 4 | let fut = ActivityFuture::new(queue.clone(), activity_id); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `ActivityFuture` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityFuture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `queue` in this scope [INFO] [stdout] --> src/activity/activity.rs:168:31 [INFO] [stdout] | [INFO] [stdout] 4 | let fut = ActivityFuture::new(queue.clone(), activity_id); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `activity_id` in this scope [INFO] [stdout] --> src/activity/activity.rs:168:46 [INFO] [stdout] | [INFO] [stdout] 4 | let fut = ActivityFuture::new(queue.clone(), activity_id); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/activity/activity.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_activity_activity_rs_166_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | match fut.get_result().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::get_result (line 712) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `my_crate` [INFO] [stdout] --> src/queue/queue.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 4 | use my_crate::queue::ActivityQueue; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `my_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `my_crate`, use `cargo add my_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::mark_failed (line 435) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio_test` [INFO] [stdout] --> src/queue/queue.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio_test::block_on; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_test`, use `cargo add tokio_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Priority` in the crate root [INFO] [stdout] --> src/queue/queue.rs:447:22 [INFO] [stdout] | [INFO] [stdout] 14 | priority: crate::Priority::Normal, [INFO] [stdout] | ^^^^^^^^ could not find `Priority` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:438:37 [INFO] [stdout] | [INFO] [stdout] 5 | async fn doc_example(queue: &crate::queue::ActivityQueue) { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 5 | async fn doc_example(queue: &crate::runner_q::queue::ActivityQueue) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - async fn doc_example(queue: &crate::queue::ActivityQueue) { [INFO] [stdout] 5 + async fn doc_example(queue: &queue::ActivityQueue) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Activity` in the crate root [INFO] [stdout] --> src/queue/queue.rs:439:23 [INFO] [stdout] | [INFO] [stdout] 6 | let activity = crate::Activity { [INFO] [stdout] | ^^^^^^^^ not found in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ActivityStatus` in the crate root [INFO] [stdout] --> src/queue/queue.rs:444:20 [INFO] [stdout] | [INFO] [stdout] 11 | status: crate::ActivityStatus::Pending, [INFO] [stdout] | ^^^^^^^^^^^^^^ could not find `ActivityStatus` in the crate root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityStatus; [INFO] [stdout] | [INFO] [stdout] help: if you import `ActivityStatus`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 11 - status: crate::ActivityStatus::Pending, [INFO] [stdout] 11 + status: ActivityStatus::Pending, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::get_stats (line 625) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:626:37 [INFO] [stdout] | [INFO] [stdout] 3 | async fn run_example(queue: &crate::queue::ActivityQueue) { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 3 | async fn run_example(queue: &crate::runner_q::queue::ActivityQueue) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - async fn run_example(queue: &crate::queue::ActivityQueue) { [INFO] [stdout] 3 + async fn run_example(queue: &queue::ActivityQueue) { [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::get_main_queue_key (line 100) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActivityQueue` [INFO] [stdout] --> src/queue/queue.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 4 | let queue = ActivityQueue::new(pool, "my_queue"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ActivityQueue` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityQueue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pool` in this scope [INFO] [stdout] --> src/queue/queue.rs:102:32 [INFO] [stdout] | [INFO] [stdout] 4 | let queue = ActivityQueue::new(pool, "my_queue"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::mark_completed (line 409) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ActivityQueue` in this scope [INFO] [stdout] --> src/queue/queue.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(queue: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityQueue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WorkerError` in this scope [INFO] [stdout] --> src/queue/queue.rs:410:55 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(queue: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::dequeue (line 345) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ActivityQueue` in this scope [INFO] [stdout] --> src/queue/queue.rs:346:22 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(q: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityQueue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WorkerError` in this scope [INFO] [stdout] --> src/queue/queue.rs:346:51 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(q: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::process_scheduled_activities (line 560) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/queue/queue.rs:561:5 [INFO] [stdout] | [INFO] [stdout] 3 | use your_crate::{ActivityQueue, WorkerError}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::new (line 83) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/queue/queue.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 3 | let pool: Pool = unimplemented!(); [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActivityQueue` [INFO] [stdout] --> src/queue/queue.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 4 | let queue = ActivityQueue::new(pool, "my-activities".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ActivityQueue` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityQueue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::schedule_activity (line 508) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `errors` in the crate root [INFO] [stdout] --> src/queue/queue.rs:511:86 [INFO] [stdout] | [INFO] [stdout] 5 | async fn example(queue: &impl crate::queue::ActivityQueueTrait) -> Result<(), crate::errors::WorkerError> { [INFO] [stdout] | ^^^^^^ could not find `errors` in the crate root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:511:38 [INFO] [stdout] | [INFO] [stdout] 5 | async fn example(queue: &impl crate::queue::ActivityQueueTrait) -> Result<(), crate::errors::WorkerError> { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 5 | async fn example(queue: &impl crate::runner_q::queue::ActivityQueueTrait) -> Result<(), crate::errors::WorkerError> { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - async fn example(queue: &impl crate::queue::ActivityQueueTrait) -> Result<(), crate::errors::WorkerError> { [INFO] [stdout] 5 + async fn example(queue: &impl queue::ActivityQueueTrait) -> Result<(), crate::errors::WorkerError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:512:23 [INFO] [stdout] | [INFO] [stdout] 6 | let activity = crate::queue::Activity { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 6 | let activity = crate::runner_q::queue::Activity { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - let activity = crate::queue::Activity { [INFO] [stdout] 6 + let activity = queue::Activity { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::parse_queue_entry (line 183) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Activity` in the crate root [INFO] [stdout] --> src/queue/queue.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 7 | let activity: crate::Activity = serde_json::from_str(activity_json).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in the crate root [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::update_activity_status (line 210) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ActivityQueue` in this scope [INFO] [stdout] --> src/queue/queue.rs:211:26 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(queue: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityQueue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WorkerError` in this scope [INFO] [stdout] --> src/queue/queue.rs:211:55 [INFO] [stdout] | [INFO] [stdout] 3 | async fn example(queue: &ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ActivityStatus` [INFO] [stdout] --> src/queue/queue.rs:213:36 [INFO] [stdout] | [INFO] [stdout] 5 | queue.update_activity_status(&id, &ActivityStatus::Running).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `ActivityStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::ActivityStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runner/runner.rs - runner::runner::WorkerEngine::start (line 50) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `WorkerError` in this scope [INFO] [stdout] --> src/runner/runner.rs:51:38 [INFO] [stdout] | [INFO] [stdout] 3 | async fn run_example() -> Result<(), WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WorkerEngine` [INFO] [stdout] --> src/runner/runner.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 5 | let engine = WorkerEngine::new(redis_pool, config); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `WorkerEngine` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerEngine; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `redis_pool` in this scope [INFO] [stdout] --> src/runner/runner.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 5 | let engine = WorkerEngine::new(redis_pool, config); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `config` in this scope [INFO] [stdout] --> src/runner/runner.rs:53:44 [INFO] [stdout] | [INFO] [stdout] 5 | let engine = WorkerEngine::new(redis_pool, config); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue/queue.rs - queue::queue::ActivityQueue::store_result (line 673) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:679:19 [INFO] [stdout] | [INFO] [stdout] 8 | state: crate::queue::ResultState::Ok, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `runner_q::queue` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:675:37 [INFO] [stdout] | [INFO] [stdout] 4 | async fn doc_example(queue: &crate::queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 4 | async fn doc_example(queue: &crate::runner_q::queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - async fn doc_example(queue: &crate::queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] 4 + async fn doc_example(queue: &queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WorkerError` in the crate root [INFO] [stdout] --> src/queue/queue.rs:675:80 [INFO] [stdout] | [INFO] [stdout] 4 | async fn doc_example(queue: &crate::queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] | ^^^^^^^^^^^ not found in the crate root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::WorkerError; [INFO] [stdout] | [INFO] [stdout] help: if you import `WorkerError`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - async fn doc_example(queue: &crate::queue::ActivityQueue) -> Result<(), crate::WorkerError> { [INFO] [stdout] 4 + async fn doc_example(queue: &crate::queue::ActivityQueue) -> Result<(), WorkerError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/queue/queue.rs:677:21 [INFO] [stdout] | [INFO] [stdout] 6 | let result = crate::queue::ActivityResult { [INFO] [stdout] | ^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 6 | let result = crate::runner_q::queue::ActivityResult { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::queue::queue; [INFO] [stdout] | [INFO] [stdout] help: if you import `queue`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - let result = crate::queue::ActivityResult { [INFO] [stdout] 6 + let result = queue::ActivityResult { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runner/runner.rs - runner::runner::WorkerEngine::start_worker_loop (line 131) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/runner/runner.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 6 | async fn usage_example(engine: &crate::runner::WorkerEngine) { [INFO] [stdout] | ^^^^^^ unresolved import [INFO] [stdout] | [INFO] [stdout] help: a similar path exists [INFO] [stdout] | [INFO] [stdout] 6 | async fn usage_example(engine: &crate::runner_q::runner::WorkerEngine) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use runner_q::runner::runner; [INFO] [stdout] | [INFO] [stdout] help: if you import `runner`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - async fn usage_example(engine: &crate::runner::WorkerEngine) { [INFO] [stdout] 6 + async fn usage_example(engine: &runner::WorkerEngine) { [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/runner/runner.rs - runner::runner::WorkerEngine::start_scheduled_activities_processor (line 300) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `engine` in this scope [INFO] [stdout] --> src/runner/runner.rs:302:14 [INFO] [stdout] | [INFO] [stdout] 4 | let handle = engine.start_scheduled_activities_processor().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/runner/runner.rs:302:60 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_runner_runner_rs_300_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] 3 | // Assuming `engine` is an initialized `WorkerEngine`: [INFO] [stdout] 4 | let handle = engine.start_scheduled_activities_processor().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: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/activity/activity.rs - activity::activity::ActivityFuture::get_result (line 166) [INFO] [stdout] src/activity/activity.rs - activity::activity::ActivityFuture::new (line 140) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::create_queue_entry (line 159) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::dequeue (line 345) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::enqueue (line 273) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::get_main_queue_key (line 100) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::get_result (line 712) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::get_stats (line 625) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::mark_completed (line 409) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::mark_failed (line 435) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::new (line 83) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::parse_queue_entry (line 183) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::process_scheduled_activities (line 560) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::schedule_activity (line 508) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::store_result (line 673) [INFO] [stdout] src/queue/queue.rs - queue::queue::ActivityQueue::update_activity_status (line 210) [INFO] [stdout] src/runner/runner.rs - runner::runner::WorkerEngine::start (line 50) [INFO] [stdout] src/runner/runner.rs - runner::runner::WorkerEngine::start_scheduled_activities_processor (line 300) [INFO] [stdout] src/runner/runner.rs - runner::runner::WorkerEngine::start_worker_loop (line 131) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 19 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.59s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2e76ee97b3ed60a2bb102577291d8eaebdd6254c9320b161bb5f4799509de0da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e76ee97b3ed60a2bb102577291d8eaebdd6254c9320b161bb5f4799509de0da", kill_on_drop: false }` [INFO] [stdout] 2e76ee97b3ed60a2bb102577291d8eaebdd6254c9320b161bb5f4799509de0da