[INFO] cloning repository https://github.com/retep998/mlpccg-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/retep998/mlpccg-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fmlpccg-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fmlpccg-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 41cdddc60d7104ea8f85f961140891e8d4924193 [INFO] checking retep998/mlpccg-rs against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fmlpccg-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/retep998/mlpccg-rs [INFO] finished tweaking git repo https://github.com/retep998/mlpccg-rs [INFO] tweaked toml for git repo https://github.com/retep998/mlpccg-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/retep998/mlpccg-rs on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/retep998/mlpccg-rs 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" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80156fe9d2b889e147e5ebf6d63bf0016afdcfb9d1a8375330798e6dd007816c [INFO] running `Command { std: "docker" "start" "-a" "80156fe9d2b889e147e5ebf6d63bf0016afdcfb9d1a8375330798e6dd007816c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80156fe9d2b889e147e5ebf6d63bf0016afdcfb9d1a8375330798e6dd007816c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80156fe9d2b889e147e5ebf6d63bf0016afdcfb9d1a8375330798e6dd007816c", kill_on_drop: false }` [INFO] [stdout] 80156fe9d2b889e147e5ebf6d63bf0016afdcfb9d1a8375330798e6dd007816c [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe68e7769f8efb27fafd5921a51fe44180f82c790178b5a9321718c243042e97 [INFO] running `Command { std: "docker" "start" "-a" "fe68e7769f8efb27fafd5921a51fe44180f82c790178b5a9321718c243042e97", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking mlpccg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stdout] --> src/bin/client.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | -^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mlpccg` (bin "client") due to 8 previous errors; 1 warning emitted [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stdout] --> src/bin/client.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | -^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Player` [INFO] [stdout] --> src/main.rs:126:60 [INFO] [stdout] | [INFO] [stdout] 126 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::sender(send_rx, tcp_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Player` [INFO] [stdout] --> src/main.rs:127:60 [INFO] [stdout] | [INFO] [stdout] 127 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::receiver(recv_tx, tcp_rx, id)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Server` [INFO] [stdout] --> src/main.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Server` [INFO] [stdout] --> src/main.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:206:36 [INFO] [stdout] | [INFO] [stdout] 206 | fn player(&self, id: Id, func: |&Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:213:40 [INFO] [stdout] | [INFO] [stdout] 213 | fn mut_player(&self, id: Id, func: |&mut Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:220:29 [INFO] [stdout] | [INFO] [stdout] 220 | fn players(&self, func: |&Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Player` [INFO] [stdout] --> src/main.rs:126:60 [INFO] [stdout] | [INFO] [stdout] 126 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::sender(send_rx, tcp_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Player` [INFO] [stdout] --> src/main.rs:127:60 [INFO] [stdout] | [INFO] [stdout] 127 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::receiver(recv_tx, tcp_rx, id)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Server` [INFO] [stdout] --> src/main.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `Server` [INFO] [stdout] --> src/main.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | -^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:206:36 [INFO] [stdout] | [INFO] [stdout] 206 | fn player(&self, id: Id, func: |&Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:213:40 [INFO] [stdout] | [INFO] [stdout] 213 | fn mut_player(&self, id: Id, func: |&mut Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/main.rs:220:29 [INFO] [stdout] | [INFO] [stdout] 220 | fn players(&self, func: |&Player|) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::timer` [INFO] [stdout] --> src/bin/client.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::timer::sleep; [INFO] [stdout] | ^^^^^ could not find `timer` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::TcpStream` [INFO] [stdout] --> src/bin/client.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{TcpStream}; [INFO] [stdout] | ^^^^^^^^^ no `TcpStream` in `io` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpStream [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::atomics` [INFO] [stdout] --> src/bin/client.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::atomics::{AtomicUint, SeqCst}; [INFO] [stdout] | ^^^^^^^ could not find `atomics` in `sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::task::TaskBuilder` [INFO] [stdout] --> src/bin/client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::task::TaskBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `TaskBuilder` in `task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/bin/client.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/bin/client.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/bin/client.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut tcp = match TcpStream::connect("127.0.0.1", 273) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | if tcp.read_u8().is_err() { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `tcp` an explicit type [INFO] [stdout] | [INFO] [stdout] 15 | let mut tcp: /* Type */ = match TcpStream::connect("127.0.0.1", 273) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/bin/client.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | ^^^^^ unreachable call [INFO] [stdout] ... [INFO] [stdout] 20 | / loop { [INFO] [stdout] 21 | | if tcp.read_u8().is_err() { [INFO] [stdout] 22 | | println!("-{}", clone.fetch_add(-1, SeqCst)); [INFO] [stdout] 23 | | return; [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::timer` [INFO] [stdout] --> src/bin/client.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::timer::sleep; [INFO] [stdout] | ^^^^^ could not find `timer` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::TcpStream` [INFO] [stdout] --> src/bin/client.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{TcpStream}; [INFO] [stdout] | ^^^^^^^^^ no `TcpStream` in `io` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpStream [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::atomics` [INFO] [stdout] --> src/bin/client.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::atomics::{AtomicUint, SeqCst}; [INFO] [stdout] | ^^^^^^^ could not find `atomics` in `sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::task::TaskBuilder` [INFO] [stdout] --> src/bin/client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::task::TaskBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `TaskBuilder` in `task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::time::duration` [INFO] [stdout] --> src/bin/client.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::duration::Duration; [INFO] [stdout] | ^^^^^^^^ could not find `duration` in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::comm` [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::comm::{Receiver, Sender}; [INFO] [stdout] | ^^^^ could not find `comm` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/bin/client.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::comm` [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::comm::{Receiver, Sender}; [INFO] [stdout] | ^^^^ could not find `comm` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/bin/client.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut tcp = match TcpStream::connect("127.0.0.1", 273) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | if tcp.read_u8().is_err() { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `tcp` an explicit type [INFO] [stdout] | [INFO] [stdout] 15 | let mut tcp: /* Type */ = match TcpStream::connect("127.0.0.1", 273) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/bin/client.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | TaskBuilder::new().stack_size(32768).spawn(proc() { [INFO] [stdout] | ^^^^^ unreachable call [INFO] [stdout] ... [INFO] [stdout] 20 | / loop { [INFO] [stdout] 21 | | if tcp.read_u8().is_err() { [INFO] [stdout] 22 | | println!("-{}", clone.fetch_add(-1, SeqCst)); [INFO] [stdout] 23 | | return; [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::Acceptor`, `std::io::Listener`, `std::io::TcpListener`, `std::io::TcpStream` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Acceptor, Listener, TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ no `TcpStream` in `io` [INFO] [stdout] | | | | [INFO] [stdout] | | | no `TcpListener` in `io` [INFO] [stdout] | | no `Listener` in `io` [INFO] [stdout] | no `Acceptor` in `io` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpListener [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpStream [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::Acceptor`, `std::io::Listener`, `std::io::TcpListener`, `std::io::TcpStream` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Acceptor, Listener, TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ no `TcpStream` in `io` [INFO] [stdout] | | | | [INFO] [stdout] | | | no `TcpListener` in `io` [INFO] [stdout] | | no `Listener` in `io` [INFO] [stdout] | no `Acceptor` in `io` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpListener [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] std::net::TcpStream [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::BufferedReader`, `std::io::MemReader`, `std::io::MemWriter` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ no `MemWriter` in `io` [INFO] [stdout] | | | [INFO] [stdout] | | no `MemReader` in `io` [INFO] [stdout] | no `BufferedReader` in `io` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 - use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] 7 + use std::io::{BufferedReader, BufWriter, BufReader, MemWriter}; [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 - use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] 7 + use std::io::{BufferedReader, BufWriter, MemReader, BufWriter}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::BufferedReader`, `std::io::MemReader`, `std::io::MemWriter` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ no `MemWriter` in `io` [INFO] [stdout] | | | [INFO] [stdout] | | no `MemReader` in `io` [INFO] [stdout] | no `BufferedReader` in `io` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 - use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] 7 + use std::io::{BufferedReader, BufWriter, BufReader, MemWriter}; [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 - use std::io::{BufferedReader, BufWriter, MemReader, MemWriter}; [INFO] [stdout] 7 + use std::io::{BufferedReader, BufWriter, MemReader, BufWriter}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mlpccg` (bin "client" test) due to 8 previous errors; 1 warning emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | use std::rand::random; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::task::TaskBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::TaskBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `TaskBuilder` in `task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | use std::rand::random; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::task::TaskBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::TaskBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `TaskBuilder` in `task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SomePacket` in this scope [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | SomePacket(mut msg) => { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::SomePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SomePacket` in this scope [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | SomePacket(mut msg) => { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::SomePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:76:82 [INFO] [stdout] | [INFO] [stdout] 76 | self.buf.read_be_u32().and_then(|len| self.buf.read_exact(len as uint)).ok() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HandlePacket` in this scope [INFO] [stdout] --> src/main.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | match tx.send_opt(HandlePacket(id, packet)) { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::HandlePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | let _ = tx.send_opt(RemovePlayer(id)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SomePacket` in this scope [INFO] [stdout] --> src/main.rs:101:39 [INFO] [stdout] | [INFO] [stdout] 101 | match self.player_tx.send_opt(SomePacket(packet)) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::SomePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:76:82 [INFO] [stdout] | [INFO] [stdout] 76 | self.buf.read_be_u32().and_then(|len| self.buf.read_exact(len as uint)).ok() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:104:37 [INFO] [stdout] | [INFO] [stdout] 104 | self.server_tx.send(RemovePlayer(self.id)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:121:34 [INFO] [stdout] | [INFO] [stdout] 121 | let (send_tx, send_rx) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpmc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::oneshot::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:194:24 [INFO] [stdout] | [INFO] [stdout] 194 | let (tx, rx) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpmc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::oneshot::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Disconnect` in this scope [INFO] [stdout] --> src/main.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | let _ = player.player_tx.send_opt(Disconnect); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::Disconnect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `AddPlayer` in this scope [INFO] [stdout] --> src/main.rs:272:17 [INFO] [stdout] | [INFO] [stdout] 272 | AddPlayer(tcp) => self.add_player(tcp), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::AddPlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | RemovePlayer(id) => self.remove_player(id), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `HandlePacket` in this scope [INFO] [stdout] --> src/main.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | HandlePacket(id, packet) => self.handle_packet(id, packet), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::HandlePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AddPlayer` in this scope [INFO] [stdout] --> src/main.rs:289:36 [INFO] [stdout] | [INFO] [stdout] 289 | Ok(tcp) => tx.send(AddPlayer(tcp)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::AddPlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ListPlayers` in this scope [INFO] [stdout] --> src/main.rs:302:35 [INFO] [stdout] | [INFO] [stdout] 302 | "list" => tx.send(ListPlayers), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::ListPlayers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HandlePacket` in this scope [INFO] [stdout] --> src/main.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | match tx.send_opt(HandlePacket(id, packet)) { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::HandlePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | let _ = tx.send_opt(RemovePlayer(id)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SomePacket` in this scope [INFO] [stdout] --> src/main.rs:101:39 [INFO] [stdout] | [INFO] [stdout] 101 | match self.player_tx.send_opt(SomePacket(packet)) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::SomePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:104:37 [INFO] [stdout] | [INFO] [stdout] 104 | self.server_tx.send(RemovePlayer(self.id)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:121:34 [INFO] [stdout] | [INFO] [stdout] 121 | let (send_tx, send_rx) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpmc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::oneshot::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:194:24 [INFO] [stdout] | [INFO] [stdout] 194 | let (tx, rx) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpmc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::oneshot::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Disconnect` in this scope [INFO] [stdout] --> src/main.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 245 | let _ = player.player_tx.send_opt(Disconnect); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToPlayer::Disconnect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `AddPlayer` in this scope [INFO] [stdout] --> src/main.rs:272:17 [INFO] [stdout] | [INFO] [stdout] 272 | AddPlayer(tcp) => self.add_player(tcp), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::AddPlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `RemovePlayer` in this scope [INFO] [stdout] --> src/main.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | RemovePlayer(id) => self.remove_player(id), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::RemovePlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `HandlePacket` in this scope [INFO] [stdout] --> src/main.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | HandlePacket(id, packet) => self.handle_packet(id, packet), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::HandlePacket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AddPlayer` in this scope [INFO] [stdout] --> src/main.rs:289:36 [INFO] [stdout] | [INFO] [stdout] 289 | Ok(tcp) => tx.send(AddPlayer(tcp)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::AddPlayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ListPlayers` in this scope [INFO] [stdout] --> src/main.rs:302:35 [INFO] [stdout] | [INFO] [stdout] 302 | "list" => tx.send(ListPlayers), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 3 + use ToServer::ListPlayers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/main.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | impl Iterator for Packets { [INFO] [stdout] | ^^^^^^^^ expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/main.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | impl Iterator for Packets { [INFO] [stdout] | ^^^^^^^^ expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Item` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | impl Iterator for Packets { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Item` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Item = /* Type */;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Item` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | impl Iterator for Packets { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Item` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Item = /* Type */;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:126:53 [INFO] [stdout] | [INFO] [stdout] 126 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::sender(send_rx, tcp_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:126:53 [INFO] [stdout] | [INFO] [stdout] 126 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::sender(send_rx, tcp_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:127:53 [INFO] [stdout] | [INFO] [stdout] 127 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::receiver(recv_tx, tcp_rx, id)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:127:53 [INFO] [stdout] | [INFO] [stdout] 127 | TaskBuilder::new().stack_size(0x8000).spawn(proc() Player::receiver(recv_tx, tcp_rx, id)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | p.write_str(player.name.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | p.write_str(player.name.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:162:33 [INFO] [stdout] | [INFO] [stdout] 162 | p.write_str(player.name.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:162:33 [INFO] [stdout] | [INFO] [stdout] 162 | p.write_str(player.name.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:195:25 [INFO] [stdout] | [INFO] [stdout] 195 | let listen_tx = tx.clone(); [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:195:25 [INFO] [stdout] | [INFO] [stdout] 195 | let listen_tx = tx.clone(); [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:196:15 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:198:15 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:196:15 [INFO] [stdout] | [INFO] [stdout] 196 | spawn(proc() Server::listener(listen_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:198:15 [INFO] [stdout] | [INFO] [stdout] 198 | spawn(proc() Server::commands(command_tx)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:207:28 [INFO] [stdout] | [INFO] [stdout] 207 | match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 208 | Some(player) => func(&*player.borrow()), [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:208:29 [INFO] [stdout] | [INFO] [stdout] 208 | Some(player) => func(&*player.borrow()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:207:28 [INFO] [stdout] | [INFO] [stdout] 207 | match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 208 | Some(player) => func(&*player.borrow()), [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:208:29 [INFO] [stdout] | [INFO] [stdout] 208 | Some(player) => func(&*player.borrow()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:215:39 [INFO] [stdout] | [INFO] [stdout] 215 | Some(player) => func(&mut*player.borrow_mut()), [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | Some(player) => func(&mut*player.borrow_mut()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | for (_, player) in self.players.iter() { func(&*player.borrow()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:215:39 [INFO] [stdout] | [INFO] [stdout] 215 | Some(player) => func(&mut*player.borrow_mut()), [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | Some(player) => func(&mut*player.borrow_mut()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `func` in this scope [INFO] [stdout] --> src/main.rs:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | for (_, player) in self.players.iter() { func(&*player.borrow()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:227:29 [INFO] [stdout] | [INFO] [stdout] 227 | if self.players.find(&id).is_none() { return id } [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | self.players(|p| p.send_player_joined(&player)); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 234 | self.players(|p: /* Type */| p.send_player_joined(&player)); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:236:26 [INFO] [stdout] | [INFO] [stdout] 236 | self.player(id, |player| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 237 | player.send_id(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 236 | self.player(id, |player: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:227:29 [INFO] [stdout] | [INFO] [stdout] 227 | if self.players.find(&id).is_none() { return id } [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | self.players(|p| p.send_player_joined(&player)); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 234 | self.players(|p: /* Type */| p.send_player_joined(&player)); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:236:26 [INFO] [stdout] | [INFO] [stdout] 236 | self.player(id, |player| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 237 | player.send_id(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 236 | self.player(id, |player: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:248:23 [INFO] [stdout] | [INFO] [stdout] 248 | self.players(|player| player.send_player_left(id)); [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 248 | self.players(|player: /* Type */| player.send_player_left(id)); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:248:23 [INFO] [stdout] | [INFO] [stdout] 248 | self.players(|player| player.send_player_left(id)); [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 248 | self.players(|player: /* Type */| player.send_player_left(id)); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:252:41 [INFO] [stdout] | [INFO] [stdout] 252 | let player = match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find` found for struct `HashMap` in the current scope [INFO] [stdout] --> src/main.rs:252:41 [INFO] [stdout] | [INFO] [stdout] 252 | let player = match self.players.find(&id) { [INFO] [stdout] | ^^^^ method not found in `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let player = match self.players.find(&id) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | let player = &*player.borrow(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `player` an explicit type [INFO] [stdout] | [INFO] [stdout] 252 | let player: /* Type */ = match self.players.find(&id) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let player = match self.players.find(&id) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | let player = &*player.borrow(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `player` an explicit type [INFO] [stdout] | [INFO] [stdout] 252 | let player: /* Type */ = match self.players.find(&id) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:299:37 [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c| c.to_lowercase()) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:299:37 [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c| c.to_lowercase()) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:299:61 [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c| c.to_lowercase()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c: /* Type */| c.to_lowercase()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mlpccg` (bin "mlpccg") due to 52 previous errors [INFO] [stderr] error: could not compile `mlpccg` (bin "mlpccg" test) due to 52 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:299:61 [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c| c.to_lowercase()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 299 | let line: String = line.as_slice().chars().map(|c: /* Type */| c.to_lowercase()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107, E0282, E0425, E0432, E0531, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107, E0282, E0425, E0432, E0531, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fe68e7769f8efb27fafd5921a51fe44180f82c790178b5a9321718c243042e97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe68e7769f8efb27fafd5921a51fe44180f82c790178b5a9321718c243042e97", kill_on_drop: false }` [INFO] [stdout] fe68e7769f8efb27fafd5921a51fe44180f82c790178b5a9321718c243042e97