[INFO] fetching crate dynamo-runtime 0.6.1... [INFO] checking dynamo-runtime-0.6.1 against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] extracting crate dynamo-runtime 0.6.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate dynamo-runtime 0.6.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate dynamo-runtime 0.6.1 [INFO] tweaked toml for crates.io crate dynamo-runtime 0.6.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dynamo-runtime 0.6.1 on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate dynamo-runtime 0.6.1 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" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a0692368e675ecc5cf0ebbec43c0566ed242cf3ad03c19cb6d8c86bbdbbea5a [INFO] running `Command { std: "docker" "start" "-a" "4a0692368e675ecc5cf0ebbec43c0566ed242cf3ad03c19cb6d8c86bbdbbea5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a0692368e675ecc5cf0ebbec43c0566ed242cf3ad03c19cb6d8c86bbdbbea5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a0692368e675ecc5cf0ebbec43c0566ed242cf3ad03c19cb6d8c86bbdbbea5a", kill_on_drop: false }` [INFO] [stdout] 4a0692368e675ecc5cf0ebbec43c0566ed242cf3ad03c19cb6d8c86bbdbbea5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47d5acd1285a0fb9febaf8af9ccdaffc6cd1409976909d2f63d6dfe11131acb3 [INFO] running `Command { std: "docker" "start" "-a" "47d5acd1285a0fb9febaf8af9ccdaffc6cd1409976909d2f63d6dfe11131acb3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling cc v1.2.38 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling serde_core v1.0.226 [INFO] [stderr] Compiling serde v1.0.226 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling cfg-expr v0.15.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling version-compare v0.2.0 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking deranged v0.5.4 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling jwalk v0.8.1 [INFO] [stderr] Compiling dircpy v0.3.19 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zeromq-src v0.2.6+4.3.4 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling serde_derive v1.0.226 [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 zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking rustls-webpki v0.103.6 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling prost-derive v0.13.5 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking thiserror v2.0.16 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling prost-types v0.13.5 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking opentelemetry v0.31.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling prost-build v0.13.5 [INFO] [stderr] Compiling prost-derive v0.14.1 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Compiling tonic-build v0.13.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling system-deps v6.2.2 [INFO] [stderr] Checking prost v0.14.1 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling protobuf v3.7.2 [INFO] [stderr] Compiling zmq v0.10.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Compiling zmq-sys v0.12.0 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Compiling etcd-client v0.16.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling neli-proc-macros v0.1.4 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-rustls v0.26.3 [INFO] [stderr] Checking opentelemetry_sdk v0.31.0 [INFO] [stderr] Checking protobuf-support v3.7.2 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Compiling enum-ordinalize-derive v4.3.1 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking signatory v0.27.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling rstest_macros v0.23.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling prometheus v0.14.0 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking neli v0.6.5 [INFO] [stderr] Checking nkeys v0.4.5 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking rustls-native-certs v0.7.3 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling enum-ordinalize v4.3.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking tryhard v0.5.2 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking serde_nanos v0.1.4 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking nuid v0.5.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking async-nats v0.40.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking tonic v0.14.2 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking opentelemetry-http v0.31.0 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking tonic-prost v0.14.2 [INFO] [stderr] Checking local-ip-address v0.6.5 [INFO] [stderr] Checking iso8601 v0.6.3 [INFO] [stderr] Checking opentelemetry-proto v0.31.0 [INFO] [stderr] Checking tracing-opentelemetry v0.32.0 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Compiling educe v0.6.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking fraction v0.13.1 [INFO] [stderr] Checking opentelemetry-otlp v0.31.0 [INFO] [stderr] Checking fancy-regex v0.11.0 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tokio-rayon v2.1.0 [INFO] [stderr] Checking nid v3.0.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Compiling derive-getters v0.5.0 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking async-once-cell v0.5.4 [INFO] [stderr] Checking xxhash-rust v0.8.15 [INFO] [stderr] Checking bytecount v0.6.9 [INFO] [stderr] Checking rstest v0.23.0 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking jsonschema v0.17.1 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking temp-env v0.3.6 [INFO] [stderr] Checking stdio-override v0.2.0 [INFO] [stderr] Checking tonic v0.13.1 [INFO] [stderr] Checking async_zmq v0.4.0 [INFO] [stderr] Checking dynamo-runtime v0.6.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | .filter_map(move |res| { [INFO] [stdout] | ^^^^^^^^^^ multiple `filter_map` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `tokio_stream::StreamExt` for the type `St` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `futures::StreamExt` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 179 ~ let stream = tokio_stream::StreamExt::filter_map(tokio_stream::StreamNotifyClose::new( [INFO] [stdout] 180 + tokio_stream::wrappers::ReceiverStream::new(response_stream.rx), [INFO] [stdout] 181 + ), move |res| { [INFO] [stdout] 182 + if let Some(res_bytes) = res { [INFO] [stdout] 183 + if is_complete_final { [INFO] [stdout] 184 + return Some(U::from_err( [INFO] [stdout] 185 + Error::msg( [INFO] [stdout] 186 + "Response received after generation ended - this should never happen", [INFO] [stdout] 187 + ) [INFO] [stdout] 188 + .into(), [INFO] [stdout] 189 + )); [INFO] [stdout] 190 + } [INFO] [stdout] 191 + match serde_json::from_slice::>(&res_bytes) { [INFO] [stdout] 192 + Ok(item) => { [INFO] [stdout] 193 + is_complete_final = item.complete_final; [INFO] [stdout] 194 + if let Some(data) = item.data { [INFO] [stdout] 195 + Some(data) [INFO] [stdout] 196 + } else if is_complete_final { [INFO] [stdout] 197 + None [INFO] [stdout] 198 + } else { [INFO] [stdout] 199 + Some(U::from_err( [INFO] [stdout] 200 + Error::msg("Empty response received - this should never happen") [INFO] [stdout] 201 + .into(), [INFO] [stdout] 202 + )) [INFO] [stdout] 203 + } [INFO] [stdout] 204 + } [INFO] [stdout] 205 + Err(err) => { [INFO] [stdout] 206 + // legacy log print [INFO] [stdout] 207 + let json_str = String::from_utf8_lossy(&res_bytes); [INFO] [stdout] 208 + log::warn!(%err, %json_str, "Failed deserializing JSON to response"); [INFO] [stdout] 209 + [INFO] [stdout] 210 + Some(U::from_err(Error::new(err).into())) [INFO] [stdout] 211 + } [INFO] [stdout] 212 + } [INFO] [stdout] 213 + } else if is_complete_final { [INFO] [stdout] 214 + // end of stream [INFO] [stdout] 215 + None [INFO] [stdout] 216 + } else if engine_ctx_.is_stopped() { [INFO] [stdout] 217 + // Gracefully end the stream if 'stop_generating()' was called. Do NOT check for [INFO] [stdout] 218 + // 'is_killed()' here because it implies the stream ended abnormally which should be [INFO] [stdout] 219 + // handled by the error branch below. [INFO] [stdout] 220 + log::debug!("Request cancelled and then trying to read a response"); [INFO] [stdout] 221 + None [INFO] [stdout] 222 + } else { [INFO] [stdout] 223 + // stream ended unexpectedly [INFO] [stdout] 224 + log::debug!("{STREAM_ERR_MSG}"); [INFO] [stdout] 225 + Some(U::from_err(Error::msg(STREAM_ERR_MSG).into())) [INFO] [stdout] 226 + } [INFO] [stdout] 227 ~ }); [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 179 ~ let stream = futures::StreamExt::filter_map(tokio_stream::StreamNotifyClose::new( [INFO] [stdout] 180 + tokio_stream::wrappers::ReceiverStream::new(response_stream.rx), [INFO] [stdout] 181 + ), move |res| { [INFO] [stdout] 182 + if let Some(res_bytes) = res { [INFO] [stdout] 183 + if is_complete_final { [INFO] [stdout] 184 + return Some(U::from_err( [INFO] [stdout] 185 + Error::msg( [INFO] [stdout] 186 + "Response received after generation ended - this should never happen", [INFO] [stdout] 187 + ) [INFO] [stdout] 188 + .into(), [INFO] [stdout] 189 + )); [INFO] [stdout] 190 + } [INFO] [stdout] 191 + match serde_json::from_slice::>(&res_bytes) { [INFO] [stdout] 192 + Ok(item) => { [INFO] [stdout] 193 + is_complete_final = item.complete_final; [INFO] [stdout] 194 + if let Some(data) = item.data { [INFO] [stdout] 195 + Some(data) [INFO] [stdout] 196 + } else if is_complete_final { [INFO] [stdout] 197 + None [INFO] [stdout] 198 + } else { [INFO] [stdout] 199 + Some(U::from_err( [INFO] [stdout] 200 + Error::msg("Empty response received - this should never happen") [INFO] [stdout] 201 + .into(), [INFO] [stdout] 202 + )) [INFO] [stdout] 203 + } [INFO] [stdout] 204 + } [INFO] [stdout] 205 + Err(err) => { [INFO] [stdout] 206 + // legacy log print [INFO] [stdout] 207 + let json_str = String::from_utf8_lossy(&res_bytes); [INFO] [stdout] 208 + log::warn!(%err, %json_str, "Failed deserializing JSON to response"); [INFO] [stdout] 209 + [INFO] [stdout] 210 + Some(U::from_err(Error::new(err).into())) [INFO] [stdout] 211 + } [INFO] [stdout] 212 + } [INFO] [stdout] 213 + } else if is_complete_final { [INFO] [stdout] 214 + // end of stream [INFO] [stdout] 215 + None [INFO] [stdout] 216 + } else if engine_ctx_.is_stopped() { [INFO] [stdout] 217 + // Gracefully end the stream if 'stop_generating()' was called. Do NOT check for [INFO] [stdout] 218 + // 'is_killed()' here because it implies the stream ended abnormally which should be [INFO] [stdout] 219 + // handled by the error branch below. [INFO] [stdout] 220 + log::debug!("Request cancelled and then trying to read a response"); [INFO] [stdout] 221 + None [INFO] [stdout] 222 + } else { [INFO] [stdout] 223 + // stream ended unexpectedly [INFO] [stdout] 224 + log::debug!("{STREAM_ERR_MSG}"); [INFO] [stdout] 225 + Some(U::from_err(Error::msg(STREAM_ERR_MSG).into())) [INFO] [stdout] 226 + } [INFO] [stdout] 227 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(res_bytes) = res { [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(res_bytes) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `std::prelude::v1::Some` [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/option.rs:608:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:182:27 [INFO] [stdout] | [INFO] [stdout] 182 | .filter_map(move |res| { [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by an implicit `Sized` bound in `std::option::Option` [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/option.rs:600:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | .filter_map(move |res| { [INFO] [stdout] | ^^^^^^^^^^ multiple `filter_map` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `tokio_stream::StreamExt` for the type `St` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `futures::StreamExt` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 179 ~ let stream = tokio_stream::StreamExt::filter_map(tokio_stream::StreamNotifyClose::new( [INFO] [stdout] 180 + tokio_stream::wrappers::ReceiverStream::new(response_stream.rx), [INFO] [stdout] 181 + ), move |res| { [INFO] [stdout] 182 + if let Some(res_bytes) = res { [INFO] [stdout] 183 + if is_complete_final { [INFO] [stdout] 184 + return Some(U::from_err( [INFO] [stdout] 185 + Error::msg( [INFO] [stdout] 186 + "Response received after generation ended - this should never happen", [INFO] [stdout] 187 + ) [INFO] [stdout] 188 + .into(), [INFO] [stdout] 189 + )); [INFO] [stdout] 190 + } [INFO] [stdout] 191 + match serde_json::from_slice::>(&res_bytes) { [INFO] [stdout] 192 + Ok(item) => { [INFO] [stdout] 193 + is_complete_final = item.complete_final; [INFO] [stdout] 194 + if let Some(data) = item.data { [INFO] [stdout] 195 + Some(data) [INFO] [stdout] 196 + } else if is_complete_final { [INFO] [stdout] 197 + None [INFO] [stdout] 198 + } else { [INFO] [stdout] 199 + Some(U::from_err( [INFO] [stdout] 200 + Error::msg("Empty response received - this should never happen") [INFO] [stdout] 201 + .into(), [INFO] [stdout] 202 + )) [INFO] [stdout] 203 + } [INFO] [stdout] 204 + } [INFO] [stdout] 205 + Err(err) => { [INFO] [stdout] 206 + // legacy log print [INFO] [stdout] 207 + let json_str = String::from_utf8_lossy(&res_bytes); [INFO] [stdout] 208 + log::warn!(%err, %json_str, "Failed deserializing JSON to response"); [INFO] [stdout] 209 + [INFO] [stdout] 210 + Some(U::from_err(Error::new(err).into())) [INFO] [stdout] 211 + } [INFO] [stdout] 212 + } [INFO] [stdout] 213 + } else if is_complete_final { [INFO] [stdout] 214 + // end of stream [INFO] [stdout] 215 + None [INFO] [stdout] 216 + } else if engine_ctx_.is_stopped() { [INFO] [stdout] 217 + // Gracefully end the stream if 'stop_generating()' was called. Do NOT check for [INFO] [stdout] 218 + // 'is_killed()' here because it implies the stream ended abnormally which should be [INFO] [stdout] 219 + // handled by the error branch below. [INFO] [stdout] 220 + log::debug!("Request cancelled and then trying to read a response"); [INFO] [stdout] 221 + None [INFO] [stdout] 222 + } else { [INFO] [stdout] 223 + // stream ended unexpectedly [INFO] [stdout] 224 + log::debug!("{STREAM_ERR_MSG}"); [INFO] [stdout] 225 + Some(U::from_err(Error::msg(STREAM_ERR_MSG).into())) [INFO] [stdout] 226 + } [INFO] [stdout] 227 ~ }); [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 179 ~ let stream = futures::StreamExt::filter_map(tokio_stream::StreamNotifyClose::new( [INFO] [stdout] 180 + tokio_stream::wrappers::ReceiverStream::new(response_stream.rx), [INFO] [stdout] 181 + ), move |res| { [INFO] [stdout] 182 + if let Some(res_bytes) = res { [INFO] [stdout] 183 + if is_complete_final { [INFO] [stdout] 184 + return Some(U::from_err( [INFO] [stdout] 185 + Error::msg( [INFO] [stdout] 186 + "Response received after generation ended - this should never happen", [INFO] [stdout] 187 + ) [INFO] [stdout] 188 + .into(), [INFO] [stdout] 189 + )); [INFO] [stdout] 190 + } [INFO] [stdout] 191 + match serde_json::from_slice::>(&res_bytes) { [INFO] [stdout] 192 + Ok(item) => { [INFO] [stdout] 193 + is_complete_final = item.complete_final; [INFO] [stdout] 194 + if let Some(data) = item.data { [INFO] [stdout] 195 + Some(data) [INFO] [stdout] 196 + } else if is_complete_final { [INFO] [stdout] 197 + None [INFO] [stdout] 198 + } else { [INFO] [stdout] 199 + Some(U::from_err( [INFO] [stdout] 200 + Error::msg("Empty response received - this should never happen") [INFO] [stdout] 201 + .into(), [INFO] [stdout] 202 + )) [INFO] [stdout] 203 + } [INFO] [stdout] 204 + } [INFO] [stdout] 205 + Err(err) => { [INFO] [stdout] 206 + // legacy log print [INFO] [stdout] 207 + let json_str = String::from_utf8_lossy(&res_bytes); [INFO] [stdout] 208 + log::warn!(%err, %json_str, "Failed deserializing JSON to response"); [INFO] [stdout] 209 + [INFO] [stdout] 210 + Some(U::from_err(Error::new(err).into())) [INFO] [stdout] 211 + } [INFO] [stdout] 212 + } [INFO] [stdout] 213 + } else if is_complete_final { [INFO] [stdout] 214 + // end of stream [INFO] [stdout] 215 + None [INFO] [stdout] 216 + } else if engine_ctx_.is_stopped() { [INFO] [stdout] 217 + // Gracefully end the stream if 'stop_generating()' was called. Do NOT check for [INFO] [stdout] 218 + // 'is_killed()' here because it implies the stream ended abnormally which should be [INFO] [stdout] 219 + // handled by the error branch below. [INFO] [stdout] 220 + log::debug!("Request cancelled and then trying to read a response"); [INFO] [stdout] 221 + None [INFO] [stdout] 222 + } else { [INFO] [stdout] 223 + // stream ended unexpectedly [INFO] [stdout] 224 + log::debug!("{STREAM_ERR_MSG}"); [INFO] [stdout] 225 + Some(U::from_err(Error::msg(STREAM_ERR_MSG).into())) [INFO] [stdout] 226 + } [INFO] [stdout] 227 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(res_bytes) = res { [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(res_bytes) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `std::prelude::v1::Some` [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/option.rs:608:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/pipeline/network/egress/addressed_router.rs:182:27 [INFO] [stdout] | [INFO] [stdout] 182 | .filter_map(move |res| { [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: there are multiple different versions of crate `core` in the dependency graph [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/marker.rs:161:0 [INFO] [stdout] | [INFO] [stdout] = note: this is the expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.27/src/util/macro_util.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | pub trait Sized: core::marker::Sized {} [INFO] [stdout] | ------------------------------------ this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by an implicit `Sized` bound in `std::option::Option` [INFO] [stdout] --> /rustc/95813608313bff49cfc1afc393a946a3c085b772/library/core/src/option.rs:600:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prologue` [INFO] [stdout] --> src/pipeline/network.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | if let Some(prologue) = self.prologue.take() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prologue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prologue` [INFO] [stdout] --> src/pipeline/network.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | if let Some(prologue) = self.prologue.take() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prologue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dynamo-runtime` (lib) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0034, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dynamo-runtime` (lib test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "47d5acd1285a0fb9febaf8af9ccdaffc6cd1409976909d2f63d6dfe11131acb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47d5acd1285a0fb9febaf8af9ccdaffc6cd1409976909d2f63d6dfe11131acb3", kill_on_drop: false }` [INFO] [stdout] 47d5acd1285a0fb9febaf8af9ccdaffc6cd1409976909d2f63d6dfe11131acb3