[INFO] fetching crate toy-rpc 0.4.5... [INFO] testing toy-rpc-0.4.5 against beta-2021-01-01 for beta-1.50-1 [INFO] extracting crate toy-rpc 0.4.5 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate toy-rpc 0.4.5 on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate toy-rpc 0.4.5 [INFO] finished tweaking crates.io crate toy-rpc 0.4.5 [INFO] tweaked toml for crates.io crate toy-rpc 0.4.5 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toy-rpc-macros v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60a556b0a2faff690ac8ae4b9321a735020f91978b087fe09e504da79613d5ed [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "60a556b0a2faff690ac8ae4b9321a735020f91978b087fe09e504da79613d5ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60a556b0a2faff690ac8ae4b9321a735020f91978b087fe09e504da79613d5ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60a556b0a2faff690ac8ae4b9321a735020f91978b087fe09e504da79613d5ed", kill_on_drop: false }` [INFO] [stdout] 60a556b0a2faff690ac8ae4b9321a735020f91978b087fe09e504da79613d5ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2859fba8a8eb3473560db05072c38fca0009d1cef1227eeaaac0b6c4cc1d438 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d2859fba8a8eb3473560db05072c38fca0009d1cef1227eeaaac0b6c4cc1d438", kill_on_drop: false }` [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling http-types v2.9.0 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling isahc v0.9.14 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling libnghttp2-sys v0.1.5+1.42.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling curl-sys v0.4.39+curl-7.74.0 [INFO] [stderr] Compiling simple-mutex v1.1.5 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling spinning_top v0.2.2 [INFO] [stderr] Compiling nb-connect v1.0.2 [INFO] [stderr] Compiling futures-lite v1.11.3 [INFO] [stderr] Compiling polling v2.0.2 [INFO] [stderr] Compiling async-dup v1.2.2 [INFO] [stderr] Compiling signal-hook v0.1.17 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling flume v0.9.2 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling toy-rpc-macros v0.1.0 [INFO] [stderr] Compiling sluice v0.5.3 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling async-io v1.3.1 [INFO] [stderr] Compiling async-executor v1.4.0 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling byte-pool v0.2.2 [INFO] [stderr] Compiling async-process v1.0.1 [INFO] [stderr] Compiling async-global-executor v1.4.3 [INFO] [stderr] Compiling async-std v1.8.0 [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling serde_qs v0.7.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling erased-serde v0.3.13 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling femme v2.1.1 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling async-h1 v2.3.0 [INFO] [stderr] Compiling http-client v6.2.0 [INFO] [stderr] Compiling tide v0.15.0 [INFO] [stderr] Compiling surf v2.1.0 [INFO] [stderr] Compiling toy-rpc v0.4.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 52.04s [INFO] running `Command { std: "docker" "inspect" "d2859fba8a8eb3473560db05072c38fca0009d1cef1227eeaaac0b6c4cc1d438", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2859fba8a8eb3473560db05072c38fca0009d1cef1227eeaaac0b6c4cc1d438", kill_on_drop: false }` [INFO] [stdout] d2859fba8a8eb3473560db05072c38fca0009d1cef1227eeaaac0b6c4cc1d438 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a8923cc04a186a962081da49688d115642b51cb96660f64b374a8c39c5f64ec [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6a8923cc04a186a962081da49688d115642b51cb96660f64b374a8c39c5f64ec", kill_on_drop: false }` [INFO] [stderr] Compiling toy-rpc v0.4.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.02s [INFO] running `Command { std: "docker" "inspect" "6a8923cc04a186a962081da49688d115642b51cb96660f64b374a8c39c5f64ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a8923cc04a186a962081da49688d115642b51cb96660f64b374a8c39c5f64ec", kill_on_drop: false }` [INFO] [stdout] 6a8923cc04a186a962081da49688d115642b51cb96660f64b374a8c39c5f64ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3de4b35bb8d7dda60be89be171f03828a808674afcb36726d9acf9a45ce97dd3 [INFO] running `Command { std: "docker" "start" "-a" "3de4b35bb8d7dda60be89be171f03828a808674afcb36726d9acf9a45ce97dd3", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/toy_rpc-6f00abbc0b5a4c33 [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test transport::frame::tests::frame_header_length ... ok [INFO] [stdout] test transport::frame::tests::bool_length ... ok [INFO] [stderr] Doc-tests toy-rpc [INFO] [stdout] test error::test::err_to_string ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test src/client.rs - client::Client::async_call (line 652) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::with_codec (line 144) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::with_stream (line 96) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::spawn_task (line 593) ... FAILED [INFO] [stdout] test src/lib.rs - (line 100) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::spawn_task (line 205) ... FAILED [INFO] [stdout] test src/lib.rs - (line 365) ... FAILED [INFO] [stdout] test src/server.rs - server::Server (line 23) ... ok [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 263) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::accept (line 232) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::handle_http (line 515) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::into_endpoint (line 361) ... FAILED [INFO] [stdout] test src/lib.rs - (line 330) ... FAILED [INFO] [stdout] test src/lib.rs - (line 441) ... FAILED [INFO] [stdout] test src/lib.rs - (line 231) ... FAILED [INFO] [stdout] test src/lib.rs - (line 164) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::call (line 546) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::dial_http (line 444) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::serve_codec (line 157) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::serve_conn (line 295) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::call (line 181) ... FAILED [INFO] [stdout] test src/server.rs - server::ServerBuilder::register (line 635) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::dial (line 122) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::async_call (line 244) ... FAILED [INFO] [stdout] test src/server.rs - server::Server::builder (line 36) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::Client::async_call (line 652) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/client.rs:660:27 [INFO] [stdout] | [INFO] [stdout] 10 | let args = "arguments" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | let reply: Result = client.async_call("echo_service.echo", &args).await; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;` [INFO] [stdout] --> src/client.rs:661:5 [INFO] [stdout] | [INFO] [stdout] 11 | let reply: Result = client.async_call("echo_service.echo", &args).await; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_out` [INFO] [stdout] --> src/client.rs:651:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![allow(unused)] [INFO] [stdout] 2 | | extern crate toy_rpc; [INFO] [stdout] 3 | | use toy_rpc::client::Client; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 12 | | println!("{:?}", reply); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ consider adding a `main` function at the crate level [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::with_codec (line 144) stdout ---- [INFO] [stdout] error[E0603]: struct `Codec` is private [INFO] [stdout] --> src/client.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 4 | use toy_rpc::codec::bincode::Codec; [INFO] [stdout] | ^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Codec` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/codec/bincode.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use super::{Codec, CodecRead, CodecWrite, DeserializerOwned, Marshal, Unmarshal}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::with_stream (line 96) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/client.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 7 | let client = Client::with_stream(stream); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use surf::Client; [INFO] [stdout] | [INFO] [stdout] 2 | use toy_rpc::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::spawn_task (line 593) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/client.rs:601:27 [INFO] [stdout] | [INFO] [stdout] 10 | let args = "arguments" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | let reply: Result = client.spawn_task("echo_service.echo", args).await; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;` [INFO] [stdout] --> src/client.rs:602:5 [INFO] [stdout] | [INFO] [stdout] 11 | let reply: Result = client.spawn_task("echo_service.echo", args).await; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_out` [INFO] [stdout] --> src/client.rs:592:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![allow(unused)] [INFO] [stdout] 2 | | extern crate toy_rpc; [INFO] [stdout] 3 | | use toy_rpc::client::Client; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 12 | | println!("{:?}", reply); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ consider adding a `main` function at the crate level [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 100) stdout ---- [INFO] [stdout] error: cannot find attribute `export_impl` in this scope [INFO] [stdout] --> src/lib.rs:103:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export_method` in this scope [INFO] [stdout] --> src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[export_method] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Req` in this scope [INFO] [stdout] --> src/lib.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 10 | Req: serde::Deserialize, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Res` in this scope [INFO] [stdout] --> src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 11 | Res: serde::Serialize, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Msg` in this scope [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 12 | Msg: ToString, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Req` in this scope [INFO] [stdout] --> src/lib.rs:106:39 [INFO] [stdout] | [INFO] [stdout] 8 | async fn method_name(&self, args: Req) -> Result [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Res` in this scope [INFO] [stdout] --> src/lib.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 6 | impl ServiceState { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 7 | #[export_method] [INFO] [stdout] 8 | async fn method_name(&self, args: Req) -> Result [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Msg` in this scope [INFO] [stdout] --> src/lib.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 6 | impl ServiceState { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 7 | #[export_method] [INFO] [stdout] 8 | async fn method_name(&self, args: Req) -> Result [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/lib.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 10 | Req: serde::Deserialize, [INFO] [stdout] | ^^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 8 | async fn method_name('a, &self, args: Req) -> Result [INFO] [stdout] 9 | where [INFO] [stdout] 10 | Req: serde::Deserialize<'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::spawn_task (line 205) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Res` in this scope [INFO] [stdout] --> src/client.rs:217:41 [INFO] [stdout] | [INFO] [stdout] 14 | let handle: task::JoinHandle> = client.spawn_task("echo_service.echo", args); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 365) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `actix_web` [INFO] [stdout] --> src/lib.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{App, HttpServer, web}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `actix_web` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_web` [INFO] [stdout] --> src/lib.rs:406:3 [INFO] [stdout] | [INFO] [stdout] 43 | #[actix_web::main] [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `actix_web` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `app_data` in this scope [INFO] [stdout] --> src/lib.rs:424:35 [INFO] [stdout] | [INFO] [stdout] 61 | .app_data(app_data.clone()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `scope_config` found for struct `Server` in the current scope [INFO] [stdout] --> src/lib.rs:425:44 [INFO] [stdout] | [INFO] [stdout] 62 | .configure(Server::scope_config) [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Server` [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> src/lib.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 44 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:407:1 [INFO] [stdout] | [INFO] [stdout] 44 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 72) stdout ---- [INFO] [stdout] error: cannot find attribute `export_impl` in this scope [INFO] [stdout] --> src/lib.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export_method` in this scope [INFO] [stdout] --> src/lib.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[export_method] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 263) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `is` [INFO] [stdout] --> src/lib.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 57 | "handle_http" is a conenience function that calls "into_endpoint" [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:303:1 [INFO] [stdout] | [INFO] [stdout] 42 | #[async_std::main] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected enum `std::result::Result`, found `()` [INFO] [stdout] | help: try using a variant of the expected enum: `_::_serde::export::Ok(#[async_std::main])` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), tide::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::accept (line 232) stdout ---- [INFO] [stdout] error: cannot find macro `service` in this scope [INFO] [stdout] --> src/server.rs:239:30 [INFO] [stdout] | [INFO] [stdout] 8 | .register("example", service!(example_service, ExampleService)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] toy_rpc::macros::service [INFO] [stdout] toy_rpc_macros::service [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `task` [INFO] [stdout] --> src/server.rs:244:18 [INFO] [stdout] | [INFO] [stdout] 13 | let handle = task::spawn(async move { [INFO] [stdout] | ^^^^ use of undeclared crate or module `task` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExampleService` in this scope [INFO] [stdout] --> src/server.rs:237:27 [INFO] [stdout] | [INFO] [stdout] 6 | let example_service = ExampleService {}; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Server` [INFO] [stdout] --> src/server.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 7 | let server = Server::builder() [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tide::Server; [INFO] [stdout] | [INFO] [stdout] 2 | use toy_rpc::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `addr` in this scope [INFO] [stdout] --> src/server.rs:242:38 [INFO] [stdout] | [INFO] [stdout] 11 | let listener = TcpListener::bind(addr).await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> src/server.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/server.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::handle_http (line 515) stdout ---- [INFO] [stdout] error[E0446]: private type `FooService` in public interface [INFO] [stdout] --> src/server.rs:522:1 [INFO] [stdout] | [INFO] [stdout] 7 | struct FooService { } [INFO] [stdout] | ----------------- `FooService` declared as private [INFO] [stdout] 8 | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ can't leak private type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: private type `FooService` in public interface (error E0446) [INFO] [stdout] --> src/server.rs:522:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: private type `FooService` in public interface (error E0446) [INFO] [stdout] --> src/server.rs:522:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::into_endpoint (line 361) stdout ---- [INFO] [stdout] error[E0446]: private type `FooService` in public interface [INFO] [stdout] --> src/server.rs:368:1 [INFO] [stdout] | [INFO] [stdout] 7 | struct FooService { } [INFO] [stdout] | ----------------- `FooService` declared as private [INFO] [stdout] 8 | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ can't leak private type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: private type `FooService` in public interface (error E0446) [INFO] [stdout] --> src/server.rs:368:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: private type `FooService` in public interface (error E0446) [INFO] [stdout] --> src/server.rs:368:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[export_impl] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 330) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 441) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 231) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 164) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::call (line 546) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::dial_http (line 444) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::serve_codec (line 157) stdout ---- [INFO] [stdout] error: expected `;`, found `handle` [INFO] [stdout] --> src/server.rs:174:7 [INFO] [stdout] | [INFO] [stdout] 19 | }) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 20 | handle.await; [INFO] [stdout] | ------ unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;` [INFO] [stdout] --> src/server.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 20 | handle.await; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_out` [INFO] [stdout] --> src/server.rs:156:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![allow(unused)] [INFO] [stdout] 2 | | extern crate toy_rpc; [INFO] [stdout] 3 | | use async_std::net::TcpStream; [INFO] [stdout] 4 | | // the default `Codec` will be used as an example [INFO] [stdout] ... | [INFO] [stdout] 20 | | handle.await; [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ consider adding a `main` function at the crate level [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::serve_conn (line 295) stdout ---- [INFO] [stdout] error: cannot find macro `service` in this scope [INFO] [stdout] --> src/server.rs:302:30 [INFO] [stdout] | [INFO] [stdout] 8 | .register("example", service!(example_service, ExampleService)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] toy_rpc::macros::service [INFO] [stdout] toy_rpc_macros::service [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `task` [INFO] [stdout] --> src/server.rs:307:18 [INFO] [stdout] | [INFO] [stdout] 13 | let handle = task::spawn(async move { [INFO] [stdout] | ^^^^ use of undeclared crate or module `task` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExampleService` in this scope [INFO] [stdout] --> src/server.rs:300:27 [INFO] [stdout] | [INFO] [stdout] 6 | let example_service = ExampleService {}; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Server` [INFO] [stdout] --> src/server.rs:301:18 [INFO] [stdout] | [INFO] [stdout] 7 | let server = Server::builder() [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tide::Server; [INFO] [stdout] | [INFO] [stdout] 2 | use toy_rpc::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `addr` in this scope [INFO] [stdout] --> src/server.rs:305:35 [INFO] [stdout] | [INFO] [stdout] 11 | let conn = TcpStream::connect(addr).await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::call (line 181) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::ServerBuilder::register (line 635) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `task` [INFO] [stdout] --> src/server.rs:662:18 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = task::spawn(async move { [INFO] [stdout] | ^^^^ use of undeclared crate or module `task` [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::dial (line 122) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::async_call (line 244) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server::Server::builder (line 36) stdout ---- [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Client::async_call (line 652) [INFO] [stdout] src/client.rs - client::Client::call (line 546) [INFO] [stdout] src/client.rs - client::Client::spawn_task (line 593) [INFO] [stdout] src/client.rs - client::Client::dial_http (line 444) [INFO] [stdout] src/client.rs - client::Client::async_call (line 244) [INFO] [stdout] src/client.rs - client::Client::call (line 181) [INFO] [stdout] src/client.rs - client::Client::spawn_task (line 205) [INFO] [stdout] src/client.rs - client::Client::dial (line 122) [INFO] [stdout] src/client.rs - client::Client::with_codec (line 144) [INFO] [stdout] src/client.rs - client::Client::with_stream (line 96) [INFO] [stdout] src/lib.rs - (line 100) [INFO] [stdout] src/lib.rs - (line 164) [INFO] [stdout] src/lib.rs - (line 231) [INFO] [stdout] src/lib.rs - (line 263) [INFO] [stdout] src/lib.rs - (line 330) [INFO] [stdout] src/lib.rs - (line 365) [INFO] [stdout] src/lib.rs - (line 441) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] src/server.rs - server::Server::accept (line 232) [INFO] [stdout] src/server.rs - server::Server::builder (line 36) [INFO] [stdout] src/server.rs - server::Server::handle_http (line 515) [INFO] [stdout] src/server.rs - server::Server::into_endpoint (line 361) [INFO] [stdout] src/server.rs - server::Server::serve_codec (line 157) [INFO] [stdout] src/server.rs - server::Server::serve_conn (line 295) [INFO] [stdout] src/server.rs - server::ServerBuilder::register (line 635) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.52s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "3de4b35bb8d7dda60be89be171f03828a808674afcb36726d9acf9a45ce97dd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3de4b35bb8d7dda60be89be171f03828a808674afcb36726d9acf9a45ce97dd3", kill_on_drop: false }` [INFO] [stdout] 3de4b35bb8d7dda60be89be171f03828a808674afcb36726d9acf9a45ce97dd3