[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 against try#987a165cfab916796a8315782b83ac460a651ce2 for pr-145262
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidzk%2Ftcp_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[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-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Liquidzk/tcp_rust on toolchain 987a165cfab916796a8315782b83ac460a651ce2
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+987a165cfab916796a8315782b83ac460a651ce2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] checking Liquidzk/tcp_rust against try#987a165cfab916796a8315782b83ac460a651ce2 for pr-145262
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidzk%2Ftcp_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[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-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Liquidzk/tcp_rust on toolchain 987a165cfab916796a8315782b83ac460a651ce2
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+987a165cfab916796a8315782b83ac460a651ce2" "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] [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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ee1a44fcbec01cb3abe7a020a48c397b8cd83705326de5551a82f5ed7551b898
[INFO] running `Command { std: "docker" "start" "-a" "ee1a44fcbec01cb3abe7a020a48c397b8cd83705326de5551a82f5ed7551b898", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ee1a44fcbec01cb3abe7a020a48c397b8cd83705326de5551a82f5ed7551b898", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ee1a44fcbec01cb3abe7a020a48c397b8cd83705326de5551a82f5ed7551b898", kill_on_drop: false }`
[INFO] [stdout] ee1a44fcbec01cb3abe7a020a48c397b8cd83705326de5551a82f5ed7551b898
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 854247090fa44a7c726984406989880028535d0479fe34536b7eec40455581e7
[INFO] running `Command { std: "docker" "start" "-a" "854247090fa44a7c726984406989880028535d0479fe34536b7eec40455581e7", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]     Checking futures v0.1.31
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling memoffset v0.5.6
[INFO] [stderr]     Checking lock_api v0.3.4
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]     Checking fnv v1.0.7
[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 etherparse v0.13.0
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]     Checking smallvec v0.6.14
[INFO] [stderr]    Compiling parking_lot_core v0.6.3
[INFO] [stderr]    Compiling parking_lot v0.9.0
[INFO] [stderr]     Checking crossbeam-queue v0.2.3
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]     Checking crossbeam-deque v0.7.4
[INFO] [stderr]     Checking tokio-executor v0.1.10
[INFO] [stderr]     Checking tokio-sync v0.1.8
[INFO] [stderr]     Checking tokio-current-thread v0.1.7
[INFO] [stderr]     Checking tokio-timer v0.2.13
[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 mio-uds v0.6.8
[INFO] [stderr]     Checking tokio-reactor v0.1.12
[INFO] [stderr]     Checking tokio-codec v0.1.2
[INFO] [stderr]     Checking tokio-fs v0.1.7
[INFO] [stderr]     Checking tokio-uds v0.2.7
[INFO] [stderr]     Checking tokio-udp v0.1.6
[INFO] [stderr]     Checking tokio-tcp v0.1.4
[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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/num/f32.rs:360: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: `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[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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/num/f32.rs:360: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: `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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553:5
[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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553: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[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/987a165cfab916796a8315782b83ac460a651ce2/library/core/src/result.rs:553:5
[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<Option<Self>> {
[INFO] [stdout]     |          ------------------------ expected `io::Result<Option<Self>>` 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] help: give the `return` a value of the expected type
[INFO] [stdout]     |
[INFO] [stdout] 165 |             return Ok(None);
[INFO] [stdout]     |                    ++++++++
[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<Option<Self>> {
[INFO] [stdout]     |          ------------------------ expected `io::Result<Option<Self>>` 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] help: give the `return` a value of the expected type
[INFO] [stdout]     |
[INFO] [stdout] 165 |             return Ok(None);
[INFO] [stdout]     |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/tcp.rs:196:9
[INFO] [stdout]     |
[INFO] [stdout] 163 |     ) -> io::Result<Option<Self>> {
[INFO] [stdout]     |          ------------------------ expected `Result<Option<Connection>, std::io::Error>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 196 |         c
[INFO] [stdout]     |         ^ expected `Result<Option<Connection>, Error>`, found `Connection`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Connection>, std::io::Error>`
[INFO] [stdout]              found struct `Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/tcp.rs:196:9
[INFO] [stdout]     |
[INFO] [stdout] 163 |     ) -> io::Result<Option<Self>> {
[INFO] [stdout]     |          ------------------------ expected `Result<Option<Connection>, std::io::Error>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 196 |         c
[INFO] [stdout]     |         ^ expected `Result<Option<Connection>, Error>`, found `Connection`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Connection>, 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: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[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<T>
[INFO] [stdout]              BorrowedFd<'_>
[INFO] [stdout]              Box<T>
[INFO] [stdout]              ChildStderr
[INFO] [stdout]              ChildStdin
[INFO] [stdout]              ChildStdout
[INFO] [stdout]            and 24 others
[INFO] [stdout] note: required by a bound in `PollFd::<'fd>::new`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.27.1/src/poll.rs:39:20
[INFO] [stdout]    |
[INFO] [stdout] 39 |     pub fn new<Fd: AsFd>(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: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-1949cf8c6b5b557f/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<libc::c_int> {
[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<T>
[INFO] [stdout]              BorrowedFd<'_>
[INFO] [stdout]              Box<T>
[INFO] [stdout]              ChildStderr
[INFO] [stdout]              ChildStdin
[INFO] [stdout]              ChildStdout
[INFO] [stdout]            and 24 others
[INFO] [stdout] note: required by a bound in `PollFd::<'fd>::new`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.27.1/src/poll.rs:39:20
[INFO] [stdout]    |
[INFO] [stdout] 39 |     pub fn new<Fd: AsFd>(fd: &'fd Fd, events: PollFlags) -> PollFd<'fd> {
[INFO] [stdout]    |                    ^^^^ required by this bound in `PollFd::<'fd>::new`
[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: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-1949cf8c6b5b557f/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<libc::c_int> {
[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<Option<Connection>, std::io::Error>`
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              expected `Result<Option<Connection>, Error>`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Connection>, 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: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<Option<Connection>, std::io::Error>`
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              expected `Result<Option<Connection>, Error>`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Connection>, 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: `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: 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] 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] 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] 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) due to 14 previous errors; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `tcp_rust` (lib test) due to 14 previous errors; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "854247090fa44a7c726984406989880028535d0479fe34536b7eec40455581e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "854247090fa44a7c726984406989880028535d0479fe34536b7eec40455581e7", kill_on_drop: false }`
[INFO] [stdout] 854247090fa44a7c726984406989880028535d0479fe34536b7eec40455581e7
