[INFO] cloning repository https://github.com/caleb/syslog_forwarder [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/caleb/syslog_forwarder" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaleb%2Fsyslog_forwarder", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaleb%2Fsyslog_forwarder'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09c5465d48272b09fdb9eb57c51a912d5b5bb54e [INFO] checking caleb/syslog_forwarder against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaleb%2Fsyslog_forwarder" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/caleb/syslog_forwarder on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/caleb/syslog_forwarder [INFO] finished tweaking git repo https://github.com/caleb/syslog_forwarder [INFO] tweaked toml for git repo https://github.com/caleb/syslog_forwarder written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/caleb/syslog_forwarder already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-0/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 `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/carllerche/mio.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ab1a0fa730fee85c120d24d9bd2478c23ae4d3cae1eef69dfe31d9934d31073 [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" "1ab1a0fa730fee85c120d24d9bd2478c23ae4d3cae1eef69dfe31d9934d31073", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ab1a0fa730fee85c120d24d9bd2478c23ae4d3cae1eef69dfe31d9934d31073", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ab1a0fa730fee85c120d24d9bd2478c23ae4d3cae1eef69dfe31d9934d31073", kill_on_drop: false }` [INFO] [stdout] 1ab1a0fa730fee85c120d24d9bd2478c23ae4d3cae1eef69dfe31d9934d31073 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 90c98c1eb46209b69c8cd4338e9f4a44aad89d6f2f5b6a55aa2523afcb718893 [INFO] running `Command { std: "docker" "start" "-a" "90c98c1eb46209b69c8cd4338e9f4a44aad89d6f2f5b6a55aa2523afcb718893", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking mio v0.8.0 (https://github.com/carllerche/mio.git#25e8f911) [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking syslog_forwarder v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/connection.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use mio::unix::UnixStream; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::util` [INFO] [stdout] --> src/incoming.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use mio::util::*; [INFO] [stdout] | ^^^^ could not find `util` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/incoming.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | use mio::unix::UnixListener; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes::ByteBuf` [INFO] [stdout] --> src/incoming.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::ByteBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `ByteBuf` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::udp` [INFO] [stdout] --> src/outgoing.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use mio::udp::UdpSocket; [INFO] [stdout] | ^^^ could not find `udp` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::udp` [INFO] [stdout] --> src/main.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | use mio::udp::UdpSocket; [INFO] [stdout] | ^^^ could not find `udp` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | use mio::unix::UnixSocket; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/main.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | use mio::unix::UnixListener; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Slab` [INFO] [stdout] --> src/incoming.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | connections: Slab::new_starting_at(Token(token_start), 128), [INFO] [stdout] | ^^^^ use of undeclared type `Slab` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/incoming.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | ... EventSet::readable() | EventSet::hup(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/incoming.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | ... EventSet::readable() | EventSet::hup(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/incoming.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | ... PollOpt::level()) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/outgoing.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | EventSet::writable(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/outgoing.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | PollOpt::oneshot()).ok(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/connection.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use mio::unix::UnixStream; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::util` [INFO] [stdout] --> src/incoming.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use mio::util::*; [INFO] [stdout] | ^^^^ could not find `util` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/incoming.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | use mio::unix::UnixListener; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes::ByteBuf` [INFO] [stdout] --> src/incoming.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::ByteBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `ByteBuf` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::udp` [INFO] [stdout] --> src/outgoing.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use mio::udp::UdpSocket; [INFO] [stdout] | ^^^ could not find `udp` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::udp` [INFO] [stdout] --> src/main.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | use mio::udp::UdpSocket; [INFO] [stdout] | ^^^ could not find `udp` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | use mio::unix::UnixSocket; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio::unix` [INFO] [stdout] --> src/main.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | use mio::unix::UnixListener; [INFO] [stdout] | ^^^^ could not find `unix` in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/main.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EventLoop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/main.rs:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | EventSet::writable(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/main.rs:193:27 [INFO] [stdout] | [INFO] [stdout] 193 | PollOpt::oneshot()).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Slab` in this scope [INFO] [stdout] --> src/incoming.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | connections: Slab, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/incoming.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn accept(&mut self, event_loop: &mut EventLoop, token: Token) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/incoming.rs:49:68 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn readable(&mut self, outgoing: &Outgoing, event_loop: &mut EventLoop, token: Token) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/outgoing.rs:24:73 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn writable(&mut self, incoming: &mut Incoming, _event_loop: &mut EventLoop) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/outgoing.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `SockFlag` in `signal` [INFO] [stdout] --> src/main.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | ... signal::SockFlag::empty(), [INFO] [stdout] | ^^^^^^^^ not found in `signal` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 15 | use nix::sys::socket::SockFlag; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stdout] --> src/main.rs:116:6 [INFO] [stdout] | [INFO] [stdout] 116 | impl Handler for SyslogForwarder { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: mio::EventSet) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventSet` in crate `mio` [INFO] [stdout] --> src/main.rs:120:95 [INFO] [stdout] | [INFO] [stdout] 120 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: mio::EventSet) { [INFO] [stdout] | ^^^^^^^^ not found in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:135:42 [INFO] [stdout] | [INFO] [stdout] 135 | fn notify(&mut self, _event_loop: &mut EventLoop, _msg: ()) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:139:43 [INFO] [stdout] | [INFO] [stdout] 139 | fn timeout(&mut self, _event_loop: &mut EventLoop, _timeout: ()) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:143:47 [INFO] [stdout] | [INFO] [stdout] 143 | fn interrupted(&mut self, _event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/incoming.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::*` [INFO] [stdout] --> src/outgoing.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mio::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | if (events.is_writable()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | } else if (events.is_readable()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `syslog_forwarder` [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] [stdout] error[E0433]: failed to resolve: use of undeclared type `Slab` [INFO] [stdout] --> src/incoming.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | connections: Slab::new_starting_at(Token(token_start), 128), [INFO] [stdout] | ^^^^ use of undeclared type `Slab` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/incoming.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | ... EventSet::readable() | EventSet::hup(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/incoming.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | ... EventSet::readable() | EventSet::hup(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/incoming.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | ... PollOpt::level()) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/outgoing.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | EventSet::writable(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/outgoing.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | PollOpt::oneshot()).ok(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/main.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EventLoop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/main.rs:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | EventSet::writable(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PollOpt` [INFO] [stdout] --> src/main.rs:193:27 [INFO] [stdout] | [INFO] [stdout] 193 | PollOpt::oneshot()).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PollOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Slab` in this scope [INFO] [stdout] --> src/incoming.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | connections: Slab, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/incoming.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn accept(&mut self, event_loop: &mut EventLoop, token: Token) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/incoming.rs:49:68 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn readable(&mut self, outgoing: &Outgoing, event_loop: &mut EventLoop, token: Token) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/outgoing.rs:24:73 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn writable(&mut self, incoming: &mut Incoming, _event_loop: &mut EventLoop) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/outgoing.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `SockFlag` in `signal` [INFO] [stdout] --> src/main.rs:64:51 [INFO] [stdout] | [INFO] [stdout] 64 | ... signal::SockFlag::empty(), [INFO] [stdout] | ^^^^^^^^ not found in `signal` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 15 | use nix::sys::socket::SockFlag; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stdout] --> src/main.rs:116:6 [INFO] [stdout] | [INFO] [stdout] 116 | impl Handler for SyslogForwarder { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: mio::EventSet) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventSet` in crate `mio` [INFO] [stdout] --> src/main.rs:120:95 [INFO] [stdout] | [INFO] [stdout] 120 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: mio::EventSet) { [INFO] [stdout] | ^^^^^^^^ not found in `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:135:42 [INFO] [stdout] | [INFO] [stdout] 135 | fn notify(&mut self, _event_loop: &mut EventLoop, _msg: ()) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:139:43 [INFO] [stdout] | [INFO] [stdout] 139 | fn timeout(&mut self, _event_loop: &mut EventLoop, _timeout: ()) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:143:47 [INFO] [stdout] | [INFO] [stdout] 143 | fn interrupted(&mut self, _event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/incoming.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::*` [INFO] [stdout] --> src/outgoing.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mio::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | if (events.is_writable()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | } else if (events.is_readable()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "90c98c1eb46209b69c8cd4338e9f4a44aad89d6f2f5b6a55aa2523afcb718893", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90c98c1eb46209b69c8cd4338e9f4a44aad89d6f2f5b6a55aa2523afcb718893", kill_on_drop: false }` [INFO] [stdout] 90c98c1eb46209b69c8cd4338e9f4a44aad89d6f2f5b6a55aa2523afcb718893