[INFO] fetching crate clia-nacos-api 0.2.2... [INFO] testing clia-nacos-api-0.2.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate clia-nacos-api 0.2.2 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate clia-nacos-api 0.2.2 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 crates.io crate clia-nacos-api 0.2.2 [INFO] finished tweaking crates.io crate clia-nacos-api 0.2.2 [INFO] tweaked toml for crates.io crate clia-nacos-api 0.2.2 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate crates.io crate clia-nacos-api 0.2.2 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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec1138cd08d602cb61bf313a6ce9b69424fd5b8f5c318152d1539705d46598b1 [INFO] running `Command { std: "docker" "start" "-a" "ec1138cd08d602cb61bf313a6ce9b69424fd5b8f5c318152d1539705d46598b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec1138cd08d602cb61bf313a6ce9b69424fd5b8f5c318152d1539705d46598b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec1138cd08d602cb61bf313a6ce9b69424fd5b8f5c318152d1539705d46598b1", kill_on_drop: false }` [INFO] [stdout] ec1138cd08d602cb61bf313a6ce9b69424fd5b8f5c318152d1539705d46598b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4aab756edde1974303699600d55dadce8528467f79cfb681e8d564a04d415e4 [INFO] running `Command { std: "docker" "start" "-a" "e4aab756edde1974303699600d55dadce8528467f79cfb681e8d564a04d415e4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling tracing-core v0.1.24 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling nacos-api_macro v0.1.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling clia-nacos-api v0.2.2 (/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 30.08s [INFO] running `Command { std: "docker" "inspect" "e4aab756edde1974303699600d55dadce8528467f79cfb681e8d564a04d415e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4aab756edde1974303699600d55dadce8528467f79cfb681e8d564a04d415e4", kill_on_drop: false }` [INFO] [stdout] e4aab756edde1974303699600d55dadce8528467f79cfb681e8d564a04d415e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e74336bb7c514a42d77362ca111a42b352dd47368ef8059d2febb5b95dd16208 [INFO] running `Command { std: "docker" "start" "-a" "e74336bb7c514a42d77362ca111a42b352dd47368ef8059d2febb5b95dd16208", kill_on_drop: false }` [INFO] [stderr] Compiling clia-nacos-api v0.2.2 (/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 4.96s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/clia_nacos_api-a1ee14973363423d) [INFO] running `Command { std: "docker" "inspect" "e74336bb7c514a42d77362ca111a42b352dd47368ef8059d2febb5b95dd16208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e74336bb7c514a42d77362ca111a42b352dd47368ef8059d2febb5b95dd16208", kill_on_drop: false }` [INFO] [stdout] e74336bb7c514a42d77362ca111a42b352dd47368ef8059d2febb5b95dd16208 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3daf00127a1c091a89a38d8a1cd0b9542cce97b92d69a86136478fefe575754f [INFO] running `Command { std: "docker" "start" "-a" "3daf00127a1c091a89a38d8a1cd0b9542cce97b92d69a86136478fefe575754f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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: `clia-nacos-api` (lib) generated 1 warning [INFO] [stderr] warning: `clia-nacos-api` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/clia_nacos_api-a1ee14973363423d) [INFO] [stdout] [INFO] [stderr] Doc-tests clia-nacos-api [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/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] 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] [INFO] [stdout] failures: [INFO] [stdout] [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 undeclared crate or module `nacos_api` [INFO] [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] 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] ---- 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 undeclared crate or module `nacos_api` [INFO] [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] 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:74 [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::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 undeclared crate or module `nacos_api` [INFO] [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] 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/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 undeclared crate or module `nacos_api` [INFO] [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] 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[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] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_integration_service_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use nacos_api::{NacosClient,NacosConfig, ServerConfig}; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let nacos = NacosConfig::new("http", "192.168.0.132", 8848); [INFO] [stdout] ... | [INFO] [stdout] 11 | | let addr = client.get_addr_simple("test").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | assert!("http://127.0.0.1:8080", addr.as_str()); [INFO] [stdout] 13 | | } _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] 12 | 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 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0600, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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.19s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "3daf00127a1c091a89a38d8a1cd0b9542cce97b92d69a86136478fefe575754f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3daf00127a1c091a89a38d8a1cd0b9542cce97b92d69a86136478fefe575754f", kill_on_drop: false }` [INFO] [stdout] 3daf00127a1c091a89a38d8a1cd0b9542cce97b92d69a86136478fefe575754f