[INFO] cloning repository https://github.com/Myrannas/rusted-nio [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Myrannas/rusted-nio" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMyrannas%2Frusted-nio", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMyrannas%2Frusted-nio'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5bcdf165bd89681130a6b6f7c8f4ef57f2ee2d77 [INFO] testing Myrannas/rusted-nio against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMyrannas%2Frusted-nio" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Myrannas/rusted-nio on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Myrannas/rusted-nio [INFO] finished tweaking git repo https://github.com/Myrannas/rusted-nio [INFO] tweaked toml for git repo https://github.com/Myrannas/rusted-nio written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/Myrannas/rusted-nio already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] 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-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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c1c78e4bb30a262c1e24aca57d4e82f27395cf661643f12eed4a0e0c1ba97e1 [INFO] running `Command { std: "docker" "start" "-a" "4c1c78e4bb30a262c1e24aca57d4e82f27395cf661643f12eed4a0e0c1ba97e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c1c78e4bb30a262c1e24aca57d4e82f27395cf661643f12eed4a0e0c1ba97e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c1c78e4bb30a262c1e24aca57d4e82f27395cf661643f12eed4a0e0c1ba97e1", kill_on_drop: false }` [INFO] [stdout] 4c1c78e4bb30a262c1e24aca57d4e82f27395cf661643f12eed4a0e0c1ba97e1 [INFO] running `Command { std: "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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 275f3d052d1cbc5466c8fafab786937349e5b08530db95563c80ee1aaca77f59 [INFO] running `Command { std: "docker" "start" "-a" "275f3d052d1cbc5466c8fafab786937349e5b08530db95563c80ee1aaca77f59", kill_on_drop: false }` [INFO] [stderr] Compiling rusty v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `for` [INFO] [stdout] --> src/main.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | ... debug!("Received {} events", events.len()) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 51 | ... [INFO] [stdout] 52 | ... for event in events.iter() { [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `<` is interpreted as a start of generic arguments for `u32`, not a shift [INFO] [stdout] --> src/sockets.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl(a1 as u32 << 24 | a2 as u32 << 16 | a3 as u32 << 8 | a4 as u32)} [INFO] [stdout] | ^^ -- interpreted as generic arguments [INFO] [stdout] | | [INFO] [stdout] | not interpreted as shift [INFO] [stdout] | [INFO] [stdout] help: try shifting the cast value [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl((a1 as u32) << 24 | a2 as u32 << 16 | a3 as u32 << 8 | a4 as u32)} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `<` is interpreted as a start of generic arguments for `u32`, not a shift [INFO] [stdout] --> src/sockets.rs:41:66 [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl(a1 as u32 << 24 | a2 as u32 << 16 | a3 as u32 << 8 | a4 as u32)} [INFO] [stdout] | ^^ -- interpreted as generic arguments [INFO] [stdout] | | [INFO] [stdout] | not interpreted as shift [INFO] [stdout] | [INFO] [stdout] help: try shifting the cast value [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl(a1 as u32 << 24 | (a2 as u32) << 16 | a3 as u32 << 8 | a4 as u32)} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `<` is interpreted as a start of generic arguments for `u32`, not a shift [INFO] [stdout] --> src/sockets.rs:41:84 [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl(a1 as u32 << 24 | a2 as u32 << 16 | a3 as u32 << 8 | a4 as u32)} [INFO] [stdout] | ^^ - interpreted as generic arguments [INFO] [stdout] | | [INFO] [stdout] | not interpreted as shift [INFO] [stdout] | [INFO] [stdout] help: try shifting the cast value [INFO] [stdout] | [INFO] [stdout] 41 | s_addr : unsafe{htonl(a1 as u32 << 24 | a2 as u32 << 16 | (a3 as u32) << 8 | a4 as u32)} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `native` [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate native; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `log` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/errors.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::funcs::c95::stdio::perror; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/epoll.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::funcs::posix88::unistd::close; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc` [INFO] [stdout] --> src/sockets.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::types::os::common::bsd44::{sockaddr, sockaddr_in, in_addr}; [INFO] [stdout] | ^^^^^ could not find `types` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/sockets.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use libc::funcs::bsd43::{socket,bind,listen,accept}; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/sockets.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use libc::consts::os::bsd44::{AF_INET,SOCK_STREAM}; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/sockets.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use libc::consts::os::extra::O_NONBLOCK; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/sockets.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use libc::funcs::posix88::unistd::close; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/sockets.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use libc::funcs::posix88::fcntl::{fcntl}; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/sockets.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use libc::consts::os::posix88::{EWOULDBLOCK,EAGAIN}; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/sockets.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use libc::consts::os::posix01::{F_GETFL,F_SETFL}; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc` [INFO] [stdout] --> src/signals.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use libc::consts::os::posix88::{SIGTERM,SIGQUIT,SIGINT}; [INFO] [stdout] | ^^^^^^ could not find `consts` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::os::errno` [INFO] [stdout] --> src/sockets.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::os::errno; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `errno` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/main.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[phase(plugin, link)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/epoll.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/epoll.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/epoll.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | debug!("Creating new epoll instance"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/epoll.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | error!("Unable to add event ({}) to epoll instance ({})", event, self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/epoll.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | debug!("Added new event ({}) to epoll instance ({})", event, self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/epoll.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | error!("Error polling ({})", self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/sockets.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | #[deriving(Eq, PartialEq, Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/sockets.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/sockets.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | error!("Error encountered while modifying socket mode to be non-blocking"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/sockets.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | error!("Error encountered while modifying socket mode to be non-blocking"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | debug!("Closing remote socket ({})", self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/sockets.rs:94:3 [INFO] [stdout] | [INFO] [stdout] 94 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | debug!("Attempting to create socket descriptor"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | debug!("Binding to socket ({}) on with address ({})", socket, address); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/sockets.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | error!("Error binding to socket - errno {} for descriptor {}", result, fd); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/sockets.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | error!("Error creating socket descriptor - errno {}", fd); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | debug!("Listening to socket ({})", self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | debug!("Error accepting socket ({})", self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/sockets.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | debug!("Closing socket ({})", self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/signals.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[deriving(Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/signals.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | debug!("Signal callback"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/signals.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | error!("Unable to register signal handler"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/signals.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | error!("Unable to register signal handler"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/signals.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | error!("Unable to register signal handler"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | error!("Error listening for socket {}", socket); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | error!("Error binding epoll {} to listen socket {}", epoll, socket); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/main.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | ... debug!("Received {} events", events.len()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/main.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | ... debug!("Accepted client {}", new_client); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/main.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 73 | error!("Encountered error polling epoll instance") [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `perror` in this scope [INFO] [stdout] --> src/errors.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe {perror(cstr.as_ptr())}; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::perror; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/epoll.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new(flags : u32, buffer_size: uint) -> EPoll { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CtlAdd` in this scope [INFO] [stdout] --> src/epoll.rs:61:47 [INFO] [stdout] | [INFO] [stdout] 61 | let result = unsafe {epoll_ctl(self.handle, CtlAdd as i32, fd, event)}; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use epoll::EPollOperation::CtlAdd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/epoll.rs:80:62 [INFO] [stdout] | [INFO] [stdout] 80 | return Ok(self.event_buffer.as_slice().slice(0, result as uint)) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `close` in this scope [INFO] [stdout] --> src/epoll.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | close(self.handle); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::close; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IPv4` in this scope [INFO] [stdout] --> src/sockets.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn localhost(port:u16) -> Address { IPv4(127,0,0,1, port) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use sockets::Address::IPv4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr` in this scope [INFO] [stdout] --> src/sockets.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn to_addr(&self) -> sockaddr { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libc::sockaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `IPv4` in this scope [INFO] [stdout] --> src/sockets.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | IPv4(a1, a2, a3, a4, port) => { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use sockets::Address::IPv4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in` in this scope [INFO] [stdout] --> src/sockets.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | let socket_address = sockaddr_in { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libc::sockaddr_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/sockets.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | sin_family : AF_INET as u16, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::AF_INET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in_addr` in this scope [INFO] [stdout] --> src/sockets.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | sin_addr : in_addr { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libc::in_addr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `IPv4` in this scope [INFO] [stdout] --> src/sockets.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | IPv4(_,_,_,_,_) => AF_INET [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use sockets::Address::IPv4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/sockets.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | IPv4(_,_,_,_,_) => AF_INET [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::AF_INET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fcntl` in this scope [INFO] [stdout] --> src/sockets.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | let mut flags = unsafe {fcntl (self.handle, F_GETFL, 0u32)}; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::fcntl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `F_GETFL` in this scope [INFO] [stdout] --> src/sockets.rs:67:47 [INFO] [stdout] | [INFO] [stdout] 67 | let mut flags = unsafe {fcntl (self.handle, F_GETFL, 0u32)}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::F_GETFL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `O_NONBLOCK` in this scope [INFO] [stdout] --> src/sockets.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | flags |= O_NONBLOCK; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::O_NONBLOCK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fcntl` in this scope [INFO] [stdout] --> src/sockets.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | if unsafe {fcntl (self.handle, F_SETFL, flags)} == -1 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::fcntl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `F_SETFL` in this scope [INFO] [stdout] --> src/sockets.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | if unsafe {fcntl (self.handle, F_SETFL, flags)} == -1 { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::F_SETFL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `close` in this scope [INFO] [stdout] --> src/sockets.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | close(self.handle); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::close; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `socket` in this scope [INFO] [stdout] --> src/sockets.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let fd = unsafe {socket(address.to_family(), SOCK_STREAM | O_NONBLOCK, 0)}; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::socket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCK_STREAM` in this scope [INFO] [stdout] --> src/sockets.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | let fd = unsafe {socket(address.to_family(), SOCK_STREAM | O_NONBLOCK, 0)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::SOCK_STREAM; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `O_NONBLOCK` in this scope [INFO] [stdout] --> src/sockets.rs:104:63 [INFO] [stdout] | [INFO] [stdout] 104 | let fd = unsafe {socket(address.to_family(), SOCK_STREAM | O_NONBLOCK, 0)}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::O_NONBLOCK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bind` in this scope [INFO] [stdout] --> src/sockets.rs:112:26 [INFO] [stdout] | [INFO] [stdout] 112 | let result = unsafe {bind(fd, &addr, size_of::() as u32)}; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::bind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr` in this scope [INFO] [stdout] --> src/sockets.rs:112:52 [INFO] [stdout] | [INFO] [stdout] 112 | let result = unsafe {bind(fd, &addr, size_of::() as u32)}; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libc::sockaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `listen` in this scope [INFO] [stdout] --> src/sockets.rs:129:7 [INFO] [stdout] | [INFO] [stdout] 129 | if listen(self.handle, 128) != -1 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::listen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IPv4` in this scope [INFO] [stdout] --> src/sockets.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | let mut addr = IPv4(0,0,0,0,0).to_addr(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use sockets::Address::IPv4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `sockaddr` in this scope [INFO] [stdout] --> src/sockets.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | let mut len = size_of::() as u32; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libc::sockaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `accept` in this scope [INFO] [stdout] --> src/sockets.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | let result = unsafe {accept(self.handle, &mut addr, &mut len)}; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::accept; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EAGAIN` in this scope [INFO] [stdout] --> src/sockets.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | if errno() == EAGAIN as int || errno() == EWOULDBLOCK as int { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::EAGAIN; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/sockets.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | if errno() == EAGAIN as int || errno() == EWOULDBLOCK as int { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EWOULDBLOCK` in this scope [INFO] [stdout] --> src/sockets.rs:145:46 [INFO] [stdout] | [INFO] [stdout] 145 | if errno() == EAGAIN as int || errno() == EWOULDBLOCK as int { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::EWOULDBLOCK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/sockets.rs:145:61 [INFO] [stdout] | [INFO] [stdout] 145 | if errno() == EAGAIN as int || errno() == EWOULDBLOCK as int { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `close` in this scope [INFO] [stdout] --> src/sockets.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | close(self.handle); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use libc::close; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SignalTerminate` in this scope [INFO] [stdout] --> src/signals.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe {current_signal = SignalTerminate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use signals::SignalType::SignalTerminate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SignalQuit` in this scope [INFO] [stdout] --> src/signals.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe {current_signal = SignalQuit}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use signals::SignalType::SignalQuit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SignalInterrupt` in this scope [INFO] [stdout] --> src/signals.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 29 | unsafe {current_signal = SignalInterrupt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use signals::SignalType::SignalInterrupt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SIGTERM` in this scope [INFO] [stdout] --> src/signals.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | if signal(SIGTERM, sigint_callback) == -1 { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::SIGTERM; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SIGQUIT` in this scope [INFO] [stdout] --> src/signals.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | if signal(SIGQUIT, sigint_callback) == -1 { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::SIGQUIT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SIGINT` in this scope [INFO] [stdout] --> src/signals.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | if signal(SIGINT, sigint_callback) == -1 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use libc::SIGINT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SignalInterrupt` in module `signals` [INFO] [stdout] --> src/main.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | if last_signal == signals::SignalInterrupt || last_signal == signals::SignalQuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `signals` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 10 | use signals::SignalType::SignalInterrupt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SignalQuit` in module `signals` [INFO] [stdout] --> src/main.rs:41:75 [INFO] [stdout] | [INFO] [stdout] 41 | if last_signal == signals::SignalInterrupt || last_signal == signals::SignalQuit { [INFO] [stdout] | ^^^^^^^^^^ not found in `signals` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 10 | use signals::SignalType::SignalQuit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/sockets.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | try!(remote.make_non_blocking()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:73:107 [INFO] [stdout] | [INFO] [stdout] 73 | ... let result = unsafe {epoll_wait(self.handle, self.event_buffer.as_mut_ptr(), self.event_buffer.len() as libc::c_int, timeout as lib... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:73:131 [INFO] [stdout] | [INFO] [stdout] 73 | ...ut_ptr(), self.event_buffer.len() as libc::c_int, timeout as libc::c_int)}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | fn epoll_create1(flags: i32) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:38:79 [INFO] [stdout] | [INFO] [stdout] 38 | fn epoll_ctl(epoll: i32, operation: i32, fd: i32, event: *mut EPollEvent) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:39:64 [INFO] [stdout] | [INFO] [stdout] 39 | fn epoll_wait(epoll: i32, events: *mut EPollEvent, maxEvents: libc::c_int, timeout: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:39:86 [INFO] [stdout] | [INFO] [stdout] 39 | fn epoll_wait(epoll: i32, events: *mut EPollEvent, maxEvents: libc::c_int, timeout: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/epoll.rs:39:102 [INFO] [stdout] | [INFO] [stdout] 39 | fn epoll_wait(epoll: i32, events: *mut EPollEvent, maxEvents: libc::c_int, timeout: libc::c_int) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/sockets.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/sockets.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub handle: libc::c_int, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/sockets.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | pub handle: libc::c_int [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/signals.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/signals.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn signal(signal: libc::c_int, callback: extern fn(i32)) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/signals.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | fn signal(signal: libc::c_int, callback: extern fn(i32)) -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/signals.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | static mut current_signal : SignalType = None; [INFO] [stdout] | ^^^^ expected enum `SignalType`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `SignalType` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_c_str` found for reference `&str` in the current scope [INFO] [stdout] --> src/errors.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | let cstr = message.to_c_str(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_fn` found for struct `Vec<_, _>` in the current scope [INFO] [stdout] --> src/epoll.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | let event_buffer = Vec::from_fn(buffer_size,|_| {EPollEvent{events:0 , data:0}}); [INFO] [stdout] | ^^^^^^^ function or associated item not found in `Vec<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&[EPollEvent]` in the current scope [INFO] [stdout] --> src/epoll.rs:80:43 [INFO] [stdout] | [INFO] [stdout] 80 | return Ok(self.event_buffer.as_slice().slice(0, result as uint)) [INFO] [stdout] | ^^^^^ method not found in `&[EPollEvent]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::vec_deque::ring_slices::RingSlices; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/signals.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 17 | static mut current_signal : SignalType = None; [INFO] [stdout] | ---------- expected due to this type [INFO] [stdout] ... [INFO] [stdout] 40 | current_signal = None; [INFO] [stdout] | ^^^^ expected enum `SignalType`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `SignalType` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:29:64 [INFO] [stdout] | [INFO] [stdout] 29 | let mut event = epoll::EPollEvent::new(socket.handle as u64, [epoll::EPollEventType::EPollIn, epoll::EPollEventType::EPollEt]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&[EPollEventType]`, found array of 2 elements [INFO] [stdout] | help: consider borrowing here: `&[epoll::EPollEventType::EPollIn, epoll::EPollEventType::EPollEt]` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[EPollEventType]` [INFO] [stdout] found array `[EPollEventType; 2]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 110 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0422, E0425, E0432, E0433, E0463, E0531, E0599... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty` due to 111 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "275f3d052d1cbc5466c8fafab786937349e5b08530db95563c80ee1aaca77f59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "275f3d052d1cbc5466c8fafab786937349e5b08530db95563c80ee1aaca77f59", kill_on_drop: false }` [INFO] [stdout] 275f3d052d1cbc5466c8fafab786937349e5b08530db95563c80ee1aaca77f59