[INFO] fetching crate br-openai 0.1.3... [INFO] checking br-openai-0.1.3 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate br-openai 0.1.3 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate br-openai 0.1.3 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate br-openai 0.1.3 [INFO] finished tweaking crates.io crate br-openai 0.1.3 [INFO] tweaked toml for crates.io crate br-openai 0.1.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate br-openai 0.1.3 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded br-http v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5f33dc8e8fa82c11f719f40e5678c1a55246025e94dd8da221932768825f5c6 [INFO] running `Command { std: "docker" "start" "-a" "a5f33dc8e8fa82c11f719f40e5678c1a55246025e94dd8da221932768825f5c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5f33dc8e8fa82c11f719f40e5678c1a55246025e94dd8da221932768825f5c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5f33dc8e8fa82c11f719f40e5678c1a55246025e94dd8da221932768825f5c6", kill_on_drop: false }` [INFO] [stdout] a5f33dc8e8fa82c11f719f40e5678c1a55246025e94dd8da221932768825f5c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cbe382918bdf3c87c8d614cc0879d6b7cf759b3854667c7acb3856640cbb0dc [INFO] running `Command { std: "docker" "start" "-a" "7cbe382918bdf3c87c8d614cc0879d6b7cf759b3854667c7acb3856640cbb0dc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rand_core v0.9.0-alpha.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Checking publicsuffix v2.2.3 [INFO] [stderr] Checking rand v0.9.0-alpha.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking cookie_store v0.21.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Checking br-http v0.4.3 [INFO] [stderr] Checking br-openai v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/chat.rs:20:69 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn request(&mut self, mut history: JsonValue, prompt: &str, file: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/chat.rs:20:69 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn request(&mut self, mut history: JsonValue, prompt: &str, file: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct OpenAi { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAi` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/chat.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/chat.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 48 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct OpenAi { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAi` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/chat.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/chat.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/chat.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 48 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/chat.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 63 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/chat.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `URL` is never used [INFO] [stdout] --> src/images.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const URL: &str = "https://api.openai.com/v1/images/generations"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/chat.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 63 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Images` is never constructed [INFO] [stdout] --> src/images.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Images {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Images` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `URL` is never used [INFO] [stdout] --> src/images.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const URL: &str = "https://api.openai.com/v1/images/generations"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/models.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Images` is never constructed [INFO] [stdout] --> src/images.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Images {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Images` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/models.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 40 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/models.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/models.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/models.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 40 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 55 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/models.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/files.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 55 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/files.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 45 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/files.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/files.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_message` is never used [INFO] [stdout] --> src/files.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 45 | pub fn set_message(&mut self, role: Role, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/files.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 60 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Role` is never used [INFO] [stdout] --> src/files.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `info` is never used [INFO] [stdout] --> src/files.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 60 | pub fn info(self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.65s [INFO] running `Command { std: "docker" "inspect" "7cbe382918bdf3c87c8d614cc0879d6b7cf759b3854667c7acb3856640cbb0dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cbe382918bdf3c87c8d614cc0879d6b7cf759b3854667c7acb3856640cbb0dc", kill_on_drop: false }` [INFO] [stdout] 7cbe382918bdf3c87c8d614cc0879d6b7cf759b3854667c7acb3856640cbb0dc