[INFO] cloning repository https://github.com/luyikk/kcp_server_echo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luyikk/kcp_server_echo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluyikk%2Fkcp_server_echo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluyikk%2Fkcp_server_echo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6351a8edf0eaf34ecddaa513c7b6b5f5ba591aa1 [INFO] checking luyikk/kcp_server_echo against master#4a2fe4491ea616983a0cf0cbbd145a39768f4e7a for pr-120712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluyikk%2Fkcp_server_echo" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luyikk/kcp_server_echo on toolchain 4a2fe4491ea616983a0cf0cbbd145a39768f4e7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a2fe4491ea616983a0cf0cbbd145a39768f4e7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/luyikk/kcp_server_echo [INFO] finished tweaking git repo https://github.com/luyikk/kcp_server_echo [INFO] tweaked toml for git repo https://github.com/luyikk/kcp_server_echo written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/luyikk/kcp_server_echo 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" "+4a2fe4491ea616983a0cf0cbbd145a39768f4e7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-sink v0.3.5 [INFO] [stderr] Downloaded miow v0.2.1 [INFO] [stderr] Downloaded futures-task v0.3.5 [INFO] [stderr] Downloaded rand v0.3.23 [INFO] [stderr] Downloaded proc-macro2 v1.0.19 [INFO] [stderr] Downloaded rdrand v0.4.0 [INFO] [stderr] Downloaded slab v0.4.2 [INFO] [stderr] Downloaded iovec v0.1.4 [INFO] [stderr] Downloaded quick-error v1.2.3 [INFO] [stderr] Downloaded atty v0.2.14 [INFO] [stderr] Downloaded hermit-abi v0.1.15 [INFO] [stderr] Downloaded thread_local v1.0.1 [INFO] [stderr] Downloaded log v0.4.11 [INFO] [stderr] Downloaded humantime v1.3.0 [INFO] [stderr] Downloaded fuchsia-cprng v0.1.1 [INFO] [stderr] Downloaded pin-utils v0.1.0 [INFO] [stderr] Downloaded memchr v2.3.3 [INFO] [stderr] Downloaded num_cpus v1.13.0 [INFO] [stderr] Downloaded once_cell v1.4.1 [INFO] [stderr] Downloaded regex v1.3.9 [INFO] [stderr] Downloaded winapi v0.2.8 [INFO] [stderr] Downloaded regex-syntax v0.6.18 [INFO] [stderr] Downloaded winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded udp_server v0.3.2 [INFO] [stderr] Downloaded winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded winapi v0.3.9 [INFO] [stderr] Downloaded tokio v0.2.22 [INFO] [stderr] Downloaded libc v0.2.76 [INFO] [stderr] Downloaded aho-corasick v0.7.13 [INFO] [stderr] Downloaded ws2_32-sys v0.2.1 [INFO] [stderr] Downloaded chrono v0.4.15 [INFO] [stderr] Downloaded proc-macro-hack v0.5.18 [INFO] [stderr] Downloaded pin-project v0.4.23 [INFO] [stderr] Downloaded tokio-macros v0.2.5 [INFO] [stderr] Downloaded num-traits v0.2.12 [INFO] [stderr] Downloaded futures-util v0.3.5 [INFO] [stderr] Downloaded net2 v0.2.34 [INFO] [stderr] Downloaded mio v0.6.22 [INFO] [stderr] Downloaded socket2 v0.3.12 [INFO] [stderr] Downloaded pin-project-internal v0.4.23 [INFO] [stderr] Downloaded cfg-if v0.1.10 [INFO] [stderr] Downloaded futures-core v0.3.5 [INFO] [stderr] Downloaded syn v1.0.39 [INFO] [stderr] Downloaded bitflags v1.2.1 [INFO] [stderr] Downloaded proc-macro-nested v0.1.6 [INFO] [stderr] Downloaded pin-project-lite v0.1.7 [INFO] [stderr] Downloaded mio-named-pipes v0.1.7 [INFO] [stderr] Downloaded futures v0.3.5 [INFO] [stderr] Downloaded redox_syscall v0.1.57 [INFO] [stderr] Downloaded fuchsia-zircon-sys v0.3.3 [INFO] [stderr] Downloaded winapi-build v0.1.1 [INFO] [stderr] Downloaded bytes v0.5.6 [INFO] [stderr] Downloaded signal-hook-registry v1.2.1 [INFO] [stderr] Downloaded rand v0.4.6 [INFO] [stderr] Downloaded quote v1.0.7 [INFO] [stderr] Downloaded mio-uds v0.6.8 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded futures-channel v0.3.5 [INFO] [stderr] Downloaded unicode-xid v0.2.1 [INFO] [stderr] Downloaded winapi-util v0.1.5 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.3 [INFO] [stderr] Downloaded miow v0.3.5 [INFO] [stderr] Downloaded futures-io v0.3.5 [INFO] [stderr] Downloaded arc-swap v0.4.7 [INFO] [stderr] Downloaded kernel32-sys v0.2.2 [INFO] [stderr] Downloaded rand_core v0.4.2 [INFO] [stderr] Downloaded num-integer v0.1.43 [INFO] [stderr] Downloaded fnv v1.0.7 [INFO] [stderr] Downloaded env_logger v0.7.1 [INFO] [stderr] Downloaded lazy_static v1.4.0 [INFO] [stderr] Downloaded rand_core v0.3.1 [INFO] [stderr] Downloaded wasi v0.10.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded time v0.1.44 [INFO] [stderr] Downloaded termcolor v1.1.0 [INFO] [stderr] Downloaded futures-macro v0.3.5 [INFO] [stderr] Downloaded futures-executor v0.3.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+4a2fe4491ea616983a0cf0cbbd145a39768f4e7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa4f460c1e6c992d73c3aebc41105c842cb75ae47c74b21bcf68211719efe96b [INFO] running `Command { std: "docker" "start" "-a" "fa4f460c1e6c992d73c3aebc41105c842cb75ae47c74b21bcf68211719efe96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa4f460c1e6c992d73c3aebc41105c842cb75ae47c74b21bcf68211719efe96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa4f460c1e6c992d73c3aebc41105c842cb75ae47c74b21bcf68211719efe96b", kill_on_drop: false }` [INFO] [stdout] fa4f460c1e6c992d73c3aebc41105c842cb75ae47c74b21bcf68211719efe96b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+4a2fe4491ea616983a0cf0cbbd145a39768f4e7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71f9d5ac9ed31650037802756a235aabdce16f21fc9f905aebaa9d0d991ea1d8 [INFO] running `Command { std: "docker" "start" "-a" "71f9d5ac9ed31650037802756a235aabdce16f21fc9f905aebaa9d0d991ea1d8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking signal-hook-registry v1.2.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking udp_server v0.3.2 [INFO] [stderr] Checking kcp_server_echo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Kcp`, `get_conv` [INFO] [stdout] --> src/kcp/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{get_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_conv` [INFO] [stdout] --> src/kcp/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub use kcp::{get_conv, set_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Kcp`, `get_conv` [INFO] [stdout] --> src/kcp/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{get_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_conv` [INFO] [stdout] --> src/kcp/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub use kcp::{get_conv, set_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | let kcp = kcp_server::KcpListener::::new("0.0.0.0:5555", config).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener::::new` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::new` [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn new( [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | let kcp = kcp_server::KcpListener::::new("0.0.0.0:5555", config).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct KcpListener [INFO] [stdout] | ----------- required by a bound in this struct [INFO] [stdout] 24 | where S: Send + 'static, [INFO] [stdout] 25 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | kcp.set_buff_input(async move |peer, data| { [INFO] [stdout] | ^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener::::set_buff_input` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::set_buff_input` [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn set_buff_input( [INFO] [stdout] | -------------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn(Arc>, bytes::Bytes)` closure, found `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] --> src/main.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | kcp.set_buff_input(async move |peer, data| { [INFO] [stdout] | _________--------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 24 | | let mut token = peer.token.lock().await; [INFO] [stdout] 25 | | [INFO] [stdout] 26 | | if let Some(id) = token.get() { [INFO] [stdout] ... | [INFO] [stdout] 32 | | Ok(()) [INFO] [stdout] 33 | | }).await; [INFO] [stdout] | |_____^ expected an `Fn(Arc>, bytes::Bytes)` closure, found `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Fn<(Arc>, bytes::Bytes)>` is not implemented for `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] note: required by a bound in `KcpListener::::set_buff_input` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn set_buff_input( [INFO] [stdout] | -------------- required by a bound in this associated function [INFO] [stdout] 78 | &self, f: impl Fn(Arc>, Bytes) ->R [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::set_buff_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `start` exists for struct `Arc>>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | kcp.start().await?; [INFO] [stdout] | ^^^^^ method cannot be called on `Arc>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] ` as futures::Future>::Output = Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] `Result<(), _>: futures::Future` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 38 | impl KcpListener [INFO] [stdout] | ---------------- [INFO] [stdout] 39 | where S: Send + 'static, [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kcp_server_echo` (bin "kcp_server_echo" test) due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | let kcp = kcp_server::KcpListener::::new("0.0.0.0:5555", config).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener::::new` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::new` [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn new( [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | let kcp = kcp_server::KcpListener::::new("0.0.0.0:5555", config).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct KcpListener [INFO] [stdout] | ----------- required by a bound in this struct [INFO] [stdout] 24 | where S: Send + 'static, [INFO] [stdout] 25 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result<(), _>` is not a future [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | kcp.set_buff_input(async move |peer, data| { [INFO] [stdout] | ^^^^^^^^^^^^^^ `Result<(), _>` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `Result<(), _>` [INFO] [stdout] = note: Result<(), _> must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] note: required by a bound in `KcpListener::::set_buff_input` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::set_buff_input` [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn set_buff_input( [INFO] [stdout] | -------------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn(Arc>, bytes::Bytes)` closure, found `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] --> src/main.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | kcp.set_buff_input(async move |peer, data| { [INFO] [stdout] | _________--------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 24 | | let mut token = peer.token.lock().await; [INFO] [stdout] 25 | | [INFO] [stdout] 26 | | if let Some(id) = token.get() { [INFO] [stdout] ... | [INFO] [stdout] 32 | | Ok(()) [INFO] [stdout] 33 | | }).await; [INFO] [stdout] | |_____^ expected an `Fn(Arc>, bytes::Bytes)` closure, found `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Fn<(Arc>, bytes::Bytes)>` is not implemented for `{coroutine-closure@src/main.rs:23:24: 23:47}` [INFO] [stdout] note: required by a bound in `KcpListener::::set_buff_input` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn set_buff_input( [INFO] [stdout] | -------------- required by a bound in this associated function [INFO] [stdout] 78 | &self, f: impl Fn(Arc>, Bytes) ->R [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `KcpListener::::set_buff_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `start` exists for struct `Arc>>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | kcp.start().await?; [INFO] [stdout] | ^^^^^ method cannot be called on `Arc>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] ` as futures::Future>::Output = Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] `Result<(), _>: futures::Future` [INFO] [stdout] --> src/kcp_server/kcp_listener.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 38 | impl KcpListener [INFO] [stdout] | ---------------- [INFO] [stdout] 39 | where S: Send + 'static, [INFO] [stdout] 40 | R: Future>> + Send+'static{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kcp_server_echo` (bin "kcp_server_echo") due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "71f9d5ac9ed31650037802756a235aabdce16f21fc9f905aebaa9d0d991ea1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71f9d5ac9ed31650037802756a235aabdce16f21fc9f905aebaa9d0d991ea1d8", kill_on_drop: false }` [INFO] [stdout] 71f9d5ac9ed31650037802756a235aabdce16f21fc9f905aebaa9d0d991ea1d8 [INFO] checking luyikk/kcp_server_echo against try#788c8f48d1a159cf4f84e1ac1b41dd209ac66964 for pr-120712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluyikk%2Fkcp_server_echo" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luyikk/kcp_server_echo on toolchain 788c8f48d1a159cf4f84e1ac1b41dd209ac66964 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+788c8f48d1a159cf4f84e1ac1b41dd209ac66964" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/luyikk/kcp_server_echo [INFO] finished tweaking git repo https://github.com/luyikk/kcp_server_echo [INFO] tweaked toml for git repo https://github.com/luyikk/kcp_server_echo written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/luyikk/kcp_server_echo 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" "+788c8f48d1a159cf4f84e1ac1b41dd209ac66964" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+788c8f48d1a159cf4f84e1ac1b41dd209ac66964" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b673f19ab87fed2f16e3f3eda7e38b4b656a4cb9da8b41a80112b228a2109f4d [INFO] running `Command { std: "docker" "start" "-a" "b673f19ab87fed2f16e3f3eda7e38b4b656a4cb9da8b41a80112b228a2109f4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b673f19ab87fed2f16e3f3eda7e38b4b656a4cb9da8b41a80112b228a2109f4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b673f19ab87fed2f16e3f3eda7e38b4b656a4cb9da8b41a80112b228a2109f4d", kill_on_drop: false }` [INFO] [stdout] b673f19ab87fed2f16e3f3eda7e38b4b656a4cb9da8b41a80112b228a2109f4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+788c8f48d1a159cf4f84e1ac1b41dd209ac66964" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42bbf2820da2ca2a2c35dc31a8f3c130bb52b46f0c02c23bdd053903805fb86c [INFO] running `Command { std: "docker" "start" "-a" "42bbf2820da2ca2a2c35dc31a8f3c130bb52b46f0c02c23bdd053903805fb86c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking signal-hook-registry v1.2.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking udp_server v0.3.2 [INFO] [stderr] Checking kcp_server_echo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Kcp`, `get_conv` [INFO] [stdout] --> src/kcp/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{get_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_conv` [INFO] [stdout] --> src/kcp/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub use kcp::{get_conv, set_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Kcp`, `get_conv` [INFO] [stdout] --> src/kcp/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{get_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_conv` [INFO] [stdout] --> src/kcp/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub use kcp::{get_conv, set_conv, Kcp}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | let mut token = peer.token.lock().await; [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | let mut token = peer.token.lock().await; [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kcp_server_echo` (bin "kcp_server_echo" test) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kcp_server_echo` (bin "kcp_server_echo") due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "42bbf2820da2ca2a2c35dc31a8f3c130bb52b46f0c02c23bdd053903805fb86c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42bbf2820da2ca2a2c35dc31a8f3c130bb52b46f0c02c23bdd053903805fb86c", kill_on_drop: false }` [INFO] [stdout] 42bbf2820da2ca2a2c35dc31a8f3c130bb52b46f0c02c23bdd053903805fb86c