[INFO] cloning repository https://github.com/lukeasrodgers/rust-nc [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lukeasrodgers/rust-nc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flukeasrodgers%2Frust-nc"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flukeasrodgers%2Frust-nc'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9712f3ec52df8f7cb65253b0b5939fed56fb2485 [INFO] checking lukeasrodgers/rust-nc against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flukeasrodgers%2Frust-nc" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lukeasrodgers/rust-nc on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/lukeasrodgers/rust-nc [INFO] finished tweaking git repo https://github.com/lukeasrodgers/rust-nc [INFO] tweaked toml for git repo https://github.com/lukeasrodgers/rust-nc written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/lukeasrodgers/rust-nc already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/carllerche/mio` [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d96f91e43a4140026e45e4e445554c0ee83aa7a9fcd6455b4a5b144505f5555d [INFO] running `"docker" "start" "-a" "d96f91e43a4140026e45e4e445554c0ee83aa7a9fcd6455b4a5b144505f5555d"` [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking mio v0.7.0 (https://github.com/carllerche/mio#976f2354) [INFO] [stderr] Checking rust-nc v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `net` in `mio` [INFO] [stderr] --> src/listener.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | use self::mio::net::tcp::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/listener.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::old_io; [INFO] [stderr] | ^^^^^^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::buf` [INFO] [stderr] --> src/listener.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | use self::mio::buf::{ByteBuf}; [INFO] [stderr] | ^^^ could not find `buf` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::net::lookup_host` [INFO] [stderr] --> src/connecter.rs:3:27 [INFO] [stderr] | [INFO] [stderr] 3 | use std::net::{SocketAddr,lookup_host,IpAddr}; [INFO] [stderr] | ^^^^^^^^^^^ no `lookup_host` in `net` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `net` in `mio` [INFO] [stderr] --> src/connecter.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | use self::mio::net::tcp::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/connecter.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::old_io; [INFO] [stderr] | ^^^^^^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::buf` [INFO] [stderr] --> src/connecter.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | use self::mio::buf::{ByteBuf}; [INFO] [stderr] | ^^^ could not find `buf` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::net` [INFO] [stderr] --> src/connecter.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | use self::mio::net::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `net` in `mio` [INFO] [stderr] --> src/listener.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | use self::mio::net::tcp::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/listener.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::old_io; [INFO] [stderr] | ^^^^^^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::buf` [INFO] [stderr] --> src/listener.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | use self::mio::buf::{ByteBuf}; [INFO] [stderr] | ^^^ could not find `buf` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::net::lookup_host` [INFO] [stderr] --> src/connecter.rs:3:27 [INFO] [stderr] | [INFO] [stderr] 3 | use std::net::{SocketAddr,lookup_host,IpAddr}; [INFO] [stderr] | ^^^^^^^^^^^ no `lookup_host` in `net` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `net` in `mio` [INFO] [stderr] --> src/connecter.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | use self::mio::net::tcp::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/connecter.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::old_io; [INFO] [stderr] | ^^^^^^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::buf` [INFO] [stderr] --> src/connecter.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | use self::mio::buf::{ByteBuf}; [INFO] [stderr] | ^^^ could not find `buf` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::mio::net` [INFO] [stderr] --> src/connecter.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | use self::mio::net::*; [INFO] [stderr] | ^^^ could not find `net` in `mio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EventLoop` [INFO] [stderr] --> src/listener.rs:118:26 [INFO] [stderr] | [INFO] [stderr] 118 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `EventLoop` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PollOpt` [INFO] [stderr] --> src/listener.rs:119:108 [INFO] [stderr] | [INFO] [stderr] 119 | event_loop.register_opt(&listener, SERVER, Interest::readable() | Interest::hup() | Interest::error(), PollOpt::level()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PollOpt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EventLoop` [INFO] [stderr] --> src/connecter.rs:73:26 [INFO] [stderr] | [INFO] [stderr] 73 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `EventLoop` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PollOpt` [INFO] [stderr] --> src/connecter.rs:78:119 [INFO] [stderr] | [INFO] [stderr] 78 | event_loop.register_opt(&client.sock, CLIENT, Interest::readable() | Interest::hup() | Interest::error(), PollOpt::level()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PollOpt` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/listener.rs:18:18 [INFO] [stderr] | [INFO] [stderr] 17 | struct ServerHandler { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 18 | conn: Option>, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stderr] --> src/listener.rs:18:27 [INFO] [stderr] | [INFO] [stderr] 18 | conn: Option>, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpStream; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/listener.rs:19:11 [INFO] [stderr] | [INFO] [stderr] 19 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpListener` in this scope [INFO] [stderr] --> src/listener.rs:19:20 [INFO] [stderr] | [INFO] [stderr] 19 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpListener; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:23:43 [INFO] [stderr] | [INFO] [stderr] 23 | fn accept(&mut self, event_loop: &mut EventLoop) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stderr] --> src/listener.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | impl Handler for ServerHandler { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:49:45 [INFO] [stderr] | [INFO] [stderr] 49 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ReadHint` in this scope [INFO] [stderr] --> src/listener.rs:49:91 [INFO] [stderr] | [INFO] [stderr] 49 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:96:43 [INFO] [stderr] | [INFO] [stderr] 96 | fn notify(&mut self, event_loop: &mut EventLoop, msg: String) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v4` in this scope [INFO] [stderr] --> src/listener.rs:114:20 [INFO] [stderr] | [INFO] [stderr] 114 | let listener = v4().unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoopSender` in this scope [INFO] [stderr] --> src/listener.rs:134:29 [INFO] [stderr] | [INFO] [stderr] 134 | fn readwrite_chan(channel: &EventLoopSender) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/connecter.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stderr] --> src/connecter.rs:18:20 [INFO] [stderr] | [INFO] [stderr] 18 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpStream; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stderr] --> src/connecter.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | impl Handler for ClientHandler { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/connecter.rs:25:45 [INFO] [stderr] | [INFO] [stderr] 25 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ReadHint` in this scope [INFO] [stderr] --> src/connecter.rs:25:91 [INFO] [stderr] | [INFO] [stderr] 25 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/connecter.rs:61:43 [INFO] [stderr] | [INFO] [stderr] 61 | fn notify(&mut self, event_loop: &mut EventLoop, msg: String) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v4` in this scope [INFO] [stderr] --> src/connecter.rs:69:27 [INFO] [stderr] | [INFO] [stderr] 69 | IpAddr::V4(..) => v4(), [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v6` in this scope [INFO] [stderr] --> src/connecter.rs:70:27 [INFO] [stderr] | [INFO] [stderr] 70 | IpAddr::V6(..) => v6() [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoopSender` in this scope [INFO] [stderr] --> src/connecter.rs:91:29 [INFO] [stderr] | [INFO] [stderr] 91 | fn readwrite_chan(channel: &EventLoopSender) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::os` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/listener.rs:2:15 [INFO] [stderr] | [INFO] [stderr] 2 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ToSocketAddrs` [INFO] [stderr] --> src/listener.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | use std::net::{SocketAddr,ToSocketAddrs}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/connecter.rs:2:15 [INFO] [stderr] | [INFO] [stderr] 2 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SocketAddr` [INFO] [stderr] --> src/connecter.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use std::net::{SocketAddr,lookup_host,IpAddr}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/util.rs:1:15 [INFO] [stderr] | [INFO] [stderr] 1 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 32 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `rust-nc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EventLoop` [INFO] [stderr] --> src/listener.rs:118:26 [INFO] [stderr] | [INFO] [stderr] 118 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `EventLoop` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PollOpt` [INFO] [stderr] --> src/listener.rs:119:108 [INFO] [stderr] | [INFO] [stderr] 119 | event_loop.register_opt(&listener, SERVER, Interest::readable() | Interest::hup() | Interest::error(), PollOpt::level()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PollOpt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `EventLoop` [INFO] [stderr] --> src/connecter.rs:73:26 [INFO] [stderr] | [INFO] [stderr] 73 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `EventLoop` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PollOpt` [INFO] [stderr] --> src/connecter.rs:78:119 [INFO] [stderr] | [INFO] [stderr] 78 | event_loop.register_opt(&client.sock, CLIENT, Interest::readable() | Interest::hup() | Interest::error(), PollOpt::level()).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PollOpt` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/listener.rs:18:18 [INFO] [stderr] | [INFO] [stderr] 17 | struct ServerHandler { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 18 | conn: Option>, [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stderr] --> src/listener.rs:18:27 [INFO] [stderr] | [INFO] [stderr] 18 | conn: Option>, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpStream; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/listener.rs:19:11 [INFO] [stderr] | [INFO] [stderr] 19 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpListener` in this scope [INFO] [stderr] --> src/listener.rs:19:20 [INFO] [stderr] | [INFO] [stderr] 19 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpListener; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:23:43 [INFO] [stderr] | [INFO] [stderr] 23 | fn accept(&mut self, event_loop: &mut EventLoop) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stderr] --> src/listener.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | impl Handler for ServerHandler { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:49:45 [INFO] [stderr] | [INFO] [stderr] 49 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ReadHint` in this scope [INFO] [stderr] --> src/listener.rs:49:91 [INFO] [stderr] | [INFO] [stderr] 49 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/listener.rs:96:43 [INFO] [stderr] | [INFO] [stderr] 96 | fn notify(&mut self, event_loop: &mut EventLoop, msg: String) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v4` in this scope [INFO] [stderr] --> src/listener.rs:114:20 [INFO] [stderr] | [INFO] [stderr] 114 | let listener = v4().unwrap(); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoopSender` in this scope [INFO] [stderr] --> src/listener.rs:134:29 [INFO] [stderr] | [INFO] [stderr] 134 | fn readwrite_chan(channel: &EventLoopSender) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NonBlock` in this scope [INFO] [stderr] --> src/connecter.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stderr] --> src/connecter.rs:18:20 [INFO] [stderr] | [INFO] [stderr] 18 | sock: NonBlock [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use std::net::TcpStream; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stderr] --> src/connecter.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | impl Handler for ClientHandler { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/connecter.rs:25:45 [INFO] [stderr] | [INFO] [stderr] 25 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ReadHint` in this scope [INFO] [stderr] --> src/connecter.rs:25:91 [INFO] [stderr] | [INFO] [stderr] 25 | fn readable(&mut self, event_loop: &mut EventLoop, token: Token, hint: ReadHint) { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stderr] --> src/connecter.rs:61:43 [INFO] [stderr] | [INFO] [stderr] 61 | fn notify(&mut self, event_loop: &mut EventLoop, msg: String) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v4` in this scope [INFO] [stderr] --> src/connecter.rs:69:27 [INFO] [stderr] | [INFO] [stderr] 69 | IpAddr::V4(..) => v4(), [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `v6` in this scope [INFO] [stderr] --> src/connecter.rs:70:27 [INFO] [stderr] | [INFO] [stderr] 70 | IpAddr::V6(..) => v6() [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `EventLoopSender` in this scope [INFO] [stderr] --> src/connecter.rs:91:29 [INFO] [stderr] | [INFO] [stderr] 91 | fn readwrite_chan(channel: &EventLoopSender) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::os` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/listener.rs:2:15 [INFO] [stderr] | [INFO] [stderr] 2 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ToSocketAddrs` [INFO] [stderr] --> src/listener.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | use std::net::{SocketAddr,ToSocketAddrs}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/connecter.rs:2:15 [INFO] [stderr] | [INFO] [stderr] 2 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SocketAddr` [INFO] [stderr] --> src/connecter.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use std::net::{SocketAddr,lookup_host,IpAddr}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Options` [INFO] [stderr] --> src/util.rs:1:15 [INFO] [stderr] | [INFO] [stderr] 1 | use getopts::{Options,Matches}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 32 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `rust-nc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "d96f91e43a4140026e45e4e445554c0ee83aa7a9fcd6455b4a5b144505f5555d"` [INFO] running `"docker" "rm" "-f" "d96f91e43a4140026e45e4e445554c0ee83aa7a9fcd6455b4a5b144505f5555d"` [INFO] [stdout] d96f91e43a4140026e45e4e445554c0ee83aa7a9fcd6455b4a5b144505f5555d