[INFO] cloning repository https://github.com/Liquidzk/tcp_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Liquidzk/tcp_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidzk%2Ftcp_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidzk%2Ftcp_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0ab6c74479997a2bf681fc8788f3e3548f024126 [INFO] checking Liquidzk/tcp_rust/0ab6c74479997a2bf681fc8788f3e3548f024126 against master#023084804e5e8ea42877451c2b3030e7050281cc for pr-123909 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidzk%2Ftcp_rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Liquidzk/tcp_rust on toolchain 023084804e5e8ea42877451c2b3030e7050281cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+023084804e5e8ea42877451c2b3030e7050281cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Liquidzk/tcp_rust [INFO] finished tweaking git repo https://github.com/Liquidzk/tcp_rust [INFO] tweaked toml for git repo https://github.com/Liquidzk/tcp_rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Liquidzk/tcp_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+023084804e5e8ea42877451c2b3030e7050281cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded etherparse v0.13.0 [INFO] [stderr] Downloaded tun-tap v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+023084804e5e8ea42877451c2b3030e7050281cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9798d10721c9f314b312b9ca91a86f63fb808859e0e890752fb296089ad881b [INFO] running `Command { std: "docker" "start" "-a" "d9798d10721c9f314b312b9ca91a86f63fb808859e0e890752fb296089ad881b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9798d10721c9f314b312b9ca91a86f63fb808859e0e890752fb296089ad881b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9798d10721c9f314b312b9ca91a86f63fb808859e0e890752fb296089ad881b", kill_on_drop: false }` [INFO] [stdout] d9798d10721c9f314b312b9ca91a86f63fb808859e0e890752fb296089ad881b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+023084804e5e8ea42877451c2b3030e7050281cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c86d487c5f21f5b45ad4177d888b114a5981abf7e71c5e3c4fdb631a9fa20f68 [INFO] running `Command { std: "docker" "start" "-a" "c86d487c5f21f5b45ad4177d888b114a5981abf7e71c5e3c4fdb631a9fa20f68", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking etherparse v0.13.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Compiling tun-tap v0.1.4 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking tcp_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/lib.rs:141:57 [INFO] [stdout] | [INFO] [stdout] 141 | eprintln!("ignoring weird packet {:?}", e); [INFO] [stdout] | ^ help: a constant with a similar name exists: `E` [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/num/f32.rs:356:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named constant `E` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/lib.rs:141:57 [INFO] [stdout] | [INFO] [stdout] 141 | eprintln!("ignoring weird packet {:?}", e); [INFO] [stdout] | ^ help: a constant with a similar name exists: `E` [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/num/f32.rs:356:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named constant `E` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::pending` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::future::pending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/lib.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{default, io}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::pending` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::future::pending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/lib.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{default, io}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:131:31 [INFO] [stdout] | [INFO] [stdout] 131 | return Ok(wsize); [INFO] [stdout] | -- ^^^^^ expected `Avaliable`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 131 | return Ok(wsize); [INFO] [stdout] | ^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | return Ok(0); [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | return Ok(0); [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | return Ok(0); [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:141:24 [INFO] [stdout] | [INFO] [stdout] 141 | return Ok(0); [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(0) [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(0) [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:164:32 [INFO] [stdout] | [INFO] [stdout] 164 | if tcp_header.syn() == 0 { [INFO] [stdout] | ---------------- ^ expected `bool`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0069]: `return;` in a function whose return type is not `()` [INFO] [stdout] --> src/tcp.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `io::Result>` because of this return type [INFO] [stdout] 164 | if tcp_header.syn() == 0 { [INFO] [stdout] 165 | return; [INFO] [stdout] | ^^^^^^ return type is not `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:131:31 [INFO] [stdout] | [INFO] [stdout] 131 | return Ok(wsize); [INFO] [stdout] | -- ^^^^^ expected `Avaliable`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 131 | return Ok(wsize); [INFO] [stdout] | ^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `Result, std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 196 | c [INFO] [stdout] | ^ expected `Result, Error>`, found `Connection` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, std::io::Error>` [INFO] [stdout] found struct `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ -------------- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `Iface`, found `&mut _` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Iface` [INFO] [stdout] found mutable reference `&mut _` [INFO] [stdout] note: to declare a mutable parameter use: `mut nic` [INFO] [stdout] --> src/tcp.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: to take parameter `nic` by reference, move `&mut` to the type [INFO] [stdout] | [INFO] [stdout] 203 - pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] 203 + pub fn on_tick(&mut self, nic: &mut tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | return Ok(0); [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | return Ok(0); [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | return Ok(0); [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:141:24 [INFO] [stdout] | [INFO] [stdout] 141 | return Ok(0); [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(0) [INFO] [stdout] | -- ^ expected `Avaliable`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/tcp.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(0) [INFO] [stdout] | ^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/023084804e5e8ea42877451c2b3030e7050281cc/library/core/src/result.rs:506:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `i32: AsFd` is not satisfied [INFO] [stdout] --> src/lib.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut pfd = [nix::poll::PollFd::new( [INFO] [stdout] | ---------------------- required by a bound introduced by this call [INFO] [stdout] 74 | &(nic.as_raw_fd()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `AsFd` is not implemented for `i32` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsFd`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] BorrowedFd<'_> [INFO] [stdout] Box [INFO] [stdout] ChildStderr [INFO] [stdout] ChildStdin [INFO] [stdout] ChildStdout [INFO] [stdout] and 21 others [INFO] [stdout] note: required by a bound in `PollFd::<'fd>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/poll.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(fd: &'fd Fd, events: PollFlags) -> PollFd<'fd> { [INFO] [stdout] | ^^^^ required by this bound in `PollFd::<'fd>::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:164:32 [INFO] [stdout] | [INFO] [stdout] 164 | if tcp_header.syn() == 0 { [INFO] [stdout] | ---------------- ^ expected `bool`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0069]: `return;` in a function whose return type is not `()` [INFO] [stdout] --> src/tcp.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `io::Result>` because of this return type [INFO] [stdout] 164 | if tcp_header.syn() == 0 { [INFO] [stdout] 165 | return; [INFO] [stdout] | ^^^^^^ return type is not `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | let n = nix::poll::poll(&pfd, 10).map_err(|e| e).unwrap()?; [INFO] [stdout] | --------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [PollFd<'_>]` [INFO] [stdout] found reference `&[PollFd<'_>; 1]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/poll.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn poll(fds: &mut [PollFd], timeout: libc::c_int) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | let n = nix::poll::poll(&pfd, 10).map_err(|e| e).unwrap()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `Result, std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 196 | c [INFO] [stdout] | ^ expected `Result, Error>`, found `Connection` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, std::io::Error>` [INFO] [stdout] found struct `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ -------------- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `Iface`, found `&mut _` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Iface` [INFO] [stdout] found mutable reference `&mut _` [INFO] [stdout] note: to declare a mutable parameter use: `mut nic` [INFO] [stdout] --> src/tcp.rs:203:31 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: to take parameter `nic` by reference, move `&mut` to the type [INFO] [stdout] | [INFO] [stdout] 203 - pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] 203 + pub fn on_tick(&mut self, nic: &mut tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | con.on_tick(&mut nic)?; [INFO] [stdout] | ------- ^^^^^^^^ expected `Iface`, found `&mut Iface` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/tcp.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ ------------------------ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 82 - con.on_tick(&mut nic)?; [INFO] [stdout] 82 + con.on_tick(nic)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `i32: AsFd` is not satisfied [INFO] [stdout] --> src/lib.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut pfd = [nix::poll::PollFd::new( [INFO] [stdout] | ---------------------- required by a bound introduced by this call [INFO] [stdout] 74 | &(nic.as_raw_fd()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `AsFd` is not implemented for `i32` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsFd`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] BorrowedFd<'_> [INFO] [stdout] Box [INFO] [stdout] ChildStderr [INFO] [stdout] ChildStdin [INFO] [stdout] ChildStdout [INFO] [stdout] and 21 others [INFO] [stdout] note: required by a bound in `PollFd::<'fd>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/poll.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(fd: &'fd Fd, events: PollFlags) -> PollFd<'fd> { [INFO] [stdout] | ^^^^ required by this bound in `PollFd::<'fd>::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | ... if let Some(con) = Connection::accept(&nic, ipheader, tcpheader) [INFO] [stdout] | ^^^^^^^^^ --------------------------------------------- this expression has type `Result, std::io::Error>` [INFO] [stdout] | | [INFO] [stdout] | expected `Result, Error>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, std::io::Error>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: try wrapping the pattern in `Ok` [INFO] [stdout] | [INFO] [stdout] 124 | if let Ok(Some(con)) = Connection::accept(&nic, ipheader, tcpheader) [INFO] [stdout] | +++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | let n = nix::poll::poll(&pfd, 10).map_err(|e| e).unwrap()?; [INFO] [stdout] | --------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [PollFd<'_>]` [INFO] [stdout] found reference `&[PollFd<'_>; 1]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/poll.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn poll(fds: &mut [PollFd], timeout: libc::c_int) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | let n = nix::poll::poll(&pfd, 10).map_err(|e| e).unwrap()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | con.on_tick(&mut nic)?; [INFO] [stdout] | ------- ^^^^^^^^ expected `Iface`, found `&mut Iface` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/tcp.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn on_tick(&mut self, &mut nic: tun_tap::Iface) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^ ------------------------ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 82 - con.on_tick(&mut nic)?; [INFO] [stdout] 82 + con.on_tick(nic)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | ... if let Some(con) = Connection::accept(&nic, ipheader, tcpheader) [INFO] [stdout] | ^^^^^^^^^ --------------------------------------------- this expression has type `Result, std::io::Error>` [INFO] [stdout] | | [INFO] [stdout] | expected `Result, Error>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, std::io::Error>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: try wrapping the pattern in `Ok` [INFO] [stdout] | [INFO] [stdout] 124 | if let Ok(Some(con)) = Connection::accept(&nic, ipheader, tcpheader) [INFO] [stdout] | +++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let i = self [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cm` [INFO] [stdout] --> src/lib.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut cm = self.interfacehandlle.manager_mutex.lock().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let mut cm = self.interfacehandlle.manager_mutex.lock().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tail` [INFO] [stdout] --> src/lib.rs:245:28 [INFO] [stdout] | [INFO] [stdout] 245 | let (head, tail) = c.incoming.as_slices(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0069, E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0069`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let i = self [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cm` [INFO] [stdout] --> src/lib.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut cm = self.interfacehandlle.manager_mutex.lock().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let mut cm = self.interfacehandlle.manager_mutex.lock().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp_rust` (lib) due to 15 previous errors; 7 warnings emitted [INFO] [stdout] warning: unused variable: `tail` [INFO] [stdout] --> src/lib.rs:245:28 [INFO] [stdout] | [INFO] [stdout] 245 | let (head, tail) = c.incoming.as_slices(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tail` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0069, E0277, E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0069`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp_rust` (lib test) due to 15 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c86d487c5f21f5b45ad4177d888b114a5981abf7e71c5e3c4fdb631a9fa20f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c86d487c5f21f5b45ad4177d888b114a5981abf7e71c5e3c4fdb631a9fa20f68", kill_on_drop: false }` [INFO] [stdout] c86d487c5f21f5b45ad4177d888b114a5981abf7e71c5e3c4fdb631a9fa20f68