[INFO] cloning repository https://github.com/Squbirreland/nacos-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Squbirreland/nacos-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSqubirreland%2Fnacos-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSqubirreland%2Fnacos-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc05831a7cec2558297cd99a5bd9f76aca586e9c [INFO] testing Squbirreland/nacos-api against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSqubirreland%2Fnacos-api" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Squbirreland/nacos-api on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Squbirreland/nacos-api [INFO] finished tweaking git repo https://github.com/Squbirreland/nacos-api [INFO] tweaked toml for git repo https://github.com/Squbirreland/nacos-api written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Squbirreland/nacos-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 38e25ae51444580a697da9ffce32ae9f613bf5ce49681ef587fbbef8eddad5ec [INFO] running `Command { std: "docker" "start" "-a" "38e25ae51444580a697da9ffce32ae9f613bf5ce49681ef587fbbef8eddad5ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38e25ae51444580a697da9ffce32ae9f613bf5ce49681ef587fbbef8eddad5ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38e25ae51444580a697da9ffce32ae9f613bf5ce49681ef587fbbef8eddad5ec", kill_on_drop: false }` [INFO] [stdout] 38e25ae51444580a697da9ffce32ae9f613bf5ce49681ef587fbbef8eddad5ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e30720441db66231a49dcc01e133eaebe927a889acd7c15b81802bdb063aad85 [INFO] running `Command { std: "docker" "start" "-a" "e30720441db66231a49dcc01e133eaebe927a889acd7c15b81802bdb063aad85", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling openssl-sys v0.9.63 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling nacos-api_macro v0.1.0 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling hyper v0.14.7 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.3 [INFO] [stderr] Compiling nacos-api v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `reason` [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/err.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 08s [INFO] running `Command { std: "docker" "inspect" "e30720441db66231a49dcc01e133eaebe927a889acd7c15b81802bdb063aad85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e30720441db66231a49dcc01e133eaebe927a889acd7c15b81802bdb063aad85", kill_on_drop: false }` [INFO] [stdout] e30720441db66231a49dcc01e133eaebe927a889acd7c15b81802bdb063aad85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 465869b86fc954a9caa515fa78a2843311c07488f342161686cfc697c3674282 [INFO] running `Command { std: "docker" "start" "-a" "465869b86fc954a9caa515fa78a2843311c07488f342161686cfc697c3674282", kill_on_drop: false }` [INFO] [stderr] Compiling nacos-api v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `reason` [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/err.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reason` [INFO] [stdout] --> src/model/err.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/err.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.90s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/nacos_api-ecffd4a39ecb62ff) [INFO] running `Command { std: "docker" "inspect" "465869b86fc954a9caa515fa78a2843311c07488f342161686cfc697c3674282", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "465869b86fc954a9caa515fa78a2843311c07488f342161686cfc697c3674282", kill_on_drop: false }` [INFO] [stdout] 465869b86fc954a9caa515fa78a2843311c07488f342161686cfc697c3674282 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 932a4b0851a06dcde0ba883e1ee5145c51d9deff43472cfb88c25f576d5ef0f6 [INFO] running `Command { std: "docker" "start" "-a" "932a4b0851a06dcde0ba883e1ee5145c51d9deff43472cfb88c25f576d5ef0f6", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `reason` [INFO] [stderr] --> src/model/err.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | reason: String, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `NacosError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/model/err.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `nacos-api` (lib) generated 1 warning [INFO] [stderr] warning: `nacos-api` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nacos_api-ecffd4a39ecb62ff) [INFO] [stderr] Doc-tests nacos-api [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 4 tests [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::register (line 42) ... 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/api/service.rs - api::service::NacosServiceApi::get_operator_servers (line 181) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/api/service.rs:186:66 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 8 | 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:74 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 12 | 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 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/integration/service.rs - integration::service::NacosClient::register (line 42) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/service.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 15 | client.register(&None).await; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [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[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/service.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 12 | let addr = client.get_addr_simple("test").await?; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/integration/service.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_integration_service_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nacos_api::{NacosClient,NacosConfig, ServerConfig}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let nacos = NacosConfig::new("http", "192.168.0.132", 8848); [INFO] [stdout] ... | [INFO] [stdout] 12 | | let addr = client.get_addr_simple("test").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] 14 | | } _doctest_main_src_integration_service_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [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] 13 | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0600, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/integration/configs.rs - integration::configs::NacosConfigClient::listen_config (line 23) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/integration/configs.rs:33:2 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 13 | ).await; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [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.62s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "932a4b0851a06dcde0ba883e1ee5145c51d9deff43472cfb88c25f576d5ef0f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "932a4b0851a06dcde0ba883e1ee5145c51d9deff43472cfb88c25f576d5ef0f6", kill_on_drop: false }` [INFO] [stdout] 932a4b0851a06dcde0ba883e1ee5145c51d9deff43472cfb88c25f576d5ef0f6