[INFO] fetching crate wd_event 0.2.0... [INFO] testing wd_event-0.2.0 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate wd_event 0.2.0 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate wd_event 0.2.0 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wd_event 0.2.0 [INFO] finished tweaking crates.io crate wd_event 0.2.0 [INFO] tweaked toml for crates.io crate wd_event 0.2.0 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 317ae0da2bda15117b42313987dd5b75b75d42d761fce9739f006489b83c217d [INFO] running `Command { std: "docker" "start" "-a" "317ae0da2bda15117b42313987dd5b75b75d42d761fce9739f006489b83c217d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "317ae0da2bda15117b42313987dd5b75b75d42d761fce9739f006489b83c217d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "317ae0da2bda15117b42313987dd5b75b75d42d761fce9739f006489b83c217d", kill_on_drop: false }` [INFO] [stdout] 317ae0da2bda15117b42313987dd5b75b75d42d761fce9739f006489b83c217d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31ba60f9176e6ddd205d48aa8cfe8cf2c0e6fcc42724db7d2c5c0b8dd02b05ba [INFO] running `Command { std: "docker" "start" "-a" "31ba60f9176e6ddd205d48aa8cfe8cf2c0e6fcc42724db7d2c5c0b8dd02b05ba", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling wd_event v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.67s [INFO] running `Command { std: "docker" "inspect" "31ba60f9176e6ddd205d48aa8cfe8cf2c0e6fcc42724db7d2c5c0b8dd02b05ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31ba60f9176e6ddd205d48aa8cfe8cf2c0e6fcc42724db7d2c5c0b8dd02b05ba", kill_on_drop: false }` [INFO] [stdout] 31ba60f9176e6ddd205d48aa8cfe8cf2c0e6fcc42724db7d2c5c0b8dd02b05ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d65f2e76c3799b969b278ad0e65edc085c2240cf1d93a2c049c340255c649e7 [INFO] running `Command { std: "docker" "start" "-a" "3d65f2e76c3799b969b278ad0e65edc085c2240cf1d93a2c049c340255c649e7", kill_on_drop: false }` [INFO] [stderr] Compiling wd_event v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "3d65f2e76c3799b969b278ad0e65edc085c2240cf1d93a2c049c340255c649e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d65f2e76c3799b969b278ad0e65edc085c2240cf1d93a2c049c340255c649e7", kill_on_drop: false }` [INFO] [stdout] 3d65f2e76c3799b969b278ad0e65edc085c2240cf1d93a2c049c340255c649e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a6506d174380edd182fc626b8009888ce6ab6f2221486a609c7f3d6c0a0821dc [INFO] running `Command { std: "docker" "start" "-a" "a6506d174380edd182fc626b8009888ce6ab6f2221486a609c7f3d6c0a0821dc", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/wd_event-9884188862adb84a) [INFO] [stderr] Doc-tests wd_event [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] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - (line 103) ... FAILED [INFO] [stdout] test src/lib.rs - (line 39) ... FAILED [INFO] [stdout] test src/context.rs - context::Context::get_value (line 71) ... FAILED [INFO] [stdout] test src/lib.rs - (line 52) ... FAILED [INFO] [stdout] test src/lib.rs - (line 80) ... FAILED [INFO] [stdout] test src/lib.rs - (line 14) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 19) stdout ---- [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/lib.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 8 | async fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventManage` [INFO] [stdout] --> src/lib.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut es = EventManage::new(EConfig::default()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::EventManage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EConfig` [INFO] [stdout] --> src/lib.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 3 | let mut es = EventManage::new(EConfig::default()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::EConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventManage` [INFO] [stdout] --> src/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 9 | let mut es = EventManage::new_async(EConfig::default()).await; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::EventManage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EConfig` [INFO] [stdout] --> src/lib.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 9 | let mut es = EventManage::new_async(EConfig::default()).await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::EConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0428, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0428`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 69) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 3 | es.exec_sequence(&event_one,None); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_one` in this scope [INFO] [stdout] --> src/lib.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 3 | es.exec_sequence(&event_one,None); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 4 | es.exec_pool(&event_one,None); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_one` in this scope [INFO] [stdout] --> src/lib.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 4 | es.exec_pool(&event_one,None); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 5 | es.exec_immediately(&event_one,None).await;; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_one` in this scope [INFO] [stdout] --> src/lib.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 5 | es.exec_immediately(&event_one,None).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/lib.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | es.exec_immediately(&event_one,None).await;; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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/lib.rs - (line 103) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn handle_mut(&mut self,ctx:Arc){ [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 4 | fn handle_mut(&mut self,ctx:Arc){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 4 | fn handle_mut(&mut self,ctx:Arc){ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 14 | es.delay_exec(Cycle{key:"default".to_string()},Context::new_delay(std::time::Duration::from_secs(1),true)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Cycle` in this scope [INFO] [stdout] --> src/lib.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 14 | es.delay_exec(Cycle{key:"default".to_string()},Context::new_delay(std::time::Duration::from_secs(1),true)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::iter::Cycle; [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Cycle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/lib.rs:115:48 [INFO] [stdout] | [INFO] [stdout] 14 | es.delay_exec(Cycle{key:"default".to_string()},Context::new_delay(std::time::Duration::from_secs(1),true)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EType` [INFO] [stdout] --> src/lib.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 11 | es.add( event_one.clone(),HandleOne{},EType::Default).unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `EType` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Event` in this scope [INFO] [stdout] --> src/lib.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 4 | impl Event for HandleOne{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::Event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle(&self,_ctx:Arc){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle(&self,_ctx:Arc){ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 11 | es.add( event_one.clone(),HandleOne{},EType::Default).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/context.rs - context::Context::get_value (line 71) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ctx` in this scope [INFO] [stdout] --> src/context.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 3 | let value:&str = match ctx.get_value("haha"){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 52) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `AsyncEvent` in this scope [INFO] [stdout] --> src/lib.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl AsyncEvent for AsyncHanle{ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::AsyncEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 7 | async fn handle(&self,_ctx:Arc){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 7 | async fn handle(&self,_ctx:Arc){ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 8 | tokio::time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 13 | es.add_async(event_one.clone(),AsyncHanle{}).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_one` in this scope [INFO] [stdout] --> src/lib.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 13 | es.add_async(event_one.clone(),AsyncHanle{}).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 80) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `es` in this scope [INFO] [stdout] --> src/lib.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 5 | es.exec_sequence(&event_one,Some(Context::new_add_msg(a))); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_one` in this scope [INFO] [stdout] --> src/lib.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 5 | es.exec_sequence(&event_one,Some(Context::new_add_msg(a))); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/lib.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 5 | es.exec_sequence(&event_one,Some(Context::new_add_msg(a))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Event` in this scope [INFO] [stdout] --> src/lib.rs:86:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Event for HandleOne{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HandleOne` in this scope [INFO] [stdout] --> src/lib.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 8 | impl Event for HandleOne{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 9 | fn handle(&self,ctx:Arc){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 9 | fn handle(&self,ctx:Arc){ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 | use wd_event::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/context.rs - context::Context::get_value (line 71) [INFO] [stdout] src/lib.rs - (line 103) [INFO] [stdout] src/lib.rs - (line 19) [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] src/lib.rs - (line 52) [INFO] [stdout] src/lib.rs - (line 69) [INFO] [stdout] src/lib.rs - (line 80) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.60s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a6506d174380edd182fc626b8009888ce6ab6f2221486a609c7f3d6c0a0821dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6506d174380edd182fc626b8009888ce6ab6f2221486a609c7f3d6c0a0821dc", kill_on_drop: false }` [INFO] [stdout] a6506d174380edd182fc626b8009888ce6ab6f2221486a609c7f3d6c0a0821dc