[INFO] fetching crate async-cron-scheduler 2.0.1... [INFO] testing async-cron-scheduler-2.0.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate async-cron-scheduler 2.0.1 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate async-cron-scheduler 2.0.1 [INFO] finished tweaking crates.io crate async-cron-scheduler 2.0.1 [INFO] tweaked toml for crates.io crate async-cron-scheduler 2.0.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate async-cron-scheduler 2.0.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] crate crates.io crate async-cron-scheduler 2.0.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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded diatomic-waker v0.1.0 [INFO] [stderr] Downloaded tachyonix v0.2.1 [INFO] [stderr] Downloaded async-event v0.1.0 [INFO] [stderr] Downloaded futures-lite v2.2.0 [INFO] [stderr] Downloaded async-process v2.0.1 [INFO] [stderr] Downloaded async-fs v2.1.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.76 [INFO] [stderr] Downloaded async-executor v1.8.0 [INFO] [stderr] Downloaded cron v0.12.0 [INFO] [stderr] Downloaded syn v2.0.48 [INFO] [stderr] Downloaded smol v2.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e743920b7ac5472eda24d1e1fa5a580c7a0da39ab09df26da49f7b2637569878 [INFO] running `Command { std: "docker" "start" "-a" "e743920b7ac5472eda24d1e1fa5a580c7a0da39ab09df26da49f7b2637569878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e743920b7ac5472eda24d1e1fa5a580c7a0da39ab09df26da49f7b2637569878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e743920b7ac5472eda24d1e1fa5a580c7a0da39ab09df26da49f7b2637569878", kill_on_drop: false }` [INFO] [stdout] e743920b7ac5472eda24d1e1fa5a580c7a0da39ab09df26da49f7b2637569878 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 7579f069260ba66b0fb6220e38db3e1f9461cc85440ed9ef37b8d12d42e387da [INFO] running `Command { std: "docker" "start" "-a" "7579f069260ba66b0fb6220e38db3e1f9461cc85440ed9ef37b8d12d42e387da", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling iana-time-zone v0.1.59 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling diatomic-waker v0.1.0 [INFO] [stderr] Compiling async-event v0.1.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tachyonix v0.2.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling cron v0.12.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling async-cron-scheduler v2.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.69s [INFO] running `Command { std: "docker" "inspect" "7579f069260ba66b0fb6220e38db3e1f9461cc85440ed9ef37b8d12d42e387da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7579f069260ba66b0fb6220e38db3e1f9461cc85440ed9ef37b8d12d42e387da", kill_on_drop: false }` [INFO] [stdout] 7579f069260ba66b0fb6220e38db3e1f9461cc85440ed9ef37b8d12d42e387da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9b9cc1ec70120a4eb024e97f9d41985127babfc0855f12cec6bcd2a796cee3a8 [INFO] running `Command { std: "docker" "start" "-a" "9b9cc1ec70120a4eb024e97f9d41985127babfc0855f12cec6bcd2a796cee3a8", kill_on_drop: false }` [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling concurrent-queue v2.4.0 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling async-task v4.7.0 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-lite v2.2.0 [INFO] [stderr] Compiling piper v0.2.1 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling async-channel v2.1.1 [INFO] [stderr] Compiling blocking v1.5.1 [INFO] [stderr] Compiling async-executor v1.8.0 [INFO] [stderr] Compiling async-fs v2.1.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling async-cron-scheduler v2.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling polling v3.3.1 [INFO] [stderr] Compiling async-io v2.2.2 [INFO] [stderr] Compiling async-signal v0.2.5 [INFO] [stderr] Compiling async-net v2.0.0 [INFO] [stderr] Compiling async-process v2.0.1 [INFO] [stderr] Compiling smol v2.0.0 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 20.88s [INFO] running `Command { std: "docker" "inspect" "9b9cc1ec70120a4eb024e97f9d41985127babfc0855f12cec6bcd2a796cee3a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b9cc1ec70120a4eb024e97f9d41985127babfc0855f12cec6bcd2a796cee3a8", kill_on_drop: false }` [INFO] [stdout] 9b9cc1ec70120a4eb024e97f9d41985127babfc0855f12cec6bcd2a796cee3a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 683b58811c3057562fde6d5705f616bb984a7184c0a2f58e156cf59d21b3d120 [INFO] running `Command { std: "docker" "start" "-a" "683b58811c3057562fde6d5705f616bb984a7184c0a2f58e156cf59d21b3d120", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/async_cron_scheduler-a62b8daee44c0b1a) [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 async_cron_scheduler [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/scheduler.rs - scheduler::Scheduler::launch (line 93) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::Scheduler::launch (line 100) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::Scheduler (line 27) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::Scheduler::remove (line 74) ... FAILED [INFO] [stdout] test src/scheduler.rs - scheduler::Scheduler::insert (line 54) ... FAILED [INFO] [stdout] test src/lib.rs - (line 15) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/scheduler.rs - scheduler::Scheduler::launch (line 93) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheduler` [INFO] [stdout] --> src/scheduler.rs:94:38 [INFO] [stdout] | [INFO] [stdout] 94 | let (mut scheduler, sched_service) = Scheduler::::launch(smol::Timer::after); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Scheduler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use async_cron_scheduler::Scheduler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Local` in this scope [INFO] [stdout] --> src/scheduler.rs:94:50 [INFO] [stdout] | [INFO] [stdout] 94 | let (mut scheduler, sched_service) = Scheduler::::launch(smol::Timer::after); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use chrono::Local; [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/scheduler.rs - scheduler::Scheduler::launch (line 100) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/scheduler.rs:101:65 [INFO] [stdout] | [INFO] [stdout] 101 | let (mut scheduler, sched_service) = Scheduler::::launch(tokio::time::sleep); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheduler` [INFO] [stdout] --> src/scheduler.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | let (mut scheduler, sched_service) = Scheduler::::launch(tokio::time::sleep); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Scheduler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 100 + use async_cron_scheduler::Scheduler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Local` in this scope [INFO] [stdout] --> src/scheduler.rs:101:50 [INFO] [stdout] | [INFO] [stdout] 101 | let (mut scheduler, sched_service) = Scheduler::::launch(tokio::time::sleep); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 100 + use chrono::Local; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/scheduler.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | tokio::spawn(sched_service); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [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/scheduler.rs - scheduler::Scheduler (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheduler` [INFO] [stdout] --> src/scheduler.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | let (mut scheduler, service) = Scheduler::::launch(Timer::after); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Scheduler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 27 + use async_cron_scheduler::Scheduler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Job` [INFO] [stdout] --> src/scheduler.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | let job = Job::cron("1/3 * * * * *").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Job` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 27 + use async_cron_scheduler::Job; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Job` [INFO] [stdout] --> src/scheduler.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | let job = Job::cron("1/5 * * * * *").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Job` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 27 + use async_cron_scheduler::Job; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/scheduler.rs:35:60 [INFO] [stdout] | [INFO] [stdout] 27 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scheduler_rs_27_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 35 | let fizz_id = scheduler.insert(job, |id| println!("Fizz")).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/scheduler.rs:39:60 [INFO] [stdout] | [INFO] [stdout] 27 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scheduler_rs_27_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 39 | let buzz_id = scheduler.insert(job, |id| println!("Buzz")).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/scheduler.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 27 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scheduler_rs_27_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 41 | service.await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/scheduler.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | let fizz_id = scheduler.insert(job, |id| println!("Fizz")).await; [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, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/scheduler.rs - scheduler::Scheduler::remove (line 74) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `scheduler` in this scope [INFO] [stdout] --> src/scheduler.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | scheduler.remove(fizz_id).await; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `fizz_id` in this scope [INFO] [stdout] --> src/scheduler.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | scheduler.remove(fizz_id).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/scheduler.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 74 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scheduler_rs_74_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] 75 | scheduler.remove(fizz_id).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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] ---- src/scheduler.rs - scheduler::Scheduler::insert (line 54) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Job` [INFO] [stdout] --> src/scheduler.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | let job = Job::cron("1/3 * * * * *").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Job` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 54 + use async_cron_scheduler::Job; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `scheduler` in this scope [INFO] [stdout] --> src/scheduler.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | let fizz_id = scheduler.insert(job, |id| println!("Fizz")).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/scheduler.rs:57:60 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scheduler_rs_54_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 57 | let fizz_id = scheduler.insert(job, |id| println!("Fizz")).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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] [INFO] [stdout] failures: [INFO] [stdout] src/scheduler.rs - scheduler::Scheduler (line 27) [INFO] [stdout] src/scheduler.rs - scheduler::Scheduler::insert (line 54) [INFO] [stdout] src/scheduler.rs - scheduler::Scheduler::launch (line 100) [INFO] [stdout] src/scheduler.rs - scheduler::Scheduler::launch (line 93) [INFO] [stdout] src/scheduler.rs - scheduler::Scheduler::remove (line 74) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 13.98s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "683b58811c3057562fde6d5705f616bb984a7184c0a2f58e156cf59d21b3d120", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "683b58811c3057562fde6d5705f616bb984a7184c0a2f58e156cf59d21b3d120", kill_on_drop: false }` [INFO] [stdout] 683b58811c3057562fde6d5705f616bb984a7184c0a2f58e156cf59d21b3d120