[INFO] fetching crate clia-nacos-api 0.2.3... [INFO] testing clia-nacos-api-0.2.3 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate clia-nacos-api 0.2.3 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate clia-nacos-api 0.2.3 [INFO] finished tweaking crates.io crate clia-nacos-api 0.2.3 [INFO] tweaked toml for crates.io crate clia-nacos-api 0.2.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate clia-nacos-api 0.2.3 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 clia-nacos-api 0.2.3 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.39 [INFO] [stderr] Downloaded nacos-api_macro v0.1.0 [INFO] [stderr] Downloaded syn v2.0.99 [INFO] [stderr] Downloaded ring v0.17.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 12e8b36a995a7af9c2cb4b314ed7c844b98168133993f4eb1e3a9b5791890c8b [INFO] running `Command { std: "docker" "start" "-a" "12e8b36a995a7af9c2cb4b314ed7c844b98168133993f4eb1e3a9b5791890c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12e8b36a995a7af9c2cb4b314ed7c844b98168133993f4eb1e3a9b5791890c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12e8b36a995a7af9c2cb4b314ed7c844b98168133993f4eb1e3a9b5791890c8b", kill_on_drop: false }` [INFO] [stdout] 12e8b36a995a7af9c2cb4b314ed7c844b98168133993f4eb1e3a9b5791890c8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b273a00f32867a3ca5d20b66497e6a4ab3b22a9dd6c09f6ae7fdf8f4e3617c93 [INFO] running `Command { std: "docker" "start" "-a" "b273a00f32867a3ca5d20b66497e6a4ab3b22a9dd6c09f6ae7fdf8f4e3617c93", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling rustls v0.23.23 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ring v0.17.11 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling nacos-api_macro v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling clia-nacos-api v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct NacosError { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.71s [INFO] running `Command { std: "docker" "inspect" "b273a00f32867a3ca5d20b66497e6a4ab3b22a9dd6c09f6ae7fdf8f4e3617c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b273a00f32867a3ca5d20b66497e6a4ab3b22a9dd6c09f6ae7fdf8f4e3617c93", kill_on_drop: false }` [INFO] [stdout] b273a00f32867a3ca5d20b66497e6a4ab3b22a9dd6c09f6ae7fdf8f4e3617c93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 212567e0dc204ca1824928ce638ecfe3cf582f96834a8e0f1d555241c9353d6c [INFO] running `Command { std: "docker" "start" "-a" "212567e0dc204ca1824928ce638ecfe3cf582f96834a8e0f1d555241c9353d6c", kill_on_drop: false }` [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct NacosError { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling clia-nacos-api v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct NacosError { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 1.19s [INFO] running `Command { std: "docker" "inspect" "212567e0dc204ca1824928ce638ecfe3cf582f96834a8e0f1d555241c9353d6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "212567e0dc204ca1824928ce638ecfe3cf582f96834a8e0f1d555241c9353d6c", kill_on_drop: false }` [INFO] [stdout] 212567e0dc204ca1824928ce638ecfe3cf582f96834a8e0f1d555241c9353d6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 43ca988b67d94c4ae37a850b6131fd3480053c7a2c2f2af0e95052b24c859590 [INFO] running `Command { std: "docker" "start" "-a" "43ca988b67d94c4ae37a850b6131fd3480053c7a2c2f2af0e95052b24c859590", kill_on_drop: false }` [INFO] [stderr] warning: field `reason` is never read [INFO] [stderr] --> src/model/err.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct NacosError { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 7 | reason: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `clia-nacos-api` (lib) generated 1 warning [INFO] [stderr] warning: `clia-nacos-api` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/clia_nacos_api-6897a528bdb2b712) [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 clia_nacos_api [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/integration/service.rs - integration::service::NacosClient::get_addr_simple (line 67) ... FAILED [INFO] [stdout] test src/integration/service.rs - integration::service::NacosClient::register (line 42) ... FAILED [INFO] [stdout] test src/integration/configs.rs - integration::configs::NacosConfigClient::listen_config (line 23) ... FAILED [INFO] [stdout] test src/api/service.rs - api::service::NacosServiceApi::get_operator_servers (line 181) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/integration/service.rs - integration::service::NacosClient::get_addr_simple (line 67) stdout ---- [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/integration/service.rs:77:34 [INFO] [stdout] | [INFO] [stdout] 77 | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 77 | assert!("http://127.0.0.1:8080", "{}", addr.as_str()); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nacos_api` [INFO] [stdout] --> src/integration/service.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use nacos_api::{NacosClient,NacosConfig, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `nacos_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nacos_api`, use `cargo add nacos_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/service.rs:76:43 [INFO] [stdout] | [INFO] [stdout] 67 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_integration_service_rs_67_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 76 | let addr = client.get_addr_simple("test").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `&'static str` [INFO] [stdout] --> src/integration/service.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0600, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/integration/service.rs - integration::service::NacosClient::register (line 42) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nacos_api` [INFO] [stdout] --> src/integration/service.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use nacos_api::{NacosClient,NacosConfig, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `nacos_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nacos_api`, use `cargo add nacos_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/service.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 42 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_integration_service_rs_42_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 54 | client.register(&None).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: E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/integration/configs.rs - integration::configs::NacosConfigClient::listen_config (line 23) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nacos_api` [INFO] [stdout] --> src/integration/configs.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use nacos_api::{NacosConfigClient, NacosConfigApi, DeployConfig, NacosConfig}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `nacos_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nacos_api`, use `cargo add nacos_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/configs.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 23 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_integration_configs_rs_23_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 33 | ).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: E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/service.rs - api::service::NacosServiceApi::get_operator_servers (line 181) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nacos_api` [INFO] [stdout] --> src/api/service.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | use nacos_api::{NacosServiceApi, NacosConfig, NacosClient, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `nacos_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nacos_api`, use `cargo add nacos_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/service.rs:186:67 [INFO] [stdout] | [INFO] [stdout] 181 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_service_rs_181_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 186 | let result = NacosServiceApi::get_operator_servers(&nacos_config).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/api/service.rs:190:75 [INFO] [stdout] | [INFO] [stdout] 181 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_service_rs_181_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 190 | let result = NacosServiceApi::get_operator_servers(client.nacos_config()).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: E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/api/service.rs - api::service::NacosServiceApi::get_operator_servers (line 181) [INFO] [stdout] src/integration/configs.rs - integration::configs::NacosConfigClient::listen_config (line 23) [INFO] [stdout] src/integration/service.rs - integration::service::NacosClient::get_addr_simple (line 67) [INFO] [stdout] src/integration/service.rs - integration::service::NacosClient::register (line 42) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "43ca988b67d94c4ae37a850b6131fd3480053c7a2c2f2af0e95052b24c859590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43ca988b67d94c4ae37a850b6131fd3480053c7a2c2f2af0e95052b24c859590", kill_on_drop: false }` [INFO] [stdout] 43ca988b67d94c4ae37a850b6131fd3480053c7a2c2f2af0e95052b24c859590