[INFO] fetching crate crystal-server 0.1.0... [INFO] testing crystal-server-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate crystal-server 0.1.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate crystal-server 0.1.0 [INFO] finished tweaking crates.io crate crystal-server 0.1.0 [INFO] tweaked toml for crates.io crate crystal-server 0.1.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate crystal-server 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate crystal-server 0.1.0 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dba3097b762238cc6bd61cc6b5427d9b428e9cc3a9a4a219dea4270267e3fa8c [INFO] running `Command { std: "docker" "start" "-a" "dba3097b762238cc6bd61cc6b5427d9b428e9cc3a9a4a219dea4270267e3fa8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dba3097b762238cc6bd61cc6b5427d9b428e9cc3a9a4a219dea4270267e3fa8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dba3097b762238cc6bd61cc6b5427d9b428e9cc3a9a4a219dea4270267e3fa8c", kill_on_drop: false }` [INFO] [stdout] dba3097b762238cc6bd61cc6b5427d9b428e9cc3a9a4a219dea4270267e3fa8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11c627d206c8525a1d847f2e4b3fc7b3ae58c1ee631ac4d779b15436be01947f [INFO] running `Command { std: "docker" "start" "-a" "11c627d206c8525a1d847f2e4b3fc7b3ae58c1ee631ac4d779b15436be01947f", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling type-map v0.5.0 [INFO] [stderr] Compiling self_cell v1.1.0 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling semver v1.0.24 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.19 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling self_cell v0.10.3 [INFO] [stderr] Compiling winnow v0.6.24 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling rust-embed-utils v8.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling io_tee v0.1.1 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling uuid v1.13.2 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sysinfo v0.33.1 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling bech32 v0.9.1 [INFO] [stderr] Compiling integer-hasher v0.1.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling rand_core v0.9.1 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling bstr v1.11.3 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling rust-embed-impl v8.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling rust-embed v8.5.0 [INFO] [stderr] Compiling secrecy v0.10.3 [INFO] [stderr] Compiling unic-langid-impl v0.9.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling unic-langid v0.9.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling intl-memoizer v0.5.2 [INFO] [stderr] Compiling fluent-langneg v0.13.0 [INFO] [stderr] Compiling intl_pluralrules v7.0.2 [INFO] [stderr] Compiling scrypt v0.11.0 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling fluent-syntax v0.11.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling fluent-bundle v0.15.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling fluent v0.16.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling cookie-factory v0.3.3 [INFO] [stderr] Compiling age-core v0.11.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling basic-toml v0.1.9 [INFO] [stderr] Compiling i18n-config v0.4.7 [INFO] [stderr] Compiling find-crate v0.6.3 [INFO] [stderr] Compiling machineid-crystal v1.2.5 [INFO] [stderr] Compiling i18n-embed-impl v0.8.4 [INFO] [stderr] Compiling i18n-embed v0.15.3 [INFO] [stderr] Compiling i18n-embed-fl v0.9.3 [INFO] [stderr] Compiling age v0.11.1 [INFO] [stderr] Compiling crystal-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.33s [INFO] running `Command { std: "docker" "inspect" "11c627d206c8525a1d847f2e4b3fc7b3ae58c1ee631ac4d779b15436be01947f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11c627d206c8525a1d847f2e4b3fc7b3ae58c1ee631ac4d779b15436be01947f", kill_on_drop: false }` [INFO] [stdout] 11c627d206c8525a1d847f2e4b3fc7b3ae58c1ee631ac4d779b15436be01947f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf62841990a5127c0f6e8bf717882808ad90d5dec36c98759397bc9ba91c2d91 [INFO] running `Command { std: "docker" "start" "-a" "bf62841990a5127c0f6e8bf717882808ad90d5dec36c98759397bc9ba91c2d91", kill_on_drop: false }` [INFO] [stderr] Compiling crystal-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.18s [INFO] running `Command { std: "docker" "inspect" "bf62841990a5127c0f6e8bf717882808ad90d5dec36c98759397bc9ba91c2d91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf62841990a5127c0f6e8bf717882808ad90d5dec36c98759397bc9ba91c2d91", kill_on_drop: false }` [INFO] [stdout] bf62841990a5127c0f6e8bf717882808ad90d5dec36c98759397bc9ba91c2d91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e22773a525d9c00dd1acae84bdd849d0820f23c874af906ec90e2afb041352c5 [INFO] running `Command { std: "docker" "start" "-a" "e22773a525d9c00dd1acae84bdd849d0820f23c874af906ec90e2afb041352c5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/crystal_server-53f0f2f46f0dea05) [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 crystal_server [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - value (line 12) ... FAILED [INFO] [stdout] test src/client.rs - client::CrystalServer (line 68) ... FAILED [INFO] [stdout] test src/client.rs - client::CrystalServer::callback_set_room (line 2034) ... FAILED [INFO] [stdout] test src/client.rs - client::CrystalServer (line 47) ... FAILED [INFO] [stdout] test src/client.rs - client::CrystalServer::callback_set_room (line 2027) ... FAILED [INFO] [stdout] test src/client.rs - client::CrystalServer (line 55) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - value (line 12) stdout ---- [INFO] [stdout] error: prefix `Here` is unknown [INFO] [stdout] --> src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 1 | Here's an example on how you could use this macro: [INFO] [stdout] | ^^^^ unknown prefix [INFO] [stdout] | [INFO] [stdout] = note: prefixed identifiers and literals are reserved since Rust 2021 [INFO] [stdout] help: consider inserting whitespace here [INFO] [stdout] | [INFO] [stdout] 1 | Here 's an example on how you could use this macro: [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 2 | ```rust [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: character appears 2 more times [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 2 - ```rust [INFO] [stdout] 2 + '''rust [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `!` or `::`, found `'s` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 1 | Here's an example on how you could use this macro: [INFO] [stdout] | ^^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::CrystalServer (line 68) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `cs` in this scope [INFO] [stdout] --> src/client.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 4 | cs.update().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/client.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_68_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 3 | // On a new frame [INFO] [stdout] 4 | cs.update().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: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::CrystalServer::callback_set_room (line 2034) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `cs` in this scope [INFO] [stdout] --> src/client.rs:2035:1 [INFO] [stdout] | [INFO] [stdout] 3 | cs.callback_set_room(Box::new(|| CURRENT_ROOM.lock().unwrap().clone())).await; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CURRENT_ROOM` in this scope [INFO] [stdout] --> src/client.rs:2035:34 [INFO] [stdout] | [INFO] [stdout] 3 | cs.callback_set_room(Box::new(|| CURRENT_ROOM.lock().unwrap().clone())).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/client.rs:2035:73 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_2034_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | cs.callback_set_room(Box::new(|| CURRENT_ROOM.lock().unwrap().clone())).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/client.rs - client::CrystalServer (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CrystalServer` [INFO] [stdout] --> src/client.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 3 | let mut cs = CrystalServer::init("your-game-id"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `CrystalServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crystal_server::client::CrystalServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_47_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | cs.connect().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::CrystalServer::callback_set_room (line 2027) stdout ---- [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/client.rs:2030:1 [INFO] [stdout] | [INFO] [stdout] 5 | /// ...now I am in the living room [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-28; consider upgrading it if it is out of date [INFO] [stdout] = help: `///` is used for outer documentation comments; for a plain comment, use `//` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LazyLock` in this scope [INFO] [stdout] --> src/client.rs:2028:22 [INFO] [stdout] | [INFO] [stdout] 3 | static CURRENT_ROOM: LazyLock> = LazyLock::new(|| Mutex::new(String::from("kitchen"))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::LazyLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope [INFO] [stdout] --> src/client.rs:2028:31 [INFO] [stdout] | [INFO] [stdout] 3 | static CURRENT_ROOM: LazyLock> = LazyLock::new(|| Mutex::new(String::from("kitchen"))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use futures_util::lock::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LazyLock` [INFO] [stdout] --> src/client.rs:2028:48 [INFO] [stdout] | [INFO] [stdout] 3 | static CURRENT_ROOM: LazyLock> = LazyLock::new(|| Mutex::new(String::from("kitchen"))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LazyLock` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::LazyLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/client.rs:2028:65 [INFO] [stdout] | [INFO] [stdout] 3 | static CURRENT_ROOM: LazyLock> = LazyLock::new(|| Mutex::new(String::from("kitchen"))); [INFO] [stdout] | ^^^^^ use of undeclared type `Mutex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use futures_util::lock::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::CrystalServer (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/client.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 3 | let cs = Arc::new(cs); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cs` in this scope [INFO] [stdout] --> src/client.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 3 | let cs = Arc::new(cs); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/client.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 9 | tokio::time::sleep(Duration::from_secs_f64(1.0 / 60.0)).await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use chrono::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::CrystalServer (line 47) [INFO] [stdout] src/client.rs - client::CrystalServer (line 55) [INFO] [stdout] src/client.rs - client::CrystalServer (line 68) [INFO] [stdout] src/client.rs - client::CrystalServer::callback_set_room (line 2027) [INFO] [stdout] src/client.rs - client::CrystalServer::callback_set_room (line 2034) [INFO] [stdout] src/lib.rs - value (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e22773a525d9c00dd1acae84bdd849d0820f23c874af906ec90e2afb041352c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e22773a525d9c00dd1acae84bdd849d0820f23c874af906ec90e2afb041352c5", kill_on_drop: false }` [INFO] [stdout] e22773a525d9c00dd1acae84bdd849d0820f23c874af906ec90e2afb041352c5