[INFO] cloning repository https://github.com/Eros/Heart [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Eros/Heart" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEros%2FHeart", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEros%2FHeart'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6675149ed54e800f26b1dad73220af0ad7866db5 [INFO] checking Eros/Heart against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEros%2FHeart" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eros/Heart on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Eros/Heart [INFO] finished tweaking git repo https://github.com/Eros/Heart [INFO] tweaked toml for git repo https://github.com/Eros/Heart written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/Eros/Heart already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd58883fee82db132282d1dd52456d48ad3898043e470824f5734568f1752f53 [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" "cd58883fee82db132282d1dd52456d48ad3898043e470824f5734568f1752f53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd58883fee82db132282d1dd52456d48ad3898043e470824f5734568f1752f53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd58883fee82db132282d1dd52456d48ad3898043e470824f5734568f1752f53", kill_on_drop: false }` [INFO] [stdout] cd58883fee82db132282d1dd52456d48ad3898043e470824f5734568f1752f53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7d44be29c2f6d4adbc19ae277d93579b22d7730632fe948535502db84666737 [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" "f7d44be29c2f6d4adbc19ae277d93579b22d7730632fe948535502db84666737", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking log v0.4.5 [INFO] [stderr] Checking sha1 v0.1.1 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Compiling http-muncher v0.2.5 [INFO] [stderr] Checking mio v0.6.16 (https://github.com/carllerche/mio#50c4af5c) [INFO] [stderr] Checking Heart v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unknown character escape: [INFO] [stdout] --> src/main.rs:78:87 [INFO] [stdout] | [INFO] [stdout] 78 | let response = fmt::format(format_args!("HTTP/1.1 101 Switching Protocols\r\n\ Connection: Upgrade\r\n\ [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown character escape: [INFO] [stdout] --> src/main.rs:79:82 [INFO] [stdout] | [INFO] [stdout] 79 | ... Sec-WebSocket-Accept: {}\r\n\ Upgrade: websocket\r\n\r\n", response_key)); [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `#` [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[#deprive] [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:55:79 [INFO] [stdout] | [INFO] [stdout] 54 | Err(e) => [INFO] [stdout] | -- while parsing the `match` arm starting here [INFO] [stdout] 55 | println!("Error while attempting to read socket! {:?}", e); [INFO] [stdout] | ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stdout] --> src/main.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(None) => break; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `=`, `@`, or `|`, found `=>` [INFO] [stdout] --> src/main.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 99 | SERVER_TOKEN => [INFO] [stdout] | -- while parsing the `match` arm starting here [INFO] [stdout] 100 | let client_socket => match self::socket::accept()| [INFO] [stdout] | ^^ expected one of `=`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | }, [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/main.rs:114:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl Handler for WebSocketServer { [INFO] [stdout] | - item list starts here [INFO] [stdout] ... [INFO] [stdout] 114 | }; [INFO] [stdout] | ^ non-item starts here [INFO] [stdout] ... [INFO] [stdout] 119 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown character escape: [INFO] [stdout] --> src/main.rs:78:87 [INFO] [stdout] | [INFO] [stdout] 78 | let response = fmt::format(format_args!("HTTP/1.1 101 Switching Protocols\r\n\ Connection: Upgrade\r\n\ [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown character escape: [INFO] [stdout] --> src/main.rs:79:82 [INFO] [stdout] | [INFO] [stdout] 79 | ... Sec-WebSocket-Accept: {}\r\n\ Upgrade: websocket\r\n\r\n", response_key)); [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `#` [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[#deprive] [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:55:79 [INFO] [stdout] | [INFO] [stdout] 54 | Err(e) => [INFO] [stdout] | -- while parsing the `match` arm starting here [INFO] [stdout] 55 | println!("Error while attempting to read socket! {:?}", e); [INFO] [stdout] | ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stdout] --> src/main.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(None) => break; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `=`, `@`, or `|`, found `=>` [INFO] [stdout] --> src/main.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 99 | SERVER_TOKEN => [INFO] [stdout] | -- while parsing the `match` arm starting here [INFO] [stdout] 100 | let client_socket => match self::socket::accept()| [INFO] [stdout] | ^^ expected one of `=`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | }, [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/main.rs:114:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl Handler for WebSocketServer { [INFO] [stdout] | - item list starts here [INFO] [stdout] ... [INFO] [stdout] 114 | }; [INFO] [stdout] | ^ non-item starts here [INFO] [stdout] ... [INFO] [stdout] 119 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/main.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | let response = fmt::format(format_args!("HTTP/1.1 101 Switching Protocols\r\n\ Connection: Upgrade\r\n\ [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ClientState` [INFO] [stdout] --> src/main.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | self.state = ClientState::Connected; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ClientState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/main.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | self.interest.remove(EventSet::writable()); [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/main.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | self.interest.insert(EventSet::readable()); [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/main.rs:141:51 [INFO] [stdout] | [INFO] [stdout] 141 | event_loop.register(&server_socket, Token(0), EventSet::readable(), PollOpt::edge()).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `u` in this scope [INFO] [stdout] --> src/main.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | fn on_header_field(&mut self, s: u) -> bool { [INFO] [stdout] | ^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `u` in this scope [INFO] [stdout] --> src/main.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | fn on_header_value(&mut self, s: u) -> bool { [INFO] [stdout] | ^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `HttpParser` [INFO] [stdout] --> src/main.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 22 | / struct HttpParser { [INFO] [stdout] 23 | | current_key: Option, [INFO] [stdout] 24 | | #[#deprive] [INFO] [stdout] 25 | | headers: Rc>>, [INFO] [stdout] 26 | | } [INFO] [stdout] | |_- `HttpParser` defined here [INFO] [stdout] ... [INFO] [stdout] 71 | http_parser: Parser::Request(HttpParser) [INFO] [stdout] | ^^^^^^^^^^ help: use struct literal syntax instead: `HttpParser { current_key: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stdout] --> src/main.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl Handler for WebSocketServer { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:97:42 [INFO] [stdout] | [INFO] [stdout] 97 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: EventSet){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventSet` in this scope [INFO] [stdout] --> src/main.rs:97:92 [INFO] [stdout] | [INFO] [stdout] 97 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: EventSet){ [INFO] [stdout] | ^^^^^^^^ help: a trait with a similar name exists: `Evented` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/git/checkouts/mio-e79f285e2377d154/50c4af5/src/event_imp.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait Evented { [INFO] [stdout] | ----------------- similarly named trait `Evented` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/main.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `WebSocketServer` [INFO] [stdout] --> src/main.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 87 | / struct WebSocketServer{ [INFO] [stdout] 88 | | socket: TcpListener, [INFO] [stdout] 89 | | clients: HashMap, [INFO] [stdout] 90 | | token_counter: usize [INFO] [stdout] 91 | | } [INFO] [stdout] | |_- `WebSocketServer` defined here [INFO] [stdout] ... [INFO] [stdout] 138 | let mut handler = WebSocketServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `WebSocketServer { socket: val, clients: val, token_counter: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/main.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | let response = fmt::format(format_args!("HTTP/1.1 101 Switching Protocols\r\n\ Connection: Upgrade\r\n\ [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ClientState` [INFO] [stdout] --> src/main.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | self.state = ClientState::Connected; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ClientState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/main.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | self.interest.remove(EventSet::writable()); [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/main.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | self.interest.insert(EventSet::readable()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0423, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventSet` [INFO] [stdout] --> src/main.rs:141:51 [INFO] [stdout] | [INFO] [stdout] 141 | event_loop.register(&server_socket, Token(0), EventSet::readable(), PollOpt::edge()).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `EventSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Heart` [INFO] [stdout] error[E0412]: cannot find type `u` in this scope [INFO] [stdout] --> src/main.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | fn on_header_field(&mut self, s: u) -> bool { [INFO] [stdout] | ^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0412]: cannot find type `u` in this scope [INFO] [stdout] --> src/main.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | fn on_header_value(&mut self, s: u) -> bool { [INFO] [stdout] | ^ help: a builtin type with a similar name exists: `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0423]: expected value, found struct `HttpParser` [INFO] [stdout] --> src/main.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 22 | / struct HttpParser { [INFO] [stdout] 23 | | current_key: Option, [INFO] [stdout] 24 | | #[#deprive] [INFO] [stdout] 25 | | headers: Rc>>, [INFO] [stdout] 26 | | } [INFO] [stdout] | |_- `HttpParser` defined here [INFO] [stdout] ... [INFO] [stdout] 71 | http_parser: Parser::Request(HttpParser) [INFO] [stdout] | ^^^^^^^^^^ help: use struct literal syntax instead: `HttpParser { current_key: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0405]: cannot find trait `Handler` in this scope [INFO] [stdout] --> src/main.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl Handler for WebSocketServer { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> src/main.rs:97:42 [INFO] [stdout] | [INFO] [stdout] 97 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: EventSet){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventSet` in this scope [INFO] [stdout] --> src/main.rs:97:92 [INFO] [stdout] | [INFO] [stdout] 97 | fn ready(&mut self, event_loop: &mut EventLoop, token: Token, events: EventSet){ [INFO] [stdout] | ^^^^^^^^ help: a trait with a similar name exists: `Evented` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/git/checkouts/mio-e79f285e2377d154/50c4af5/src/event_imp.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait Evented { [INFO] [stdout] | ----------------- similarly named trait `Evented` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/main.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | let mut event_loop = EventLoop::new().unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use deprecated::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `WebSocketServer` [INFO] [stdout] --> src/main.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 87 | / struct WebSocketServer{ [INFO] [stdout] 88 | | socket: TcpListener, [INFO] [stdout] 89 | | clients: HashMap, [INFO] [stdout] 90 | | token_counter: usize [INFO] [stdout] 91 | | } [INFO] [stdout] | |_- `WebSocketServer` defined here [INFO] [stdout] ... [INFO] [stdout] 138 | let mut handler = WebSocketServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `WebSocketServer { socket: val, clients: val, token_counter: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0423, 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" "f7d44be29c2f6d4adbc19ae277d93579b22d7730632fe948535502db84666737", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7d44be29c2f6d4adbc19ae277d93579b22d7730632fe948535502db84666737", kill_on_drop: false }` [INFO] [stdout] f7d44be29c2f6d4adbc19ae277d93579b22d7730632fe948535502db84666737