[INFO] fetching crate nonebot_rs 0.2.2... [INFO] testing nonebot_rs-0.2.2 against 1.55.0 for beta-1.56-1 [INFO] extracting crate nonebot_rs 0.2.2 into /workspace/builds/worker-75/source [INFO] validating manifest of crates.io crate nonebot_rs 0.2.2 on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nonebot_rs 0.2.2 [INFO] finished tweaking crates.io crate nonebot_rs 0.2.2 [INFO] tweaked toml for crates.io crate nonebot_rs 0.2.2 written to /workspace/builds/worker-75/source/Cargo.toml [INFO] crate crates.io crate nonebot_rs 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded argh_derive v0.1.6 [INFO] [stderr] Downloaded nom v4.1.1 [INFO] [stderr] Downloaded tower-http v0.1.1 [INFO] [stderr] Downloaded axum v0.1.3 [INFO] [stderr] Downloaded rcnb-rs v0.1.0 [INFO] [stderr] Downloaded argh v0.1.6 [INFO] [stderr] Downloaded tower v0.4.8 [INFO] [stderr] Downloaded argh_shared v0.1.6 [INFO] [stderr] Downloaded cron v0.8.0 [INFO] [stderr] Downloaded tokio-cron-scheduler v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4e7920a175d67421cf53dd3ac74724a8a4d16e11a6d96dc8006d5786b839ea1 [INFO] running `Command { std: "docker" "start" "-a" "b4e7920a175d67421cf53dd3ac74724a8a4d16e11a6d96dc8006d5786b839ea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4e7920a175d67421cf53dd3ac74724a8a4d16e11a6d96dc8006d5786b839ea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4e7920a175d67421cf53dd3ac74724a8a4d16e11a6d96dc8006d5786b839ea1", kill_on_drop: false }` [INFO] [stdout] b4e7920a175d67421cf53dd3ac74724a8a4d16e11a6d96dc8006d5786b839ea1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f22deffe0be3d8a9784adb298d629047c8a3a2f565d6905ab3a0dae6554f6fb [INFO] running `Command { std: "docker" "start" "-a" "7f22deffe0be3d8a9784adb298d629047c8a3a2f565d6905ab3a0dae6554f6fb", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling unicode-bidi v0.3.6 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling argh_shared v0.1.6 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling tracing-core v0.1.19 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling sharded-slab v0.1.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling headers v0.3.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling argh_derive v0.1.6 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling argh v0.1.6 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling rcnb-rs v0.1.0 [INFO] [stderr] Compiling tungstenite v0.13.0 [INFO] [stderr] Compiling tower-http v0.1.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling tokio-tungstenite v0.14.0 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling tracing-serde v0.1.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling tower v0.4.8 [INFO] [stderr] Compiling tracing-subscriber v0.2.20 [INFO] [stderr] Compiling hyper v0.14.12 [INFO] [stderr] Compiling axum v0.1.3 [INFO] [stderr] Compiling nonebot_rs v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> src/action.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let bot = self.add_bot(bot_id, api_sender.clone(), api_resp_watcher.clone()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/minimal.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut nb = nonebot_rs::Nonebot::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 21s [INFO] running `Command { std: "docker" "inspect" "7f22deffe0be3d8a9784adb298d629047c8a3a2f565d6905ab3a0dae6554f6fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f22deffe0be3d8a9784adb298d629047c8a3a2f565d6905ab3a0dae6554f6fb", kill_on_drop: false }` [INFO] [stdout] 7f22deffe0be3d8a9784adb298d629047c8a3a2f565d6905ab3a0dae6554f6fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 707a01669e0a8ef4b76f08ed9dfd0eec72d67df7d0a5426c76e251754bbf7318 [INFO] running `Command { std: "docker" "start" "-a" "707a01669e0a8ef4b76f08ed9dfd0eec72d67df7d0a5426c76e251754bbf7318", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling nonebot_rs v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> src/action.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let bot = self.add_bot(bot_id, api_sender.clone(), api_resp_watcher.clone()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/minimal.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut nb = nonebot_rs::Nonebot::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> src/action.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let bot = self.add_bot(bot_id, api_sender.clone(), api_resp_watcher.clone()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 8.34s [INFO] running `Command { std: "docker" "inspect" "707a01669e0a8ef4b76f08ed9dfd0eec72d67df7d0a5426c76e251754bbf7318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "707a01669e0a8ef4b76f08ed9dfd0eec72d67df7d0a5426c76e251754bbf7318", kill_on_drop: false }` [INFO] [stdout] 707a01669e0a8ef4b76f08ed9dfd0eec72d67df7d0a5426c76e251754bbf7318 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5b620399a5e4ac274b073fc85400ac3761ebe7295b761f04a3b987110179930b [INFO] running `Command { std: "docker" "start" "-a" "5b620399a5e4ac274b073fc85400ac3761ebe7295b761f04a3b987110179930b", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `bot` [INFO] [stderr] --> src/action.rs:56:25 [INFO] [stderr] | [INFO] [stderr] 56 | let bot = self.add_bot(bot_id, api_sender.clone(), api_resp_watcher.clone()); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `nonebot_rs` (lib) generated 1 warning [INFO] [stderr] warning: `nonebot_rs` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/minimal.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let mut nb = nonebot_rs::Nonebot::new(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `nonebot_rs` (bin "minimal" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/nonebot_rs-909bbf208f06035f) [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] Running unittests (/opt/rustwide/target/debug/deps/minimal-a95f910d2e604d24) [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 nonebot_rs [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - (line 138) ... FAILED [INFO] [stdout] test src/lib.rs - (line 109) ... FAILED [INFO] [stdout] test src/lib.rs - (line 58) ... FAILED [INFO] [stdout] test src/lib.rs - (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 138) stdout ---- [INFO] [stdout] error: expected expression, found `.` [INFO] [stdout] --> src/lib.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 7 | .add_message_matchers(r6s()); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0254]: the name `nonebot_rs` is defined multiple times [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#nonebot_rs; [INFO] [stdout] | -------------------------- previous import of the extern crate `nonebot_rs` here [INFO] [stdout] 3 | use nonebot_rs; [INFO] [stdout] | ^^^^^^^^^^ `nonebot_rs` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `nonebot_rs` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0254`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 109) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nonebot_rs::Job` [INFO] [stdout] --> src/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 4 | use nonebot_rs::{Job, Message}; [INFO] [stdout] | ^^^ no `Job` in the root [INFO] [stdout] [INFO] [stdout] error: aborting due to 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/lib.rs - (line 58) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 13 | async fn handle(&self, event: MessageEvent, matcher: Matcher) { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 14 | | // 请求获取 msg,event raw_message 为空则发送消息请求消息 [INFO] [stdout] 15 | | let msg = matcher [INFO] [stdout] 16 | | .request_message(Some(&event), Some("Please enter something.")) [INFO] [stdout] ... | [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `matcher` in `nonebot_rs` [INFO] [stdout] --> src/lib.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 4 | use nonebot_rs::matcher::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `matcher` in `nonebot_rs` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:65:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `on_command` in this scope [INFO] [stdout] --> src/lib.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 12 | on_command!(MessageEvent, "rcnb", "RCNB", "Rcnb"); // 注册该 Matcher 的命令匹配器 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] nonebot_rs::on_command [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matcher` [INFO] [stdout] --> src/lib.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 28 | Matcher::new("Rcnb", Rcnb {}) // 声明 Matcher 的 name 与 handler struct [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matcher` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `builtin` [INFO] [stdout] --> src/lib.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 29 | .add_pre_matcher(builtin::prematchers::to_me()) // 添加 to_me prematcher [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `builtin` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `builtin` [INFO] [stdout] --> src/lib.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 30 | .add_pre_matcher(builtin::prematchers::command_start()) // 添加 command_start permatcher [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `builtin` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stdout] --> src/lib.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl Handler for Rcnb { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 | use axum::prelude::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MessageEvent` in this scope [INFO] [stdout] --> src/lib.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 11 | impl Handler for Rcnb { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nonebot_rs::event::MessageEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MessageEvent` in this scope [INFO] [stdout] --> src/lib.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 13 | async fn handle(&self, event: MessageEvent, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nonebot_rs::event::MessageEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matcher` in this scope [INFO] [stdout] --> src/lib.rs:68:58 [INFO] [stdout] | [INFO] [stdout] 13 | async fn handle(&self, event: MessageEvent, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MessageEvent` in this scope [INFO] [stdout] --> src/lib.rs:68:66 [INFO] [stdout] | [INFO] [stdout] 13 | async fn handle(&self, event: MessageEvent, matcher: Matcher) { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nonebot_rs::event::MessageEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matcher` in this scope [INFO] [stdout] --> src/lib.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn rcnb() -> Matcher { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MessageEvent` in this scope [INFO] [stdout] --> src/lib.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn rcnb() -> Matcher { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nonebot_rs::event::MessageEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433, E0706. [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 97) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:98:68 [INFO] [stdout] | [INFO] [stdout] 4 | let msg:Option = bot.get_msg().await [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | } _doctest_main_src_lib_rs_97_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bot` in this scope [INFO] [stdout] --> src/lib.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 4 | let msg:Option = bot.get_msg().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:98:49 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_97_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 4 | let msg:Option = bot.get_msg().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/lib.rs - (line 91) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 4 | let msg:Option = matcher.get_msg().await [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | } _doctest_main_src_lib_rs_91_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `matcher` in this scope [INFO] [stdout] --> src/lib.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 4 | let msg:Option = matcher.get_msg().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:92:49 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_91_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 4 | let msg:Option = matcher.get_msg().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/lib.rs - (line 46) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `echo` in `builtin` [INFO] [stdout] --> src/lib.rs:50:51 [INFO] [stdout] | [INFO] [stdout] 6 | .add_message_matcher(nonebot_rs::builtin::echo::echo()) // 注册 echo Matcher [INFO] [stdout] | ^^^^ could not find `echo` in `builtin` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `rcnb` in `builtin` [INFO] [stdout] --> src/lib.rs:51:51 [INFO] [stdout] | [INFO] [stdout] 7 | .add_message_matcher(nonebot_rs::builtin::rcnb::rcnb()); // 注册 rcnb Matcher [INFO] [stdout] | ^^^^ could not find `rcnb` in `builtin` [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `matchers` on type `Nonebot` [INFO] [stdout] --> src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 5 | nb.matchers [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `config`, `bots`, `bot_sender`, `bot_getter` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0609. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 109) [INFO] [stdout] src/lib.rs - (line 138) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 58) [INFO] [stdout] src/lib.rs - (line 91) [INFO] [stdout] src/lib.rs - (line 97) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5b620399a5e4ac274b073fc85400ac3761ebe7295b761f04a3b987110179930b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b620399a5e4ac274b073fc85400ac3761ebe7295b761f04a3b987110179930b", kill_on_drop: false }` [INFO] [stdout] 5b620399a5e4ac274b073fc85400ac3761ebe7295b761f04a3b987110179930b