[INFO] fetching crate grok-rust-sdk 0.1.0... [INFO] testing grok-rust-sdk-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate grok-rust-sdk 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate grok-rust-sdk 0.1.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate grok-rust-sdk 0.1.0 [INFO] tweaked toml for crates.io crate grok-rust-sdk 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate grok-rust-sdk 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate grok-rust-sdk 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-ident v1.0.20 [INFO] [stderr] Downloaded windows-registry v0.5.3 [INFO] [stderr] Downloaded meval v0.2.0 [INFO] [stderr] Downloaded openssl-sys v0.9.110 [INFO] [stderr] Downloaded rustls-webpki v0.103.7 [INFO] [stderr] Downloaded cc v1.2.42 [INFO] [stderr] Downloaded reqwest v0.12.24 [INFO] [stderr] Downloaded nom v1.2.4 [INFO] [stderr] Downloaded openssl v0.10.74 [INFO] [stderr] Downloaded syn v2.0.108 [INFO] [stderr] Downloaded rustls v0.23.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d506115b9453c91f3bea47d947253dc16912b96ba3f584bc384c217e4b72cd4b [INFO] running `Command { std: "docker" "start" "-a" "d506115b9453c91f3bea47d947253dc16912b96ba3f584bc384c217e4b72cd4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d506115b9453c91f3bea47d947253dc16912b96ba3f584bc384c217e4b72cd4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d506115b9453c91f3bea47d947253dc16912b96ba3f584bc384c217e4b72cd4b", kill_on_drop: false }` [INFO] [stdout] d506115b9453c91f3bea47d947253dc16912b96ba3f584bc384c217e4b72cd4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db49d225f0d4ceca0a9862a5fc96c2cf436a1e097036695a0556e50ad87807d8 [INFO] running `Command { std: "docker" "start" "-a" "db49d225f0d4ceca0a9862a5fc96c2cf436a1e097036695a0556e50ad87807d8", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling cc v1.2.42 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.24 [INFO] [stderr] Compiling grok-rust-sdk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: struct `ChatRequest` is private [INFO] [stdout] --> src/client.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::chat::{ChatCompletion, ChatRequest, ChatResponse, Message, Model, Tool}; [INFO] [stdout] | ^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `ChatRequest` is defined here [INFO] [stdout] --> src/chat.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | struct ChatRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `ChatResponse` is private [INFO] [stdout] --> src/client.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::chat::{ChatCompletion, ChatRequest, ChatResponse, Message, Model, Tool}; [INFO] [stdout] | ^^^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `ChatResponse` is defined here [INFO] [stdout] --> src/chat.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | struct ChatResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GrokError` and `Result` [INFO] [stdout] --> src/chat.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::error::{GrokError, Result}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/chat.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/session.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut metadata = &mut self.metadata; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.metadata` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/session.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | let mut metadata = &mut self.metadata; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn append(&mut self, message: Message) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/session.rs:114:58 [INFO] [stdout] | [INFO] [stdout] 114 | let result = tool_registry.execute_tool_call(tool_call).await?; [INFO] [stdout] | ----------------- ^^^^^^^^^ expected `tools::ToolCall`, found `chat::ToolCall` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `chat::ToolCall` and `tools::ToolCall` have similar names, but are actually distinct types [INFO] [stdout] note: `chat::ToolCall` is defined in module `crate::chat` of the current crate [INFO] [stdout] --> src/chat.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct ToolCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `tools::ToolCall` is defined in module `crate::tools` of the current crate [INFO] [stdout] --> src/tools.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct ToolCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/tools.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn execute_tool_call(&self, tool_call: &ToolCall) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/session.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let mut metadata = &mut self.metadata; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.metadata` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/session.rs:149:28 [INFO] [stdout] | [INFO] [stdout] 149 | let mut metadata = &mut self.metadata; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 141 | pub async fn clear_history(&mut self) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `messages` [INFO] [stdout] --> src/session.rs:150:34 [INFO] [stdout] | [INFO] [stdout] 142 | let mut messages = self.messages.write().await; [INFO] [stdout] | ------------ move occurs because `messages` has type `tokio::sync::RwLockWriteGuard<'_, Vec>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 147 | drop(messages); [INFO] [stdout] | -------- value moved here [INFO] [stdout] ... [INFO] [stdout] 150 | metadata.message_count = messages.len(); [INFO] [stdout] | ^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: borrow occurs due to deref coercion to `Vec` [INFO] [stdout] note: deref defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/sync/rwlock/write_guard.rs:413:5 [INFO] [stdout] | [INFO] [stdout] 413 | type Target = T; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `metadata` of struct `Session` is private [INFO] [stdout] --> src/collections.rs:103:24 [INFO] [stdout] | [INFO] [stdout] 103 | .map(|s| s.metadata.message_count) [INFO] [stdout] | ^^^^^^^^ private field [INFO] [stdout] | [INFO] [stdout] help: a method `metadata` also exists, call it with parentheses [INFO] [stdout] | [INFO] [stdout] 103 | .map(|s| s.metadata().message_count) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `metadata` of struct `Session` is private [INFO] [stdout] --> src/collections.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | .map(|s| s.metadata.total_tokens) [INFO] [stdout] | ^^^^^^^^ private field [INFO] [stdout] | [INFO] [stdout] help: a method `metadata` also exists, call it with parentheses [INFO] [stdout] | [INFO] [stdout] 106 | .map(|s| s.metadata().total_tokens) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `metadata` of struct `Session` is private [INFO] [stdout] --> src/collections.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | if let Some(title) = &session.metadata.title { [INFO] [stdout] | ^^^^^^^^ private field [INFO] [stdout] | [INFO] [stdout] help: a method `metadata` also exists, call it with parentheses [INFO] [stdout] | [INFO] [stdout] 122 | if let Some(title) = &session.metadata().title { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/collections.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | if title.to_lowercase().contains(&query.to_lowercase()) { [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn ToolExecutor + 'static)` doesn't implement `Debug` [INFO] [stdout] --> src/tools.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 81 | pub struct ToolRegistry { [INFO] [stdout] 82 | tools: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `(dyn ToolExecutor + 'static)` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Debug` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/any.rs:166:0 [INFO] [stdout] | [INFO] [stdout] = note: `dyn std::any::Any + std::marker::Send + Sync` [INFO] [stdout] ::: /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/any.rs:159:0 [INFO] [stdout] | [INFO] [stdout] = note: `dyn std::any::Any + std::marker::Send` [INFO] [stdout] ::: /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/any.rs:149:0 [INFO] [stdout] | [INFO] [stdout] = note: `dyn std::any::Any` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.34/src/field.rs:671:1 [INFO] [stdout] | [INFO] [stdout] 671 | impl fmt::Debug for dyn Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn tracing_core::field::Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0382, E0596, E0603, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grok-rust-sdk` (lib) due to 11 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "db49d225f0d4ceca0a9862a5fc96c2cf436a1e097036695a0556e50ad87807d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db49d225f0d4ceca0a9862a5fc96c2cf436a1e097036695a0556e50ad87807d8", kill_on_drop: false }` [INFO] [stdout] db49d225f0d4ceca0a9862a5fc96c2cf436a1e097036695a0556e50ad87807d8