[INFO] cloning repository https://github.com/vinamyrnauli/tutorial9-grpc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vinamyrnauli/tutorial9-grpc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinamyrnauli%2Ftutorial9-grpc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinamyrnauli%2Ftutorial9-grpc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76bdef9560f7ea38e684ef04a059d654b8f6e01d [INFO] checking vinamyrnauli/tutorial9-grpc against try#0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinamyrnauli%2Ftutorial9-grpc" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vinamyrnauli/tutorial9-grpc [INFO] finished tweaking git repo https://github.com/vinamyrnauli/tutorial9-grpc [INFO] tweaked toml for git repo https://github.com/vinamyrnauli/tutorial9-grpc written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vinamyrnauli/tutorial9-grpc on toolchain 0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vinamyrnauli/tutorial9-grpc 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" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.199 [INFO] [stderr] Downloaded cc v1.0.95 [INFO] [stderr] Downloaded serde v1.0.199 [INFO] [stderr] Downloaded tonic-build v0.7.2 [INFO] [stderr] Downloaded tonic v0.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d2b8816c479c5b4670847006b2e716eb356e15b06b832d29682adc350ec4994 [INFO] running `Command { std: "docker" "start" "-a" "1d2b8816c479c5b4670847006b2e716eb356e15b06b832d29682adc350ec4994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d2b8816c479c5b4670847006b2e716eb356e15b06b832d29682adc350ec4994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d2b8816c479c5b4670847006b2e716eb356e15b06b832d29682adc350ec4994", kill_on_drop: false }` [INFO] [stdout] 1d2b8816c479c5b4670847006b2e716eb356e15b06b832d29682adc350ec4994 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fcf5269ee604db0d3193de7702237e65bdc81b498157e317ceccefc7467cb20 [INFO] running `Command { std: "docker" "start" "-a" "0fcf5269ee604db0d3193de7702237e65bdc81b498157e317ceccefc7467cb20", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling prost-build v0.10.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling prost-derive v0.10.1 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling prost v0.10.4 [INFO] [stderr] Checking axum-core v0.2.9 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling prost-types v0.10.1 [INFO] [stderr] Compiling tonic-build v0.7.2 [INFO] [stderr] Compiling grpc-tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tower-http v0.3.5 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking axum v0.5.17 [INFO] [stderr] Checking tonic v0.7.2 [INFO] [stdout] error[E0405]: cannot find trait `PaymentService` in this scope [INFO] [stdout] --> src/grpc_server.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl PaymentService for MyPaymentService { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::payment_service_server::PaymentService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PaymentResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentRequest { [INFO] [stdout] | ------------------------- similarly named struct `PaymentRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 - ) -> Result, Status> { [INFO] [stdout] 21 + ) -> Result, Status> { [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::PaymentResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PaymentResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(Response::new(PaymentResponse { success: true })) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentRequest { [INFO] [stdout] | ------------------------- similarly named struct `PaymentRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 - Ok(Response::new(PaymentResponse { success: true })) [INFO] [stdout] 26 + Ok(Response::new(PaymentRequest { success: true })) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::PaymentResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `TransactionService` in this scope [INFO] [stdout] --> src/grpc_server.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | impl TransactionService for MyTransactionService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::transaction_service_server::TransactionService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:35:62 [INFO] [stdout] | [INFO] [stdout] 35 | type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 35 - type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] 35 + type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | Sender>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 43 - Sender>, [INFO] [stdout] 43 + Sender>, [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Receiver>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - Receiver>, [INFO] [stdout] 44 + Receiver>, [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | .send(Ok(TransactionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 50 - .send(Ok(TransactionResponse { [INFO] [stdout] 50 + .send(Ok(TransactionRequest { [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ChatService` in this scope [INFO] [stdout] --> src/grpc_server.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 75 | impl ChatService for MyChatService { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::chat_service_server::ChatService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentServiceServer` [INFO] [stdout] --> src/grpc_server.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | .add_service(PaymentServiceServer::new(payment_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PaymentServiceServer` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 112 - .add_service(PaymentServiceServer::new(payment_service)) [INFO] [stdout] 112 + .add_service(PaymentServiceClient::new(payment_service)) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::payment_service_server::PaymentServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TransactionServiceServer` [INFO] [stdout] --> src/grpc_server.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | .add_service(TransactionServiceServer::new(transaction_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TransactionServiceServer` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 113 - .add_service(TransactionServiceServer::new(transaction_service)) [INFO] [stdout] 113 + .add_service(TransactionServiceClient::new(transaction_service)) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::transaction_service_server::TransactionServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChatServiceServer` [INFO] [stdout] --> src/grpc_server.rs:114:22 [INFO] [stdout] | [INFO] [stdout] 114 | .add_service(ChatServiceServer::new(chat_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `ChatServiceServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::chat_service_server::ChatServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chat_service` in this scope [INFO] [stdout] --> src/grpc_server.rs:114:45 [INFO] [stdout] | [INFO] [stdout] 114 | .add_service(ChatServiceServer::new(chat_service)) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `chat_service_client::ChatServiceClient`, `payment_service_client::PaymentServiceClient`, and `transaction_service_client::TransactionServiceClient` [INFO] [stdout] --> src/grpc_server.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use services::{payment_service_client::PaymentServiceClient, PaymentRequest,transaction_service_client::TransactionServiceClient, Transac... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | chat_service_client::ChatServiceClient, ChatMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/grpc_server.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `GetTransactionHistoryStream` implemented for `MyTransactionService`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 40 - ) -> Result, Status> { [INFO] [stdout] 40 + ) -> Result::GetTransactionHistoryStream>, Status> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/grpc_server.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `ChatStream` implemented for `MyChatService`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 81 - ) -> Result, Status> { [INFO] [stdout] 81 + ) -> Result::ChatStream>, Status> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0405, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grpc-tutorial` (bin "grpc-server") due to 15 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0405]: cannot find trait `PaymentService` in this scope [INFO] [stdout] --> src/grpc_server.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl PaymentService for MyPaymentService { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::payment_service_server::PaymentService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PaymentResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentRequest { [INFO] [stdout] | ------------------------- similarly named struct `PaymentRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 - ) -> Result, Status> { [INFO] [stdout] 21 + ) -> Result, Status> { [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::PaymentResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PaymentResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(Response::new(PaymentResponse { success: true })) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentRequest { [INFO] [stdout] | ------------------------- similarly named struct `PaymentRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 - Ok(Response::new(PaymentResponse { success: true })) [INFO] [stdout] 26 + Ok(Response::new(PaymentRequest { success: true })) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::PaymentResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `TransactionService` in this scope [INFO] [stdout] --> src/grpc_server.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | impl TransactionService for MyTransactionService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::transaction_service_server::TransactionService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:35:62 [INFO] [stdout] | [INFO] [stdout] 35 | type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 35 - type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] 35 + type GetTransactionHistoryStream = ReceiverStream>; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | Sender>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 43 - Sender>, [INFO] [stdout] 43 + Sender>, [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Receiver>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - Receiver>, [INFO] [stdout] 44 + Receiver>, [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TransactionResponse` in this scope [INFO] [stdout] --> src/grpc_server.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | .send(Ok(TransactionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/target/debug/build/grpc-tutorial-627c693377723ca5/out/services.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TransactionRequest { [INFO] [stdout] | ----------------------------- similarly named struct `TransactionRequest` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 50 - .send(Ok(TransactionResponse { [INFO] [stdout] 50 + .send(Ok(TransactionRequest { [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::TransactionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ChatService` in this scope [INFO] [stdout] --> src/grpc_server.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 75 | impl ChatService for MyChatService { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::chat_service_server::ChatService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentServiceServer` [INFO] [stdout] --> src/grpc_server.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | .add_service(PaymentServiceServer::new(payment_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PaymentServiceServer` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 112 - .add_service(PaymentServiceServer::new(payment_service)) [INFO] [stdout] 112 + .add_service(PaymentServiceClient::new(payment_service)) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::payment_service_server::PaymentServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TransactionServiceServer` [INFO] [stdout] --> src/grpc_server.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | .add_service(TransactionServiceServer::new(transaction_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TransactionServiceServer` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 113 - .add_service(TransactionServiceServer::new(transaction_service)) [INFO] [stdout] 113 + .add_service(TransactionServiceClient::new(transaction_service)) [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::transaction_service_server::TransactionServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChatServiceServer` [INFO] [stdout] --> src/grpc_server.rs:114:22 [INFO] [stdout] | [INFO] [stdout] 114 | .add_service(ChatServiceServer::new(chat_service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `ChatServiceServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::services::chat_service_server::ChatServiceServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chat_service` in this scope [INFO] [stdout] --> src/grpc_server.rs:114:45 [INFO] [stdout] | [INFO] [stdout] 114 | .add_service(ChatServiceServer::new(chat_service)) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `chat_service_client::ChatServiceClient`, `payment_service_client::PaymentServiceClient`, and `transaction_service_client::TransactionServiceClient` [INFO] [stdout] --> src/grpc_server.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use services::{payment_service_client::PaymentServiceClient, PaymentRequest,transaction_service_client::TransactionServiceClient, Transac... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | chat_service_client::ChatServiceClient, ChatMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/grpc_server.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `GetTransactionHistoryStream` implemented for `MyTransactionService`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 40 - ) -> Result, Status> { [INFO] [stdout] 40 + ) -> Result::GetTransactionHistoryStream>, Status> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/grpc_server.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | ) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `ChatStream` implemented for `MyChatService`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 81 - ) -> Result, Status> { [INFO] [stdout] 81 + ) -> Result::ChatStream>, Status> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0405, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grpc-tutorial` (bin "grpc-server" test) due to 15 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "0fcf5269ee604db0d3193de7702237e65bdc81b498157e317ceccefc7467cb20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fcf5269ee604db0d3193de7702237e65bdc81b498157e317ceccefc7467cb20", kill_on_drop: false }` [INFO] [stdout] 0fcf5269ee604db0d3193de7702237e65bdc81b498157e317ceccefc7467cb20