[INFO] cloning repository https://github.com/shahuwang/Rustunnel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shahuwang/Rustunnel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustunnel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustunnel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 208657ea45aea8a7d7284d3b5d9aedf252ebdd95 [INFO] checking shahuwang/Rustunnel against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustunnel" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shahuwang/Rustunnel 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/shahuwang/Rustunnel [INFO] finished tweaking git repo https://github.com/shahuwang/Rustunnel [INFO] tweaked toml for git repo https://github.com/shahuwang/Rustunnel written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/shahuwang/Rustunnel 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] [stderr] error: the lock file /workspace/builds/worker-13/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e98a56f01621de2554654f965ecbed6920f4e8e8318a1900cea6370583a07b58 [INFO] running `Command { std: "docker" "start" "-a" "e98a56f01621de2554654f965ecbed6920f4e8e8318a1900cea6370583a07b58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e98a56f01621de2554654f965ecbed6920f4e8e8318a1900cea6370583a07b58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e98a56f01621de2554654f965ecbed6920f4e8e8318a1900cea6370583a07b58", kill_on_drop: false }` [INFO] [stdout] e98a56f01621de2554654f965ecbed6920f4e8e8318a1900cea6370583a07b58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] 0a917de63f2ba9dc84834e96feb343f3968cc1db7f4c8c669742cb498ae49a44 [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" "0a917de63f2ba9dc84834e96feb343f3968cc1db7f4c8c669742cb498ae49a44", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking Rustunnel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `std::io::Chars`, `std::io::Tee` [INFO] [stdout] --> src/conn.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | Chars, Chain, Tee, Take, [INFO] [stdout] | ^^^^^ ^^^ no `Tee` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `Chars` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bincode::SizeLimit` [INFO] [stdout] --> src/conn.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bincode::SizeLimit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `SizeLimit` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bincode::rustc_serialize` [INFO] [stdout] --> src/conn.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode::rustc_serialize::{encode, decode_from, DecodingResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `rustc_serialize` in `bincode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::Chars`, `std::io::Tee` [INFO] [stdout] --> src/conn.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | Chars, Chain, Tee, Take, [INFO] [stdout] | ^^^^^ ^^^ no `Tee` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `Chars` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bincode::SizeLimit` [INFO] [stdout] --> src/conn.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bincode::SizeLimit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `SizeLimit` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bincode::rustc_serialize` [INFO] [stdout] --> src/conn.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode::rustc_serialize::{encode, decode_from, DecodingResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `rustc_serialize` in `bincode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `chars` is not a member of trait `Read` [INFO] [stdout] --> src/conn.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / fn chars(self) -> Chars where Self: Sized{ [INFO] [stdout] 101 | | unimplemented!(); [INFO] [stdout] 102 | | // self.reader.chars() [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ not a member of trait `Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `tee` is not a member of trait `Read` [INFO] [stdout] --> src/conn.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / fn tee(self, out: W) -> Tee where Self:Sized{ [INFO] [stdout] 113 | | unimplemented!(); [INFO] [stdout] 114 | | // self.reader.tee(out) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ not a member of trait `Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/client.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/client.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as stdResult` [INFO] [stdout] --> src/conn.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::result::Result::{self as stdResult, Ok, Err}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/conn.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hub.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LINK_STATUS` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum LINK_STATUS{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkStatus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_DATA` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | LINK_DATA, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `LinkData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CREATE` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | LINK_CREATE, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCreate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | LINK_CLOSE, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkClose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE_RECV` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | LINK_CLOSE_RECV, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCloseRecv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE_SEND` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | LINK_CLOSE_SEND [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCloseSend` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `chars` is not a member of trait `Read` [INFO] [stdout] --> src/conn.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / fn chars(self) -> Chars where Self: Sized{ [INFO] [stdout] 101 | | unimplemented!(); [INFO] [stdout] 102 | | // self.reader.chars() [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ not a member of trait `Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `tee` is not a member of trait `Read` [INFO] [stdout] --> src/conn.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / fn tee(self, out: W) -> Tee where Self:Sized{ [INFO] [stdout] 113 | | unimplemented!(); [INFO] [stdout] 114 | | // self.reader.tee(out) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ not a member of trait `Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/client.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/client.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as stdResult` [INFO] [stdout] --> src/conn.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::result::Result::{self as stdResult, Ok, Err}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/conn.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hub.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LINK_STATUS` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum LINK_STATUS{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkStatus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_DATA` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | LINK_DATA, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `LinkData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CREATE` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | LINK_CREATE, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCreate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | LINK_CLOSE, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkClose` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE_RECV` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | LINK_CLOSE_RECV, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCloseRecv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LINK_CLOSE_SEND` should have an upper camel case name [INFO] [stdout] --> src/hub.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | LINK_CLOSE_SEND [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LinkCloseSend` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/link_buffer.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | fn put(&mut self, data: [u8]) -> bool{ [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 31 | fn put(&mut self, &data: [u8]) -> bool{ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | buf.extend_from_slice(self.buf[self.start..self.end]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&[Box<[u8]>]`, found slice [INFO] [stdout] | help: consider borrowing here: `&self.buf[self.start..self.end]` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[Box<[u8]>]` [INFO] [stdout] found slice `[Box<[u8]>]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | if self.end > self.start{ [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 40 | | buf.extend_from_slice(self.buf[self.start..self.end]); [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | } [INFO] [stdout] | ^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | } [INFO] [stdout] | ^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0407, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/link_buffer.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | fn put(&mut self, data: [u8]) -> bool{ [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 31 | fn put(&mut self, &data: [u8]) -> bool{ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | buf.extend_from_slice(self.buf[self.start..self.end]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&[Box<[u8]>]`, found slice [INFO] [stdout] | help: consider borrowing here: `&self.buf[self.start..self.end]` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[Box<[u8]>]` [INFO] [stdout] found slice `[Box<[u8]>]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | if self.end > self.start{ [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 40 | | buf.extend_from_slice(self.buf[self.start..self.end]); [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | } [INFO] [stdout] | ^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/link_buffer.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | } [INFO] [stdout] | ^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0407, E0432. [INFO] [stdout] [INFO] [stderr] error: could not compile `Rustunnel` [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] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0a917de63f2ba9dc84834e96feb343f3968cc1db7f4c8c669742cb498ae49a44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a917de63f2ba9dc84834e96feb343f3968cc1db7f4c8c669742cb498ae49a44", kill_on_drop: false }` [INFO] [stdout] 0a917de63f2ba9dc84834e96feb343f3968cc1db7f4c8c669742cb498ae49a44