[INFO] cloning repository https://github.com/revskill10/structural-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/revskill10/structural-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frevskill10%2Fstructural-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frevskill10%2Fstructural-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c6d1c951b1ff4da9e86d468292bad76d8c0621c [INFO] checking revskill10/structural-rs/0c6d1c951b1ff4da9e86d468292bad76d8c0621c against master#e0e204f3e97ad5f79524b9c259dc38df606ed82c for pr-149218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frevskill10%2Fstructural-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/revskill10/structural-rs [INFO] finished tweaking git repo https://github.com/revskill10/structural-rs [INFO] tweaked toml for git repo https://github.com/revskill10/structural-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/revskill10/structural-rs on toolchain e0e204f3e97ad5f79524b9c259dc38df606ed82c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e0e204f3e97ad5f79524b9c259dc38df606ed82c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/revskill10/structural-rs 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" "+e0e204f3e97ad5f79524b9c259dc38df606ed82c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+e0e204f3e97ad5f79524b9c259dc38df606ed82c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a88ad9120c1c5aaeeadd4b06dcd67ae8912643622868b28223bf17b26bc56d0b [INFO] running `Command { std: "docker" "start" "-a" "a88ad9120c1c5aaeeadd4b06dcd67ae8912643622868b28223bf17b26bc56d0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a88ad9120c1c5aaeeadd4b06dcd67ae8912643622868b28223bf17b26bc56d0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a88ad9120c1c5aaeeadd4b06dcd67ae8912643622868b28223bf17b26bc56d0b", kill_on_drop: false }` [INFO] [stdout] a88ad9120c1c5aaeeadd4b06dcd67ae8912643622868b28223bf17b26bc56d0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+e0e204f3e97ad5f79524b9c259dc38df606ed82c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77eec855888d9f95c476f0f3bde87c483c08cc6171c9d77bcda7fd3ac2176ca0 [INFO] running `Command { std: "docker" "start" "-a" "77eec855888d9f95c476f0f3bde87c483c08cc6171c9d77bcda7fd3ac2176ca0", kill_on_drop: false }` [INFO] [stderr] Checking tokio v1.47.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking flume v0.11.1 [INFO] [stderr] Checking rustix v1.0.8 [INFO] [stderr] Compiling structural-derive v0.1.0 (/opt/rustwide/workdir/structural-derive) [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Checking proc-macro2 v1.0.95 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking syn v2.0.104 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking proptest v1.7.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking async-compression v0.4.27 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.4.11 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking structural-core v0.1.0 (/opt/rustwide/workdir/structural-core) [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:520:33 [INFO] [stdout] | [INFO] [stdout] 520 | message_id: message.id, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:521:29 [INFO] [stdout] | [INFO] [stdout] 521 | sender: message.sender, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:526:54 [INFO] [stdout] | [INFO] [stdout] 526 | let actor_message = A::Message::from(message.payload); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicTypeSpec` and `ShapeError` [INFO] [stdout] --> structural-core/src/protocol.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, ShapeError, TypeSpec, BasicTypeSpec}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> structural-core/src/protocol.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicTypeSpec`, `GoChannel`, `GoContextCancel`, `GoContext`, `PatternResult`, `ProtocolImpl`, `Protocol`, `ShapeBag`, `ShapeError`, `ShapeProtocol`, `patterns`, and `with_shape` [INFO] [stdout] --> structural-core/src/http.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | Shape, ShapeError, TypeSpec, BasicTypeSpec, ShapeProtocol, PatternResult, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 3 | with_shape, patterns, ProtocolId, Protocol, ProtocolImpl, ProtocolError, registry, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 4 | ShapeStream, ShapeBag, StreamError, go, GoChannel, GoContextCancel, GoContext, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts`, `FromRequest`, `HeaderMap`, `Path`, `Query`, `RequestPartsExt`, `delete`, `patch`, `post`, `put`, and `self` [INFO] [stdout] --> structural-core/src/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | extract::{State, Path, Query, Json, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | http::{StatusCode, HeaderMap, Method, Uri, Request}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | middleware::{self, Next}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | response::{Response, IntoResponse}, [INFO] [stdout] 11 | routing::{get, post, put, delete, patch}, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^^ [INFO] [stdout] 12 | Router, RequestPartsExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`, and `de::DeserializeOwned` [INFO] [stdout] --> structural-core/src/http.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Deserialize, Serialize, de::DeserializeOwned}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> structural-core/src/http.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | sync::{Arc, atomic::{AtomicUsize, AtomicBool, Ordering}}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLock`, `Semaphore`, and `oneshot` [INFO] [stdout] --> structural-core/src/http.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | use tokio::sync::{RwLock, Semaphore, oneshot}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::ServiceBuilder` [INFO] [stdout] --> structural-core/src/http.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use tower::ServiceBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProtocolError`, `ProtocolId`, `ProtocolImpl`, and `ShapeStream` [INFO] [stdout] --> structural-core/src/framework.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, go, GoChannel, ShapeStream, ProtocolImpl, ProtocolError, ProtocolId}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> structural-core/src/framework.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | any::{Any, TypeId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `mpsc` and `oneshot` [INFO] [stdout] --> structural-core/src/framework.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, RwLock, Semaphore, oneshot}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indexmap::IndexMap` [INFO] [stdout] --> structural-core/src/framework.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use indexmap::IndexMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FrameworkError`, `GoChannelError`, and `select` [INFO] [stdout] --> structural-core/src/actors.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, go, GoChannel, GoChannelError, select, FrameworkError, ServiceContainer, EventBus}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::Any`, `future::Future`, and `pin::Pin` [INFO] [stdout] --> structural-core/src/actors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | future::Future, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Semaphore` [INFO] [stdout] --> structural-core/src/actors.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, RwLock, Semaphore}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> structural-core/src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use http::*; [INFO] [stdout] | ^^^^^^^ the name `ContextManager` in the type namespace is first re-exported here [INFO] [stdout] 33 | pub use parsing::*; [INFO] [stdout] 34 | pub use framework::*; [INFO] [stdout] | ------------ but the name `ContextManager` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:520:33 [INFO] [stdout] | [INFO] [stdout] 520 | message_id: message.id, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:521:29 [INFO] [stdout] | [INFO] [stdout] 521 | sender: message.sender, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `message` in this scope [INFO] [stdout] --> structural-core/src/actors.rs:526:54 [INFO] [stdout] | [INFO] [stdout] 526 | let actor_message = A::Message::from(message.payload); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ShapeError` [INFO] [stdout] --> structural-core/src/protocol.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, ShapeError, TypeSpec, BasicTypeSpec}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> structural-core/src/protocol.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> structural-core/src/streaming.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BasicTypeSpec`, `GoChannel`, `GoContextCancel`, `GoContext`, `PatternResult`, `ProtocolImpl`, `Protocol`, `ShapeBag`, `ShapeError`, `ShapeProtocol`, `patterns`, and `with_shape` [INFO] [stdout] --> structural-core/src/http.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | Shape, ShapeError, TypeSpec, BasicTypeSpec, ShapeProtocol, PatternResult, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 3 | with_shape, patterns, ProtocolId, Protocol, ProtocolImpl, ProtocolError, registry, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 4 | ShapeStream, ShapeBag, StreamError, go, GoChannel, GoContextCancel, GoContext, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts`, `FromRequest`, `HeaderMap`, `Path`, `Query`, `RequestPartsExt`, `delete`, `patch`, `post`, `put`, and `self` [INFO] [stdout] --> structural-core/src/http.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | extract::{State, Path, Query, Json, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | http::{StatusCode, HeaderMap, Method, Uri, Request}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | middleware::{self, Next}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | response::{Response, IntoResponse}, [INFO] [stdout] 11 | routing::{get, post, put, delete, patch}, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^^ [INFO] [stdout] 12 | Router, RequestPartsExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`, and `de::DeserializeOwned` [INFO] [stdout] --> structural-core/src/http.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Deserialize, Serialize, de::DeserializeOwned}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> structural-core/src/http.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | sync::{Arc, atomic::{AtomicUsize, AtomicBool, Ordering}}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLock`, `Semaphore`, and `oneshot` [INFO] [stdout] --> structural-core/src/http.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | use tokio::sync::{RwLock, Semaphore, oneshot}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::ServiceBuilder` [INFO] [stdout] --> structural-core/src/http.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use tower::ServiceBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProtocolError`, `ProtocolId`, `ProtocolImpl`, and `ShapeStream` [INFO] [stdout] --> structural-core/src/framework.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, go, GoChannel, ShapeStream, ProtocolImpl, ProtocolError, ProtocolId}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> structural-core/src/framework.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | any::{Any, TypeId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `mpsc` and `oneshot` [INFO] [stdout] --> structural-core/src/framework.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, RwLock, Semaphore, oneshot}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indexmap::IndexMap` [INFO] [stdout] --> structural-core/src/framework.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use indexmap::IndexMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FrameworkError`, `GoChannelError`, and `select` [INFO] [stdout] --> structural-core/src/actors.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Shape, go, GoChannel, GoChannelError, select, FrameworkError, ServiceContainer, EventBus}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::Any`, `future::Future`, and `pin::Pin` [INFO] [stdout] --> structural-core/src/actors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | future::Future, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Semaphore` [INFO] [stdout] --> structural-core/src/actors.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, RwLock, Semaphore}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> structural-core/src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use http::*; [INFO] [stdout] | ^^^^^^^ the name `ContextManager` in the type namespace is first re-exported here [INFO] [stdout] 33 | pub use parsing::*; [INFO] [stdout] 34 | pub use framework::*; [INFO] [stdout] | ------------ but the name `ContextManager` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/concurrency.rs:369:17 [INFO] [stdout] | [INFO] [stdout] 369 | let mut operations = std::mem::take(&mut self.operations); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/concurrency.rs:369:17 [INFO] [stdout] | [INFO] [stdout] 369 | let mut operations = std::mem::take(&mut self.operations); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Vec: Clone` is not satisfied [INFO] [stdout] --> structural-core/src/framework.rs:306:43 [INFO] [stdout] | [INFO] [stdout] 306 | subscribers_map.get(event_id).cloned().unwrap_or_default() [INFO] [stdout] | ^^^^^^ the trait `Clone` is not implemented for `Vec` [INFO] [stdout] | [INFO] [stdout] = note: required for `Vec` to implement `Clone` [INFO] [stdout] note: required by a bound in `std::option::Option::<&T>::cloned` [INFO] [stdout] --> /rustc/e0e204f3e97ad5f79524b9c259dc38df606ed82c/library/core/src/option.rs:2078:4 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 306 | (&subscribers_map.get(event_id)).cloned().unwrap_or_default() [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for struct `tokio::sync::RwLockReadGuard<'_, Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> structural-core/src/framework.rs:312:23 [INFO] [stdout] | [INFO] [stdout] 196 | struct EventSubscriber { [INFO] [stdout] | ---------------------- doesn't satisfy `EventSubscriber: Clone` [INFO] [stdout] ... [INFO] [stdout] 312 | wildcards.clone() [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `EventSubscriber: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] help: consider annotating `EventSubscriber` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 196 + #[derive(Clone)] [INFO] [stdout] 197 | struct EventSubscriber { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Vec: Clone` is not satisfied [INFO] [stdout] --> structural-core/src/framework.rs:306:43 [INFO] [stdout] | [INFO] [stdout] 306 | subscribers_map.get(event_id).cloned().unwrap_or_default() [INFO] [stdout] | ^^^^^^ the trait `Clone` is not implemented for `Vec` [INFO] [stdout] | [INFO] [stdout] = note: required for `Vec` to implement `Clone` [INFO] [stdout] note: required by a bound in `std::option::Option::<&T>::cloned` [INFO] [stdout] --> /rustc/e0e204f3e97ad5f79524b9c259dc38df606ed82c/library/core/src/option.rs:2078:4 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 306 | (&subscribers_map.get(event_id)).cloned().unwrap_or_default() [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for struct `tokio::sync::RwLockReadGuard<'_, Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> structural-core/src/framework.rs:312:23 [INFO] [stdout] | [INFO] [stdout] 196 | struct EventSubscriber { [INFO] [stdout] | ---------------------- doesn't satisfy `EventSubscriber: Clone` [INFO] [stdout] ... [INFO] [stdout] 312 | wildcards.clone() [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `EventSubscriber: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] help: consider annotating `EventSubscriber` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 196 + #[derive(Clone)] [INFO] [stdout] 197 | struct EventSubscriber { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `receiver` found for struct `concurrency::GoChannel` in the current scope [INFO] [stdout] --> structural-core/src/framework.rs:689:53 [INFO] [stdout] | [INFO] [stdout] 689 | let mut shutdown_rx = self.shutdown_channel.receiver(); [INFO] [stdout] | ^^^^^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: structural-core/src/concurrency.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GoChannel { [INFO] [stdout] | -------------------- method `receiver` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `recv` with a similar name [INFO] [stdout] | [INFO] [stdout] 689 - let mut shutdown_rx = self.shutdown_channel.receiver(); [INFO] [stdout] 689 + let mut shutdown_rx = self.shutdown_channel.recv(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `receiver` found for struct `concurrency::GoChannel` in the current scope [INFO] [stdout] --> structural-core/src/framework.rs:689:53 [INFO] [stdout] | [INFO] [stdout] 689 | let mut shutdown_rx = self.shutdown_channel.receiver(); [INFO] [stdout] | ^^^^^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: structural-core/src/concurrency.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GoChannel { [INFO] [stdout] | -------------------- method `receiver` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `recv` with a similar name [INFO] [stdout] | [INFO] [stdout] 689 - let mut shutdown_rx = self.shutdown_channel.receiver(); [INFO] [stdout] 689 + let mut shutdown_rx = self.shutdown_channel.recv(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded_sender` [INFO] [stdout] --> structural-core/src/concurrency.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | let (bounded_sender, bounded_receiver) = mpsc::channel::(capacity); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded_sender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded_receiver` [INFO] [stdout] --> structural-core/src/concurrency.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | let (bounded_sender, bounded_receiver) = mpsc::channel::(capacity); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/streaming.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut iter = items.into_iter(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/http.rs:504:23 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn service(mut self, id: &str, service: T) -> Self [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/http.rs:513:32 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn protocol_service(mut self, protocol_id: ProtocolId, service: T) -> Self [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> structural-core/src/http.rs:785:9 [INFO] [stdout] | [INFO] [stdout] 785 | ctx: &'a RequestContext, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> structural-core/src/framework.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | fn dispose(&self, instance: Self::Output) -> Pin> + Send>> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id` [INFO] [stdout] --> structural-core/src/framework.rs:656:44 [INFO] [stdout] | [INFO] [stdout] 656 | pub async fn execute_task(&self, task_id: &str, input: I) -> Result [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_shape` [INFO] [stdout] --> structural-core/src/framework.rs:667:13 [INFO] [stdout] | [INFO] [stdout] 667 | let input_shape = input.into(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded_sender` [INFO] [stdout] --> structural-core/src/concurrency.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | let (bounded_sender, bounded_receiver) = mpsc::channel::(capacity); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded_sender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded_receiver` [INFO] [stdout] --> structural-core/src/concurrency.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | let (bounded_sender, bounded_receiver) = mpsc::channel::(capacity); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/concurrency.rs:557:13 [INFO] [stdout] | [INFO] [stdout] 557 | let mut ch = GoChannel::typed(type_spec, "string_channel"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `structural-core` (lib) due to 6 previous errors; 26 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/streaming.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut iter = items.into_iter(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/http.rs:504:23 [INFO] [stdout] | [INFO] [stdout] 504 | pub fn service(mut self, id: &str, service: T) -> Self [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> structural-core/src/http.rs:513:32 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn protocol_service(mut self, protocol_id: ProtocolId, service: T) -> Self [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> structural-core/src/http.rs:785:9 [INFO] [stdout] | [INFO] [stdout] 785 | ctx: &'a RequestContext, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> structural-core/src/http.rs:1131:45 [INFO] [stdout] | [INFO] [stdout] 1131 | let handler = FunctionHandler::new(|ctx, input| async move { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> structural-core/src/framework.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | fn dispose(&self, instance: Self::Output) -> Pin> + Send>> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id` [INFO] [stdout] --> structural-core/src/framework.rs:656:44 [INFO] [stdout] | [INFO] [stdout] 656 | pub async fn execute_task(&self, task_id: &str, input: I) -> Result [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_shape` [INFO] [stdout] --> structural-core/src/framework.rs:667:13 [INFO] [stdout] | [INFO] [stdout] 667 | let input_shape = input.into(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `middleware` does not live long enough [INFO] [stdout] --> structural-core/src/framework.rs:941:30 [INFO] [stdout] | [INFO] [stdout] 933 | let middleware = SemaphoreMiddleware::new("test_semaphore", 2); [INFO] [stdout] | ---------- binding `middleware` declared here [INFO] [stdout] ... [INFO] [stdout] 941 | let middleware = &middleware; [INFO] [stdout] | ^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 945 | let handle = go(async move { [INFO] [stdout] | __________________________- [INFO] [stdout] 946 | | middleware.process( [INFO] [stdout] 947 | | "concurrent_task", [INFO] [stdout] 948 | | Shape::Uint(i as u64), [INFO] [stdout] ... | [INFO] [stdout] 967 | | ).await [INFO] [stdout] 968 | | }); [INFO] [stdout] | |______________- argument requires that `middleware` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 980 | } [INFO] [stdout] | - `middleware` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] note: requirement that the value outlives `'static` introduced here [INFO] [stdout] --> structural-core/src/concurrency.rs:265:36 [INFO] [stdout] | [INFO] [stdout] 265 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0597, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `structural-core` (lib test) due to 7 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "77eec855888d9f95c476f0f3bde87c483c08cc6171c9d77bcda7fd3ac2176ca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77eec855888d9f95c476f0f3bde87c483c08cc6171c9d77bcda7fd3ac2176ca0", kill_on_drop: false }` [INFO] [stdout] 77eec855888d9f95c476f0f3bde87c483c08cc6171c9d77bcda7fd3ac2176ca0