[INFO] cloning repository https://github.com/DarthCloud64/eshop-payment-service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DarthCloud64/eshop-payment-service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarthCloud64%2Feshop-payment-service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarthCloud64%2Feshop-payment-service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a47dd189a3bfcd6ae56c93fb0eb1b4a7a610fce1 [INFO] building DarthCloud64/eshop-payment-service against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarthCloud64%2Feshop-payment-service" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/DarthCloud64/eshop-payment-service [INFO] finished tweaking git repo https://github.com/DarthCloud64/eshop-payment-service [INFO] tweaked toml for git repo https://github.com/DarthCloud64/eshop-payment-service written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DarthCloud64/eshop-payment-service on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DarthCloud64/eshop-payment-service 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mongodb-internal-macros v3.2.3 [INFO] [stderr] Downloaded protobuf-support v3.7.2 [INFO] [stderr] Downloaded sketches-ddsketch v0.3.0 [INFO] [stderr] Downloaded resolv-conf v0.7.1 [INFO] [stderr] Downloaded amqp_serde v0.4.2 [INFO] [stderr] Downloaded prometheus v0.14.0 [INFO] [stderr] Downloaded metrics v0.24.1 [INFO] [stderr] Downloaded metrics-util v0.19.0 [INFO] [stderr] Downloaded openssl-sys v0.9.107 [INFO] [stderr] Downloaded amqprs v2.1.1 [INFO] [stderr] Downloaded raw-cpuid v11.5.0 [INFO] [stderr] Downloaded bson v2.14.0 [INFO] [stderr] Downloaded protobuf v3.7.2 [INFO] [stderr] Downloaded reqwest v0.12.15 [INFO] [stderr] Downloaded async-compression v0.4.22 [INFO] [stderr] Downloaded metrics-exporter-prometheus v0.16.2 [INFO] [stderr] Downloaded serde_qs v0.14.0 [INFO] [stderr] Downloaded rustls v0.23.26 [INFO] [stderr] Downloaded axum-prometheus v0.8.0 [INFO] [stderr] Downloaded jwks v0.4.0 [INFO] [stderr] Downloaded mongodb v3.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20ffce735bf4d92e84821aaf3d53e0cd52e9d1a1d114cce37a0468b235885104 [INFO] running `Command { std: "docker" "start" "-a" "20ffce735bf4d92e84821aaf3d53e0cd52e9d1a1d114cce37a0468b235885104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20ffce735bf4d92e84821aaf3d53e0cd52e9d1a1d114cce37a0468b235885104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20ffce735bf4d92e84821aaf3d53e0cd52e9d1a1d114cce37a0468b235885104", kill_on_drop: false }` [INFO] [stdout] 20ffce735bf4d92e84821aaf3d53e0cd52e9d1a1d114cce37a0468b235885104 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a74bf1addcd6e11d0f0e2688d757c40a6aa5ea1bcd865caaeba551073a27dff [INFO] running `Command { std: "docker" "start" "-a" "5a74bf1addcd6e11d0f0e2688d757c40a6aa5ea1bcd865caaeba551073a27dff", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling raw-cpuid v11.5.0 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling brotli-decompressor v4.0.2 [INFO] [stderr] Compiling protobuf v3.7.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling sketches-ddsketch v0.3.0 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling hostname v0.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling resolv-conf v0.7.1 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling metrics v0.24.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling prometheus v0.14.0 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling quanta v0.12.5 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.107 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling metrics-util v0.19.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling protobuf-support v3.7.2 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.16.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling derive-where v1.2.7 [INFO] [stderr] Compiling derive_more v0.99.19 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.3 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_qs v0.14.0 [INFO] [stderr] Compiling amqp_serde v0.4.2 [INFO] [stderr] Compiling bson v2.14.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling async-compression v0.4.22 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling amqprs v2.1.1 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.3 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling mongodb v3.2.3 [INFO] [stderr] Compiling jwks v0.4.0 [INFO] [stderr] Compiling axum-prometheus v0.8.0 [INFO] [stderr] Compiling eshop-payments v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cqrs.rs:6:154 [INFO] [stdout] | [INFO] [stdout] 6 | ...mptyResponse, LineItemRequestDto, Response}, paymentprocessors::{self, PaymentProcessor}}; [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 variable: `input` [INFO] [stdout] --> src/cqrs.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handle(&self, input: &CreateCheckoutSessionCommand) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/events.rs:93:37 [INFO] [stdout] | [INFO] [stdout] 93 | async fn publish_message(&self, event: &Event) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/events.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/paymentprocessors.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn create_checkout_session(&self, mut payment: Payment) -> Result { [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: unreachable pattern [INFO] [stdout] --> src/events.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 148 | Event::ProductCreatedEvent { id, name, price } => { [INFO] [stdout] | ---------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => event!(Level::INFO, "Event not supported") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Query` is never used [INFO] [stdout] --> src/cqrs.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Query{} [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `QueryHandler` is never used [INFO] [stdout] --> src/cqrs.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait QueryHandler{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `product_id`, `quantity`, and `price` are never read [INFO] [stdout] --> src/domain.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct LineItem { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | pub product_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | pub quantity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | pub price: f32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_items`, `status`, `payment_processor`, `payment_processor_id`, and `payment_processor_status` are never read [INFO] [stdout] --> src/domain.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Payment { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub id: String, [INFO] [stdout] 9 | pub line_items: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub payment_processor: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub payment_processor_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub payment_processor_status: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base_redirect_url` is never read [INFO] [stdout] --> src/paymentprocessors.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct StripePaymentProcessor { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 17 | base_redirect_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentProcessorCreateCheckoutSessionResponseDto` is never constructed [INFO] [stdout] --> src/dtos.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct PaymentProcessorCreateCheckoutSessionResponseDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductResponse` is never constructed [INFO] [stdout] --> src/dtos.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ProductResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetProductsResponse` is never constructed [INFO] [stdout] --> src/dtos.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct GetProductsResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `publish_message` is never used [INFO] [stdout] --> src/events.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub trait MessageBroker { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 45 | async fn publish_message(&self, event: &Event) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 24s [INFO] running `Command { std: "docker" "inspect" "5a74bf1addcd6e11d0f0e2688d757c40a6aa5ea1bcd865caaeba551073a27dff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a74bf1addcd6e11d0f0e2688d757c40a6aa5ea1bcd865caaeba551073a27dff", kill_on_drop: false }` [INFO] [stdout] 5a74bf1addcd6e11d0f0e2688d757c40a6aa5ea1bcd865caaeba551073a27dff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 727dd66b991b0bb374fa79ecb2209177e0ac55ae9804f73a25577c4d213f9449 [INFO] running `Command { std: "docker" "start" "-a" "727dd66b991b0bb374fa79ecb2209177e0ac55ae9804f73a25577c4d213f9449", kill_on_drop: false }` [INFO] [stderr] Compiling eshop-payments v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cqrs.rs:6:154 [INFO] [stdout] | [INFO] [stdout] 6 | ...mptyResponse, LineItemRequestDto, Response}, paymentprocessors::{self, PaymentProcessor}}; [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 variable: `input` [INFO] [stdout] --> src/cqrs.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handle(&self, input: &CreateCheckoutSessionCommand) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/events.rs:93:37 [INFO] [stdout] | [INFO] [stdout] 93 | async fn publish_message(&self, event: &Event) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/events.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/paymentprocessors.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn create_checkout_session(&self, mut payment: Payment) -> Result { [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: unreachable pattern [INFO] [stdout] --> src/events.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 148 | Event::ProductCreatedEvent { id, name, price } => { [INFO] [stdout] | ---------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => event!(Level::INFO, "Event not supported") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Query` is never used [INFO] [stdout] --> src/cqrs.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Query{} [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `QueryHandler` is never used [INFO] [stdout] --> src/cqrs.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait QueryHandler{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `product_id`, `quantity`, and `price` are never read [INFO] [stdout] --> src/domain.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct LineItem { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | pub product_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | pub quantity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | pub price: f32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_items`, `status`, `payment_processor`, `payment_processor_id`, and `payment_processor_status` are never read [INFO] [stdout] --> src/domain.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Payment { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub id: String, [INFO] [stdout] 9 | pub line_items: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub payment_processor: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub payment_processor_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub payment_processor_status: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base_redirect_url` is never read [INFO] [stdout] --> src/paymentprocessors.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct StripePaymentProcessor { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 17 | base_redirect_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentProcessorCreateCheckoutSessionResponseDto` is never constructed [INFO] [stdout] --> src/dtos.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct PaymentProcessorCreateCheckoutSessionResponseDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductResponse` is never constructed [INFO] [stdout] --> src/dtos.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ProductResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetProductsResponse` is never constructed [INFO] [stdout] --> src/dtos.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct GetProductsResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `publish_message` is never used [INFO] [stdout] --> src/events.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub trait MessageBroker { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 45 | async fn publish_message(&self, event: &Event) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "727dd66b991b0bb374fa79ecb2209177e0ac55ae9804f73a25577c4d213f9449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "727dd66b991b0bb374fa79ecb2209177e0ac55ae9804f73a25577c4d213f9449", kill_on_drop: false }` [INFO] [stdout] 727dd66b991b0bb374fa79ecb2209177e0ac55ae9804f73a25577c4d213f9449