[INFO] cloning repository https://github.com/w6d-io/libkafka [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/w6d-io/libkafka" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw6d-io%2Flibkafka", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw6d-io%2Flibkafka'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ad4376fd1929de607b221d1d8977c849ea4ad1f5 [INFO] checking w6d-io/libkafka against try#5fee451ebd94296ea05214e819c311e164b30af6 for pr-139042 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw6d-io%2Flibkafka" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/w6d-io/libkafka on toolchain 5fee451ebd94296ea05214e819c311e164b30af6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/w6d-io/libkafka [INFO] finished tweaking git repo https://github.com/w6d-io/libkafka [INFO] tweaked toml for git repo https://github.com/w6d-io/libkafka written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/w6d-io/libkafka 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" "+5fee451ebd94296ea05214e819c311e164b30af6" "fetch" "--manifest-path" "Cargo.toml", 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] Downloading crates ... [INFO] [stderr] Downloaded rdkafka v0.36.2 [INFO] [stderr] Downloaded rdkafka-sys v4.7.0+2.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30d6b014f5c02c8bbabbc93ac95fbf1900abae9bceeba9e9e9387365a6b3ae02 [INFO] running `Command { std: "docker" "start" "-a" "30d6b014f5c02c8bbabbc93ac95fbf1900abae9bceeba9e9e9387365a6b3ae02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30d6b014f5c02c8bbabbc93ac95fbf1900abae9bceeba9e9e9387365a6b3ae02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30d6b014f5c02c8bbabbc93ac95fbf1900abae9bceeba9e9e9387365a6b3ae02", kill_on_drop: false }` [INFO] [stdout] 30d6b014f5c02c8bbabbc93ac95fbf1900abae9bceeba9e9e9387365a6b3ae02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40e18501be84918c86e0ab5de7477d89b8d85e3df9d28b2dc5b07704c35623ff [INFO] running `Command { std: "docker" "start" "-a" "40e18501be84918c86e0ab5de7477d89b8d85e3df9d28b2dc5b07704c35623ff", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling openssl-src v300.3.1+3.3.1 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling rdkafka-sys v4.7.0+2.3.0 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rdkafka v0.36.2 [INFO] [stderr] Checking libkafka v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `anyhow` [INFO] [stdout] --> src/error.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(not(anyhow))] [INFO] [stdout] | ^^^^^^ help: found config with similar value: `feature = "anyhow"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(anyhow)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(anyhow)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `anyhow` [INFO] [stdout] --> src/error.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(anyhow)] [INFO] [stdout] | ^^^^^^ help: found config with similar value: `feature = "anyhow"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(anyhow)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(anyhow)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `anyhow` [INFO] [stdout] --> src/error.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(not(anyhow))] [INFO] [stdout] | ^^^^^^ help: found config with similar value: `feature = "anyhow"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(anyhow)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(anyhow)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `anyhow` [INFO] [stdout] --> src/error.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(anyhow)] [INFO] [stdout] | ^^^^^^ help: found config with similar value: `feature = "anyhow"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(anyhow)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(anyhow)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AsyncRuntime` is not satisfied [INFO] [stdout] --> src/producer.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | impl KafkaProducer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncRuntime` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Producer, Part>` is implemented for `FutureProducer` [INFO] [stdout] = note: required for `FutureProducer` to implement `Producer>` [INFO] [stdout] note: required by a bound in `producer::KafkaProducer` [INFO] [stdout] --> src/producer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct KafkaProducer [INFO] [stdout] | ------------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | T: Producer, [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `KafkaProducer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AsyncRuntime` is not satisfied [INFO] [stdout] --> src/producer.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | pub async fn produce(&self, data: KafkaMessage, timeout: Option) -> Result<()> { [INFO] [stdout] | ^^^^ the trait `AsyncRuntime` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Producer, Part>` is implemented for `FutureProducer` [INFO] [stdout] = note: required for `FutureProducer` to implement `Producer>` [INFO] [stdout] note: required by a bound in `producer::KafkaProducer` [INFO] [stdout] --> src/producer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct KafkaProducer [INFO] [stdout] | ------------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | T: Producer, [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `KafkaProducer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `send` exists for struct `FutureProducer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/producer.rs:138:54 [INFO] [stdout] | [INFO] [stdout] 138 | let delivery_status = self.producer_type.send(message, timeout).await; [INFO] [stdout] | ^^^^ method cannot be called on `FutureProducer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `(): AsyncRuntime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `KafkaConsumer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/consumer.rs:141:42 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct KafkaConsumer { [INFO] [stdout] | ------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 141 | KafkaConsumer::::new(&default_config("test", "test"), &["test"]).unwrap(); [INFO] [stdout] | ^^^ function or associated item cannot be called on `KafkaConsumer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rdkafka-0.36.2/src/consumer/stream_consumer.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct StreamConsumer [INFO] [stdout] | ------------------------------------------------------------------------- doesn't satisfy `StreamConsumer: FromClientConfig` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `(): AsyncRuntime` [INFO] [stdout] which is required by `StreamConsumer: FromClientConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AsyncRuntime` is not satisfied [INFO] [stdout] --> src/consumer.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | KafkaConsumer::new(&default_config("test", "test"), &["test"]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncRuntime` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromClientConfig` is implemented for `StreamConsumer` [INFO] [stdout] = note: required for `StreamConsumer` to implement `FromClientConfig` [INFO] [stdout] note: required by a bound in `consumer::KafkaConsumer::::new` [INFO] [stdout] --> src/consumer.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | impl KafkaConsumer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `KafkaConsumer::::new` [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn new>(config: &HashMap, topics_name: &[S]) -> Result { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AsyncRuntime` is not satisfied [INFO] [stdout] --> src/consumer.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | KafkaConsumer::new(&default_config("test", "test"), &["test"]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncRuntime` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromClientConfig` is implemented for `StreamConsumer` [INFO] [stdout] = note: required for `StreamConsumer` to implement `FromClientConfig` [INFO] [stdout] note: required by a bound in `consumer::KafkaConsumer::::new` [INFO] [stdout] --> src/consumer.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | impl KafkaConsumer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `KafkaConsumer::::new` [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn new>(config: &HashMap, topics_name: &[S]) -> Result { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `rdkafka::message::OwnedHeaders` in the current scope [INFO] [stdout] --> src/utils.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 70 | let headers = OwnedHeaders::new() [INFO] [stdout] | _______________________- [INFO] [stdout] 71 | | .add("test1", "test1") [INFO] [stdout] | | -^^^ method not found in `OwnedHeaders` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `rdkafka::message::OwnedHeaders` in the current scope [INFO] [stdout] --> src/utils.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 84 | let expected = OwnedHeaders::new() [INFO] [stdout] | ________________________- [INFO] [stdout] 85 | | .add("test", "test") [INFO] [stdout] | | -^^^ method not found in `OwnedHeaders` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some((k, v)) = headers.get_as::(i) { [INFO] [stdout] | ^^^^^^^^^^^^ ------------------------ this expression has type `std::result::Result, Utf8Error>` [INFO] [stdout] | | [INFO] [stdout] | expected `Result, Utf8Error>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, Utf8Error>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libkafka` (lib test) due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "40e18501be84918c86e0ab5de7477d89b8d85e3df9d28b2dc5b07704c35623ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40e18501be84918c86e0ab5de7477d89b8d85e3df9d28b2dc5b07704c35623ff", kill_on_drop: false }` [INFO] [stdout] 40e18501be84918c86e0ab5de7477d89b8d85e3df9d28b2dc5b07704c35623ff