[INFO] fetching crate kotoba-event-stream 0.1.22... [INFO] testing kotoba-event-stream-0.1.22 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate kotoba-event-stream 0.1.22 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate kotoba-event-stream 0.1.22 [INFO] finished tweaking crates.io crate kotoba-event-stream 0.1.22 [INFO] tweaked toml for crates.io crate kotoba-event-stream 0.1.22 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate kotoba-event-stream 0.1.22 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate kotoba-event-stream 0.1.22 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded iso8601 v0.6.3 [INFO] [stderr] Downloaded kotoba-errors v0.1.2 [INFO] [stderr] Downloaded kotoba-storage v0.1.22 [INFO] [stderr] Downloaded metrics v0.23.1 [INFO] [stderr] Downloaded fraction v0.13.1 [INFO] [stderr] Downloaded fancy-regex v0.11.0 [INFO] [stderr] Downloaded kotoba-core v0.1.22 [INFO] [stderr] Downloaded jsonschema v0.17.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7eb5c5b6bc41141c5917c0bf48b4385acd3906a642586366e09cbf9b9b7f1039 [INFO] running `Command { std: "docker" "start" "-a" "7eb5c5b6bc41141c5917c0bf48b4385acd3906a642586366e09cbf9b9b7f1039", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7eb5c5b6bc41141c5917c0bf48b4385acd3906a642586366e09cbf9b9b7f1039", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7eb5c5b6bc41141c5917c0bf48b4385acd3906a642586366e09cbf9b9b7f1039", kill_on_drop: false }` [INFO] [stdout] 7eb5c5b6bc41141c5917c0bf48b4385acd3906a642586366e09cbf9b9b7f1039 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 001d8c4e9db8184fca959491a88670c1408ce7766d7626b2d272afc31ab6ff35 [INFO] running `Command { std: "docker" "start" "-a" "001d8c4e9db8184fca959491a88670c1408ce7766d7626b2d272afc31ab6ff35", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Compiling serde v1.0.225 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling cc v1.2.38 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling nom v8.0.0 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling schemars v0.8.22 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Compiling num-cmp v0.1.0 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling fraction v0.13.1 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling iso8601 v0.6.3 [INFO] [stderr] Compiling fancy-regex v0.11.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [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 serde_derive v1.0.225 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling schemars_derive v0.8.22 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling kotoba-errors v0.1.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling clap v4.5.47 [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 serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling metrics v0.23.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [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 kotoba-storage v0.1.22 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling jsonschema v0.17.1 [INFO] [stderr] Compiling kotoba-core v0.1.22 [INFO] [stderr] Compiling kotoba-event-stream v0.1.22 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `mpsc` [INFO] [stdout] --> src/lib.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::{Mutex, mpsc}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/lib.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/lib.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/storage.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/storage.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `instrument`, and `warn` [INFO] [stdout] --> src/storage.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventStreamConfig` [INFO] [stdout] --> src/storage.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::{TopicStats, EventStreamConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `storage::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use storage::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_id` [INFO] [stdout] --> src/lib.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | async fn get_events_by_aggregate(&self, aggregate_id: &AggregateId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `consumer_offsets` are never read [INFO] [stdout] --> src/lib.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct EventStream { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 115 | config: EventStreamConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | consumer_offsets: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_topics` and `topic_metadata` are never read [INFO] [stdout] --> src/storage.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct EventStorage { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | max_topics: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | /// Topic metadata cache [INFO] [stdout] 38 | topic_metadata: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "001d8c4e9db8184fca959491a88670c1408ce7766d7626b2d272afc31ab6ff35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "001d8c4e9db8184fca959491a88670c1408ce7766d7626b2d272afc31ab6ff35", kill_on_drop: false }` [INFO] [stdout] 001d8c4e9db8184fca959491a88670c1408ce7766d7626b2d272afc31ab6ff35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fc585500753f5f7ed20a86daafecdfcbc58132ad9bbbf768c83dec922e7776d [INFO] running `Command { std: "docker" "start" "-a" "5fc585500753f5f7ed20a86daafecdfcbc58132ad9bbbf768c83dec922e7776d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `mpsc` [INFO] [stdout] --> src/lib.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::{Mutex, mpsc}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/lib.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/lib.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/storage.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/storage.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `instrument`, and `warn` [INFO] [stdout] --> src/storage.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventStreamConfig` [INFO] [stdout] --> src/storage.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::{TopicStats, EventStreamConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `storage::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use storage::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_id` [INFO] [stdout] --> src/lib.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | async fn get_events_by_aggregate(&self, aggregate_id: &AggregateId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `consumer_offsets` are never read [INFO] [stdout] --> src/lib.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct EventStream { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 115 | config: EventStreamConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | consumer_offsets: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling kotoba-event-stream v0.1.22 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `max_topics` and `topic_metadata` are never read [INFO] [stdout] --> src/storage.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct EventStorage { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | max_topics: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | /// Topic metadata cache [INFO] [stdout] 38 | topic_metadata: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `mpsc` [INFO] [stdout] --> src/lib.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::{Mutex, mpsc}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/lib.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/lib.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/storage.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/storage.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `instrument`, and `warn` [INFO] [stdout] --> src/storage.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{info, warn, error, instrument}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventStreamConfig` [INFO] [stdout] --> src/storage.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::{TopicStats, EventStreamConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `storage::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use storage::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_send` found for struct `Box<(dyn Fn(event::EventEnvelope) -> Result<(), anyhow::Error> + Send + Sync + 'static)>` in the current scope [INFO] [stdout] --> src/lib.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | assert!(handler.is_send()); [INFO] [stdout] | ^^^^^^^ method not found in `Box<(dyn Fn(event::EventEnvelope) -> Result<(), anyhow::Error> + Send + Sync + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_sync` found for struct `Box<(dyn Fn(event::EventEnvelope) -> Result<(), anyhow::Error> + Send + Sync + 'static)>` in the current scope [INFO] [stdout] --> src/lib.rs:455:25 [INFO] [stdout] | [INFO] [stdout] 455 | assert!(handler.is_sync()); [INFO] [stdout] | ^^^^^^^ method not found in `Box<(dyn Fn(event::EventEnvelope) -> Result<(), anyhow::Error> + Send + Sync + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:494:25 [INFO] [stdout] | [INFO] [stdout] 494 | id: EventId(Uuid::new_v4()), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EventId(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 494 | id: EventId(Uuid::new_v4().to_string()), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:495:39 [INFO] [stdout] | [INFO] [stdout] 495 | aggregate_id: AggregateId(Uuid::new_v4()), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct AggregateId(pub String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 495 | aggregate_id: AggregateId(Uuid::new_v4().to_string()), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:496:25 [INFO] [stdout] | [INFO] [stdout] 496 | event_type: "TestEvent".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `EventType`, found `String` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `event::EventType` [INFO] [stdout] | [INFO] [stdout] 496 | event_type: event::EventType("TestEvent".to_string()), [INFO] [stdout] | +++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:497:19 [INFO] [stdout] | [INFO] [stdout] 497 | data: event_data, [INFO] [stdout] | ^^^^^^^^^^ expected `EventData`, found `Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `event::EventEnvelope` has no field named `version` [INFO] [stdout] --> src/lib.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | version: 1, [INFO] [stdout] | ^^^^^^^ `event::EventEnvelope` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `aggregate_type`, `sequence_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:537:32 [INFO] [stdout] | [INFO] [stdout] 537 | let event_id = EventId(Uuid::new_v4()); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EventId(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 537 | let event_id = EventId(Uuid::new_v4().to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:551:40 [INFO] [stdout] | [INFO] [stdout] 551 | let aggregate_id = AggregateId(Uuid::new_v4()); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct AggregateId(pub String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 551 | let aggregate_id = AggregateId(Uuid::new_v4().to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:634:25 [INFO] [stdout] | [INFO] [stdout] 634 | id: EventId(Uuid::new_v4()), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EventId(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 634 | id: EventId(Uuid::new_v4().to_string()), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:635:39 [INFO] [stdout] | [INFO] [stdout] 635 | aggregate_id: AggregateId(Uuid::new_v4()), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `String`, found `Uuid` [INFO] [stdout] | | [INFO] [stdout] | arguments to this struct are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/event.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct AggregateId(pub String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 635 | aggregate_id: AggregateId(Uuid::new_v4().to_string()), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:636:25 [INFO] [stdout] | [INFO] [stdout] 636 | event_type: "NotificationEvent".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `EventType`, found `String` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `event::EventType` [INFO] [stdout] | [INFO] [stdout] 636 | event_type: event::EventType("NotificationEvent".to_string()), [INFO] [stdout] | +++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:637:19 [INFO] [stdout] | [INFO] [stdout] 637 | data: event_data, [INFO] [stdout] | ^^^^^^^^^^ expected `EventData`, found `Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `event::EventEnvelope` has no field named `version` [INFO] [stdout] --> src/lib.rs:640:13 [INFO] [stdout] | [INFO] [stdout] 640 | version: 1, [INFO] [stdout] | ^^^^^^^ `event::EventEnvelope` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `aggregate_type`, `sequence_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:679:27 [INFO] [stdout] | [INFO] [stdout] 679 | let (tx1, _rx1) = mpsc::channel(1); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `channel` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 679 | let (tx1, _rx1) = mpsc::channel::(1); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_id` [INFO] [stdout] --> src/lib.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | async fn get_events_by_aggregate(&self, aggregate_id: &AggregateId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/lib.rs:243:29 [INFO] [stdout] | [INFO] [stdout] 243 | async fn put(&self, key: &[u8], value: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lib.rs:243:41 [INFO] [stdout] | [INFO] [stdout] 243 | async fn put(&self, key: &[u8], value: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/lib.rs:247:29 [INFO] [stdout] | [INFO] [stdout] 247 | async fn get(&self, key: &[u8]) -> anyhow::Result>> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/lib.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | async fn delete(&self, key: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> src/lib.rs:255:30 [INFO] [stdout] | [INFO] [stdout] 255 | async fn scan(&self, prefix: &[u8]) -> anyhow::Result, Vec)>> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kotoba-event-stream` (lib test) due to 15 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5fc585500753f5f7ed20a86daafecdfcbc58132ad9bbbf768c83dec922e7776d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fc585500753f5f7ed20a86daafecdfcbc58132ad9bbbf768c83dec922e7776d", kill_on_drop: false }` [INFO] [stdout] 5fc585500753f5f7ed20a86daafecdfcbc58132ad9bbbf768c83dec922e7776d