[INFO] cloning repository https://github.com/cyrilladrian/grpc-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cyrilladrian/grpc-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyrilladrian%2Fgrpc-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyrilladrian%2Fgrpc-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0364fa9545be98783a77d937b7d16292e21f1715 [INFO] checking cyrilladrian/grpc-rust/0364fa9545be98783a77d937b7d16292e21f1715 against master#f8192ba0d00bbbc58a10c45823ba010e98ea4474 for pr-130531 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyrilladrian%2Fgrpc-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cyrilladrian/grpc-rust on toolchain f8192ba0d00bbbc58a10c45823ba010e98ea4474 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8192ba0d00bbbc58a10c45823ba010e98ea4474" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cyrilladrian/grpc-rust [INFO] finished tweaking git repo https://github.com/cyrilladrian/grpc-rust [INFO] tweaked toml for git repo https://github.com/cyrilladrian/grpc-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cyrilladrian/grpc-rust 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" "+f8192ba0d00bbbc58a10c45823ba010e98ea4474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded prost-derive v0.10.1 [INFO] [stderr] Downloaded serde v1.0.199 [INFO] [stderr] Downloaded tonic-build v0.7.2 [INFO] [stderr] Downloaded prost-types v0.10.1 [INFO] [stderr] Downloaded prost v0.10.4 [INFO] [stderr] Downloaded tonic v0.7.2 [INFO] [stderr] Downloaded axum-core v0.2.9 [INFO] [stderr] Downloaded axum v0.5.17 [INFO] [stderr] Downloaded serde_derive v1.0.199 [INFO] [stderr] Downloaded prost-build v0.10.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f8192ba0d00bbbc58a10c45823ba010e98ea4474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3389c77cee30d99370ec9f35b775b0b0f411d489387dc152b7a83ed66ee456f2 [INFO] running `Command { std: "docker" "start" "-a" "3389c77cee30d99370ec9f35b775b0b0f411d489387dc152b7a83ed66ee456f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3389c77cee30d99370ec9f35b775b0b0f411d489387dc152b7a83ed66ee456f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3389c77cee30d99370ec9f35b775b0b0f411d489387dc152b7a83ed66ee456f2", kill_on_drop: false }` [INFO] [stdout] 3389c77cee30d99370ec9f35b775b0b0f411d489387dc152b7a83ed66ee456f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f8192ba0d00bbbc58a10c45823ba010e98ea4474" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff9212af1313ac119c583e71de2a6e81b26973bd633d4dd0826bd7eef6974f9e [INFO] running `Command { std: "docker" "start" "-a" "ff9212af1313ac119c583e71de2a6e81b26973bd633d4dd0826bd7eef6974f9e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling home v0.5.9 [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 hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [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 base64 v0.13.1 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling prost-build v0.10.4 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling prost-derive v0.10.1 [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] Checking axum-core v0.2.9 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling prost v0.10.4 [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-rust 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: cannot find macro `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | println1!("Server says: {:?}", response); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `println` [INFO] [stdout] --> /rustc/f8192ba0d00bbbc58a10c45823ba010e98ea4474/library/std/src/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `println` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | println1!("Transaction: {:?}", transaction); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `println` [INFO] [stdout] --> /rustc/f8192ba0d00bbbc58a10c45823ba010e98ea4474/library/std/src/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `println` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | println1!("Server says: {:?}", response); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `println` [INFO] [stdout] --> /rustc/f8192ba0d00bbbc58a10c45823ba010e98ea4474/library/std/src/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `println` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | println1!("Transaction: {:?}", transaction); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `println` [INFO] [stdout] --> /rustc/f8192ba0d00bbbc58a10c45823ba010e98ea4474/library/std/src/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `println` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Channel` [INFO] [stdout] --> src/grpc_client.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | let channel = Channel::from_static("http://[::1]:50051") [INFO] [stdout] | ^^^^^^^ use of undeclared type `Channel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use tonic::transport::Channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Channel` [INFO] [stdout] --> src/grpc_client.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | let channel = Channel::from_static("http://[::1]:50051") [INFO] [stdout] | ^^^^^^^ use of undeclared type `Channel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use tonic::transport::Channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/grpc_server.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | println1("Response: {:?}", response.into_inner()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `println1` in this scope [INFO] [stdout] --> src/grpc_client.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | println1("Response: {:?}", response.into_inner()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/grpc_server.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / tokio::spawn(async move{ [INFO] [stdout] 86 | | while let Some(message) = stream.message().await.unwrap_or_else(|_| None){ [INFO] [stdout] 87 | | println!("Received message: {:?}", message); [INFO] [stdout] 88 | | let reply = ChatMessage{ [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | }) [INFO] [stdout] | |__________^ expected `Result, ...>`, found `JoinHandle<()>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result>>, Status>` [INFO] [stdout] found struct `tokio::task::JoinHandle<()>` [INFO] [stdout] note: return type inferred to be `Result>>, Status>` here [INFO] [stdout] --> src/grpc_server.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[tonic::async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `tonic::async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grpc-rust` (bin "grpc-client") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `grpc-rust` (bin "grpc-client" test) due to 5 previous errors [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/grpc_server.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/grpc_server.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / tokio::spawn(async move{ [INFO] [stdout] 86 | | while let Some(message) = stream.message().await.unwrap_or_else(|_| None){ [INFO] [stdout] 87 | | println!("Received message: {:?}", message); [INFO] [stdout] 88 | | let reply = ChatMessage{ [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | }) [INFO] [stdout] | |__________^ expected `Result, ...>`, found `JoinHandle<()>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result>>, Status>` [INFO] [stdout] found struct `tokio::task::JoinHandle<()>` [INFO] [stdout] note: return type inferred to be `Result>>, Status>` here [INFO] [stdout] --> src/grpc_server.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | #[tonic::async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `tonic::async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grpc-rust` (bin "grpc-server") due to 3 previous errors; 1 warning emitted [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/grpc_server.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | request: Request, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grpc-rust` (bin "grpc-server" test) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ff9212af1313ac119c583e71de2a6e81b26973bd633d4dd0826bd7eef6974f9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff9212af1313ac119c583e71de2a6e81b26973bd633d4dd0826bd7eef6974f9e", kill_on_drop: false }` [INFO] [stdout] ff9212af1313ac119c583e71de2a6e81b26973bd633d4dd0826bd7eef6974f9e