[INFO] cloning repository https://github.com/integer32llc/kafka-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/integer32llc/kafka-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finteger32llc%2Fkafka-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finteger32llc%2Fkafka-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95d34bfc8a8f4f31a262542fb1787770fa0c7961 [INFO] building integer32llc/kafka-example against try#b755f8b9936d084e0363ce6b393c7e444a37080e for pr-97334-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finteger32llc%2Fkafka-example" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/integer32llc/kafka-example on toolchain b755f8b9936d084e0363ce6b393c7e444a37080e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/integer32llc/kafka-example [INFO] finished tweaking git repo https://github.com/integer32llc/kafka-example [INFO] tweaked toml for git repo https://github.com/integer32llc/kafka-example written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/integer32llc/kafka-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7152d5690d968cd918b62705d48808dbc948ab2e3d4b7e8ae93b19f336424177 [INFO] running `Command { std: "docker" "start" "-a" "7152d5690d968cd918b62705d48808dbc948ab2e3d4b7e8ae93b19f336424177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7152d5690d968cd918b62705d48808dbc948ab2e3d4b7e8ae93b19f336424177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7152d5690d968cd918b62705d48808dbc948ab2e3d4b7e8ae93b19f336424177", kill_on_drop: false }` [INFO] [stdout] 7152d5690d968cd918b62705d48808dbc948ab2e3d4b7e8ae93b19f336424177 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c76dba62391bc52965288c8c3557fa4bfcd1c47ebfb43cc4d53e0f04d558e72 [INFO] running `Command { std: "docker" "start" "-a" "1c76dba62391bc52965288c8c3557fa4bfcd1c47ebfb43cc4d53e0f04d558e72", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Compiling rdkafka-sys v4.0.0+1.6.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling num_enum_derive v0.5.1 [INFO] [stderr] Compiling num_enum v0.5.1 [INFO] [stderr] Compiling rdkafka v0.26.0 [INFO] [stderr] Compiling k v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `util::Timeout` [INFO] [stdout] --> src/main.rs:2:212 [INFO] [stdout] | [INFO] [stdout] 2 | ... StreamConsumer}, producer::{FutureProducer, FutureRecord}, util::Timeout, Offset, TopicPartitionList}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{array, convert::TryInto, time::{Duration, SystemTime, UNIX_EPOCH}, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::oneshot`, `time` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::{sync::oneshot, task::JoinHandle, time}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/main.rs:102:59 [INFO] [stdout] | [INFO] [stdout] 102 | let mut tasks: FuturesUnordered<_> = array::IntoIter::new([consumer_task, producer_task]).collect(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:43:62 [INFO] [stdout] | [INFO] [stdout] 43 | let consumer_task: JoinHandle> = tokio::spawn(async move { [INFO] [stdout] | ______________________________________________________________^ [INFO] [stdout] 44 | | eprintln!("Consumer task starting"); [INFO] [stdout] 45 | | [INFO] [stdout] 46 | | // This is redundant but shows it working [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | }); [INFO] [stdout] | |_____^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `rdkafka_sys::bindings::rd_kafka_topic_partition_s`, the trait `std::marker::Send` is not implemented for `*mut i8` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 58 | topics.add_partition(TOPIC, 0); [INFO] [stdout] | ------------------------------ has type `TopicPartitionListElem<'_>` which is not `Send` [INFO] [stdout] ... [INFO] [stdout] 63 | let p = consumer.recv().await?; [INFO] [stdout] | ^^^^^^ await occurs here, with `topics.add_partition(TOPIC, 0)` maybe used later [INFO] [stdout] ... [INFO] [stdout] 66 | } [INFO] [stdout] | - `topics.add_partition(TOPIC, 0)` is later dropped here [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.0/src/task/spawn.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | T: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `tokio::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:43:62 [INFO] [stdout] | [INFO] [stdout] 43 | let consumer_task: JoinHandle> = tokio::spawn(async move { [INFO] [stdout] | ______________________________________________________________^ [INFO] [stdout] 44 | | eprintln!("Consumer task starting"); [INFO] [stdout] 45 | | [INFO] [stdout] 46 | | // This is redundant but shows it working [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | }); [INFO] [stdout] | |_____^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `rdkafka_sys::bindings::rd_kafka_topic_partition_s`, the trait `std::marker::Send` is not implemented for `*mut c_void` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 58 | topics.add_partition(TOPIC, 0); [INFO] [stdout] | ------------------------------ has type `TopicPartitionListElem<'_>` which is not `Send` [INFO] [stdout] ... [INFO] [stdout] 63 | let p = consumer.recv().await?; [INFO] [stdout] | ^^^^^^ await occurs here, with `topics.add_partition(TOPIC, 0)` maybe used later [INFO] [stdout] ... [INFO] [stdout] 66 | } [INFO] [stdout] | - `topics.add_partition(TOPIC, 0)` is later dropped here [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/tokio-1.6.0/src/task/spawn.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | T: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `tokio::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `k` due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c76dba62391bc52965288c8c3557fa4bfcd1c47ebfb43cc4d53e0f04d558e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c76dba62391bc52965288c8c3557fa4bfcd1c47ebfb43cc4d53e0f04d558e72", kill_on_drop: false }` [INFO] [stdout] 1c76dba62391bc52965288c8c3557fa4bfcd1c47ebfb43cc4d53e0f04d558e72