[INFO] fetching crate cloudllm 0.1.4... [INFO] testing cloudllm-0.1.4 against 1.83.0 for beta-1.84.0-4 [INFO] extracting crate cloudllm 0.1.4 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate cloudllm 0.1.4 on toolchain 1.83.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cloudllm 0.1.4 [INFO] finished tweaking crates.io crate cloudllm 0.1.4 [INFO] tweaked toml for crates.io crate cloudllm 0.1.4 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate crates.io crate cloudllm 0.1.4 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" "+1.83.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded openai-rust v1.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1af426e28500197fc5af2e2363fe5bb1e4a9f85f590808798aed2afc33091e95 [INFO] running `Command { std: "docker" "start" "-a" "1af426e28500197fc5af2e2363fe5bb1e4a9f85f590808798aed2afc33091e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1af426e28500197fc5af2e2363fe5bb1e4a9f85f590808798aed2afc33091e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1af426e28500197fc5af2e2363fe5bb1e4a9f85f590808798aed2afc33091e95", kill_on_drop: false }` [INFO] [stdout] 1af426e28500197fc5af2e2363fe5bb1e4a9f85f590808798aed2afc33091e95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 738c84b9dcbc320405c094a2f2e410881fa273dfc6ebfb99d1e2fddf7ab5016d [INFO] running `Command { std: "docker" "start" "-a" "738c84b9dcbc320405c094a2f2e410881fa273dfc6ebfb99d1e2fddf7ab5016d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling ipnet v2.8.0 [INFO] [stderr] Compiling base64 v0.21.4 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling tokio v1.41.0 [INFO] [stderr] Compiling tokio-util v0.7.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.20 [INFO] [stderr] Compiling openai-rust v1.5.2 [INFO] [stderr] Compiling cloudllm v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.17s [INFO] running `Command { std: "docker" "inspect" "738c84b9dcbc320405c094a2f2e410881fa273dfc6ebfb99d1e2fddf7ab5016d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "738c84b9dcbc320405c094a2f2e410881fa273dfc6ebfb99d1e2fddf7ab5016d", kill_on_drop: false }` [INFO] [stdout] 738c84b9dcbc320405c094a2f2e410881fa273dfc6ebfb99d1e2fddf7ab5016d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 104f00afbdb50c11938d7a03f9b40dd7dcffd9a34fcac002b805bf0f70ee5e15 [INFO] running `Command { std: "docker" "start" "-a" "104f00afbdb50c11938d7a03f9b40dd7dcffd9a34fcac002b805bf0f70ee5e15", kill_on_drop: false }` [INFO] [stderr] Compiling cloudllm v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.98s [INFO] running `Command { std: "docker" "inspect" "104f00afbdb50c11938d7a03f9b40dd7dcffd9a34fcac002b805bf0f70ee5e15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "104f00afbdb50c11938d7a03f9b40dd7dcffd9a34fcac002b805bf0f70ee5e15", kill_on_drop: false }` [INFO] [stdout] 104f00afbdb50c11938d7a03f9b40dd7dcffd9a34fcac002b805bf0f70ee5e15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d024b99358faa15c0877a3c4e61774f32552ad721303b9d268a7e674cb0d8f9b [INFO] running `Command { std: "docker" "start" "-a" "d024b99358faa15c0877a3c4e61774f32552ad721303b9d268a7e674cb0d8f9b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cloudllm-1601be6013b62b54) [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 cloudllm [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/cloudllm/llm_session.rs - cloudllm::llm_session (line 66) ... FAILED [INFO] [stdout] test src/cloudllm/llm_session.rs - cloudllm::llm_session (line 38) ... FAILED [INFO] [stdout] test src/cloudllm/clients/openai.rs - cloudllm::clients::openai::Error (line 7) ... FAILED [INFO] [stdout] test src/cloudllm/llm_session.rs - cloudllm::llm_session (line 51) ... FAILED [INFO] [stdout] test src/cloudllm/llm_session.rs - cloudllm::llm_session (line 77) ... FAILED [INFO] [stdout] test src/cloudllm/llm_session.rs - cloudllm::llm_session (line 27) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/cloudllm/llm_session.rs - cloudllm::llm_session (line 66) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/cloudllm/llm_session.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 4 | session.set_system_prompt(new_system_prompt.to_string()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cloudllm/llm_session.rs - cloudllm::llm_session (line 38) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `openai_client` in this scope [INFO] [stdout] --> src/cloudllm/llm_session.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 8 | let mut session = LLMSession::new(openai_client, system_prompt.to_string(), max_tokens); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cloudllm/clients/openai.rs - cloudllm::clients::openai::Error (line 7) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cloudllm/clients/openai.rs:19:115 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cloudllm_clients_openai_rs_7_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let response = client.send_message(vec![Message { role: Role::System, content: system_prompt.to_string() }, msg]).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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/cloudllm/llm_session.rs - cloudllm::llm_session (line 51) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/cloudllm/llm_session.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 8 | let response = session.send_message(Role::User, user_message.to_string()).await.unwrap(); [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/cloudllm/llm_session.rs:56:75 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cloudllm_llm_session_rs_51_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let response = session.send_message(Role::User, user_message.to_string()).await.unwrap(); [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/cloudllm/llm_session.rs - cloudllm::llm_session (line 77) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/cloudllm/llm_session.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 5 | match session.send_message(Role::User, long_message).await { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/cloudllm/llm_session.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 5 | match session.send_message(Role::User, long_message).await { [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 3 + use cloudllm::Role; [INFO] [stdout] | [INFO] [stdout] 3 + use openai_rust::chat::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cloudllm/llm_session.rs:80:54 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cloudllm_llm_session_rs_77_0() { [INFO] [stdout] | --------------------------------------------------- this is not `async` [INFO] [stdout] 4 | let long_message = "A".repeat(10000); // A long message exceeding token limits [INFO] [stdout] 5 | match session.send_message(Role::User, long_message).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, E0433, E0728. [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/cloudllm/clients/openai.rs - cloudllm::clients::openai::Error (line 7) [INFO] [stdout] src/cloudllm/llm_session.rs - cloudllm::llm_session (line 38) [INFO] [stdout] src/cloudllm/llm_session.rs - cloudllm::llm_session (line 51) [INFO] [stdout] src/cloudllm/llm_session.rs - cloudllm::llm_session (line 66) [INFO] [stdout] src/cloudllm/llm_session.rs - cloudllm::llm_session (line 77) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.89s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d024b99358faa15c0877a3c4e61774f32552ad721303b9d268a7e674cb0d8f9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d024b99358faa15c0877a3c4e61774f32552ad721303b9d268a7e674cb0d8f9b", kill_on_drop: false }` [INFO] [stdout] d024b99358faa15c0877a3c4e61774f32552ad721303b9d268a7e674cb0d8f9b