[INFO] cloning repository https://github.com/ityy/rust_async_chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ityy/rust_async_chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_async_chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_async_chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf278c79717ed7ba3b8e8a112ab19f8f1d8052a3 [INFO] testing ityy/rust_async_chat against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_async_chat" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ityy/rust_async_chat on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ityy/rust_async_chat [INFO] finished tweaking git repo https://github.com/ityy/rust_async_chat [INFO] tweaked toml for git repo https://github.com/ityy/rust_async_chat written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/ityy/rust_async_chat already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-std v1.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] 9e8ca72e503475da84eeb8997532bf75cb452150813b3d07db3d2cc0c363e189 [INFO] running `Command { std: "docker" "start" "-a" "9e8ca72e503475da84eeb8997532bf75cb452150813b3d07db3d2cc0c363e189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e8ca72e503475da84eeb8997532bf75cb452150813b3d07db3d2cc0c363e189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e8ca72e503475da84eeb8997532bf75cb452150813b3d07db3d2cc0c363e189", kill_on_drop: false }` [INFO] [stdout] 9e8ca72e503475da84eeb8997532bf75cb452150813b3d07db3d2cc0c363e189 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 753407fe4eb56f43e7f02eee6fca26b9f33dff2ef4fab70ec1c0d4ae0cd3a2fd [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" "753407fe4eb56f43e7f02eee6fca26b9f33dff2ef4fab70ec1c0d4ae0cd3a2fd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Compiling futures-core v0.3.1 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling futures-sink v0.3.1 [INFO] [stderr] Compiling futures-io v0.3.1 [INFO] [stderr] Compiling futures-task v0.3.1 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling once_cell v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.1.1 [INFO] [stderr] Compiling futures-timer v2.0.2 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling async-macros v2.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling async-task v1.0.0 [INFO] [stderr] Compiling kv-log-macro v1.0.4 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.11.1 [INFO] [stderr] Compiling crossbeam-channel v0.4.0 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling crossbeam-deque v0.7.2 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling async-std v1.2.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.1 [INFO] [stderr] Compiling futures v0.3.1 [INFO] [stderr] Compiling rust_async_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `task` [INFO] [stdout] --> src/t01_accept_loop.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | task, // 2 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entry`, `HashMap` [INFO] [stdout] --> src/t04_connecting_readers_and_writers.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::hash_map::{Entry, HashMap}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_async_chat` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / //! 规格与说明 [INFO] [stdout] 2 | | //! 聊天使用基于TCP的简单文本协议。该协议包含utf-8消息,以\n分隔。 [INFO] [stdout] 3 | | //! 客户端连接到服务器,并作为第一行发送登录信息。之后,客户端可以使用以下语法将消息发送给其他客户端: ... [INFO] [stdout] 4 | | //! login1, login2, ... loginN: message [INFO] [stdout] ... | [INFO] [stdout] 20 | | //mod t03_sending_messages; [INFO] [stdout] 21 | | mod t04_connecting_readers_and_writers; [INFO] [stdout] | |_______________________________________^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/t02_receiving_messages.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{AsyncReadExt, Future, FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/t02_receiving_messages.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{AsyncReadExt, Future, FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_async_chat` due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "753407fe4eb56f43e7f02eee6fca26b9f33dff2ef4fab70ec1c0d4ae0cd3a2fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "753407fe4eb56f43e7f02eee6fca26b9f33dff2ef4fab70ec1c0d4ae0cd3a2fd", kill_on_drop: false }` [INFO] [stdout] 753407fe4eb56f43e7f02eee6fca26b9f33dff2ef4fab70ec1c0d4ae0cd3a2fd