[INFO] fetching crate clia-nacos-api 0.2.3... [INFO] testing clia-nacos-api-0.2.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate clia-nacos-api 0.2.3 into /workspace/builds/worker-7-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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate clia-nacos-api 0.2.3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quinn-udp v0.5.10 [INFO] [stderr] Downloaded nacos-api_macro v0.1.0 [INFO] [stderr] Downloaded rustls v0.23.23 [INFO] [stderr] Downloaded ring v0.17.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c7dab563497efae37a8280f88aa5f4a83567abc01ce36d6acc70f4ad4b3cf79 [INFO] running `Command { std: "docker" "start" "-a" "3c7dab563497efae37a8280f88aa5f4a83567abc01ce36d6acc70f4ad4b3cf79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c7dab563497efae37a8280f88aa5f4a83567abc01ce36d6acc70f4ad4b3cf79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c7dab563497efae37a8280f88aa5f4a83567abc01ce36d6acc70f4ad4b3cf79", kill_on_drop: false }` [INFO] [stdout] 3c7dab563497efae37a8280f88aa5f4a83567abc01ce36d6acc70f4ad4b3cf79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15e69491a3f3ee9ea6ab832fa4c9613c16ac3185f2f4c8fb2da87650d33a6ce9 [INFO] running `Command { std: "docker" "start" "-a" "15e69491a3f3ee9ea6ab832fa4c9613c16ac3185f2f4c8fb2da87650d33a6ce9", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling ring v0.17.11 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling getrandom v0.2.15 [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 rustls v0.23.23 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling nacos-api_macro v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [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 zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.218 [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 rustls-webpki v0.102.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling rand v0.8.5 [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 hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling url v2.5.4 [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 37.20s [INFO] running `Command { std: "docker" "inspect" "15e69491a3f3ee9ea6ab832fa4c9613c16ac3185f2f4c8fb2da87650d33a6ce9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15e69491a3f3ee9ea6ab832fa4c9613c16ac3185f2f4c8fb2da87650d33a6ce9", kill_on_drop: false }` [INFO] [stdout] 15e69491a3f3ee9ea6ab832fa4c9613c16ac3185f2f4c8fb2da87650d33a6ce9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 134c9175f00b89467f7626fe0975e2d00c30695c8a84c28dfc1733ec1f33ad09 [INFO] running `Command { std: "docker" "start" "-a" "134c9175f00b89467f7626fe0975e2d00c30695c8a84c28dfc1733ec1f33ad09", kill_on_drop: false }` [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] [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.43s [INFO] running `Command { std: "docker" "inspect" "134c9175f00b89467f7626fe0975e2d00c30695c8a84c28dfc1733ec1f33ad09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "134c9175f00b89467f7626fe0975e2d00c30695c8a84c28dfc1733ec1f33ad09", kill_on_drop: false }` [INFO] [stdout] 134c9175f00b89467f7626fe0975e2d00c30695c8a84c28dfc1733ec1f33ad09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6e8de6ca50bc8d310d6b87303bc1ec111b03eb501bf7be76e35ed62503f1d6e2 [INFO] running `Command { std: "docker" "start" "-a" "6e8de6ca50bc8d310d6b87303bc1ec111b03eb501bf7be76e35ed62503f1d6e2", 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.16s [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::register (line 42) ... FAILED [INFO] [stdout] test src/api/service.rs - api::service::NacosServiceApi::get_operator_servers (line 181) ... FAILED [INFO] [stdout] test src/integration/service.rs - integration::service::NacosClient::get_addr_simple (line 67) ... FAILED [INFO] [stdout] test src/integration/configs.rs - integration::configs::NacosConfigClient::listen_config (line 23) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 3 | 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] 2 | 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] 14 | 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/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] 3 | 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] 2 | 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] 7 | 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] 2 | 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] 11 | 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] ---- 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] 12 | 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] 12 | 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] 3 | 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] 2 | 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] 11 | let addr = client.get_addr_simple("test").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/integration/service.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `str` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [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] 3 | 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] 2 | 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] 12 | ).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] [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.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6e8de6ca50bc8d310d6b87303bc1ec111b03eb501bf7be76e35ed62503f1d6e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e8de6ca50bc8d310d6b87303bc1ec111b03eb501bf7be76e35ed62503f1d6e2", kill_on_drop: false }` [INFO] [stdout] 6e8de6ca50bc8d310d6b87303bc1ec111b03eb501bf7be76e35ed62503f1d6e2