[INFO] cloning repository https://github.com/superggn/trust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/superggn/trust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperggn%2Ftrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperggn%2Ftrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5bd620c0306caa28192d66d97c094289c4be04b4 [INFO] checking superggn/trust against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperggn%2Ftrust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/superggn/trust [INFO] finished tweaking git repo https://github.com/superggn/trust [INFO] tweaked toml for git repo https://github.com/superggn/trust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/superggn/trust on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/superggn/trust 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scoped-tls v0.1.2 [INFO] [stderr] Downloaded etherparse v0.8.3 [INFO] [stderr] Downloaded tun-tap v0.1.4 [INFO] [stderr] Downloaded cc v1.0.84 [INFO] [stderr] Downloaded tokio-core v0.1.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca711f8188c66f5f98d9eee582ce22e69d5a567d348e91614398fd8153dfc13f [INFO] running `Command { std: "docker" "start" "-a" "ca711f8188c66f5f98d9eee582ce22e69d5a567d348e91614398fd8153dfc13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca711f8188c66f5f98d9eee582ce22e69d5a567d348e91614398fd8153dfc13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca711f8188c66f5f98d9eee582ce22e69d5a567d348e91614398fd8153dfc13f", kill_on_drop: false }` [INFO] [stdout] ca711f8188c66f5f98d9eee582ce22e69d5a567d348e91614398fd8153dfc13f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c0e6c041f19a39871943495619543e781f2408714fa5bb56962cc1ec0c7132c [INFO] running `Command { std: "docker" "start" "-a" "1c0e6c041f19a39871943495619543e781f2408714fa5bb56962cc1ec0c7132c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking etherparse v0.8.3 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling semver v0.9.0 [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 rustc_version v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking tokio-sync v0.1.8 [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 tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling cc v1.0.84 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Compiling tun-tap v0.1.4 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking trust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no variant or associated item named `SynRcvd` found for enum `State` in the current scope [INFO] [stdout] --> src/tcp.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 4 | enum State { [INFO] [stdout] | ---------- variant or associated item `SynRcvd` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 88 | state: State::SynRcvd, [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `State` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | una: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `SynRcvd` found for enum `State` in the current scope [INFO] [stdout] --> src/tcp.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 4 | enum State { [INFO] [stdout] | ---------- variant or associated item `SynRcvd` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 88 | state: State::SynRcvd, [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `State` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | nxt: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:92:22 [INFO] [stdout] | [INFO] [stdout] 92 | wnd: (), [INFO] [stdout] | ^^ expected `u16`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | up: (), [INFO] [stdout] | ^^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | wl1: (), [INFO] [stdout] | ^^ expected `usize`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | wl2: (), [INFO] [stdout] | ^^ expected `usize`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | iss: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | nxt: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | wnd: (), [INFO] [stdout] | ^^ expected `u16`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | up: (), [INFO] [stdout] | ^^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:102:22 [INFO] [stdout] | [INFO] [stdout] 102 | irs: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | una: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | nxt: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:92:22 [INFO] [stdout] | [INFO] [stdout] 92 | wnd: (), [INFO] [stdout] | ^^ expected `u16`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | up: (), [INFO] [stdout] | ^^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | wl1: (), [INFO] [stdout] | ^^ expected `usize`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | wl2: (), [INFO] [stdout] | ^^ expected `usize`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8]: std::io::Write` is not satisfied [INFO] [stdout] --> src/tcp.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ the trait `std::io::Write` is not implemented for `[u8]` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Ipv4Header::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/internet/ipv4.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn write(&self, writer: &mut T) -> Result<(), WriteError> { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Ipv4Header::write` [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(&mut unwritten); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | iss: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tcp.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by a bound in `Ipv4Header::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/internet/ipv4.rs:225:33 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn write(&self, writer: &mut T) -> Result<(), WriteError> { [INFO] [stdout] | ^^^^^ required by this bound in `Ipv4Header::write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | nxt: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | wnd: (), [INFO] [stdout] | ^^ expected `u16`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | up: (), [INFO] [stdout] | ^^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:102:22 [INFO] [stdout] | [INFO] [stdout] 102 | irs: (), [INFO] [stdout] | ^^ expected `u32`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8]: std::io::Write` is not satisfied [INFO] [stdout] --> src/tcp.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ the trait `std::io::Write` is not implemented for `[u8]` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `TcpHeader::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/transport/tcp.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn write(&self, writer: &mut T) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `TcpHeader::write` [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(&mut unwritten); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tcp.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by a bound in `TcpHeader::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/transport/tcp.rs:332:33 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn write(&self, writer: &mut T) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^ required by this bound in `TcpHeader::write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 81 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `Result, std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 154 | nic.send(&buf[..unwritten]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result, Error>`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, _>` [INFO] [stdout] found enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8]: std::io::Write` is not satisfied [INFO] [stdout] --> src/tcp.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ the trait `std::io::Write` is not implemented for `[u8]` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Ipv4Header::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/internet/ipv4.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn write(&self, writer: &mut T) -> Result<(), WriteError> { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Ipv4Header::write` [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(&mut unwritten); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tcp.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | ip.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by a bound in `Ipv4Header::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/internet/ipv4.rs:225:33 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn write(&self, writer: &mut T) -> Result<(), WriteError> { [INFO] [stdout] | ^^^^^ required by this bound in `Ipv4Header::write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8]: std::io::Write` is not satisfied [INFO] [stdout] --> src/tcp.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ the trait `std::io::Write` is not implemented for `[u8]` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `TcpHeader::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/transport/tcp.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn write(&self, writer: &mut T) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `TcpHeader::write` [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(&mut unwritten); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tcp.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | syn_ack.write(unwritten); [INFO] [stdout] | ----- ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by a bound in `TcpHeader::write` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/etherparse-0.8.3/src/transport/tcp.rs:332:33 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn write(&self, writer: &mut T) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^ required by this bound in `TcpHeader::write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 81 | ) -> io::Result> { [INFO] [stdout] | ------------------------ expected `Result, std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 154 | nic.send(&buf[..unwritten]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result, Error>`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, _>` [INFO] [stdout] found enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `or_default` exists for enum `std::collections::hash_map::Entry<'_, Quad, Connection>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 44 | / connections [INFO] [stdout] 45 | | .entry(Quad { [INFO] [stdout] 46 | | src: (src, tcp_header.source_port()), [INFO] [stdout] 47 | | dst: (dst, tcp_header.destination_port()), [INFO] [stdout] 48 | | }) [INFO] [stdout] 49 | | .or_default() [INFO] [stdout] | | -^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | |_____________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/tcp.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Connection { [INFO] [stdout] | --------------------- doesn't satisfy `Connection: Default` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Connection: Default` [INFO] [stdout] help: consider annotating `Connection` with `#[derive(Default)]` [INFO] [stdout] --> src/tcp.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 + #[derive(Default)] [INFO] [stdout] 13 | pub struct Connection { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 16 | / loop { [INFO] [stdout] 17 | | // 每次 recv 就是往 buf 里面填充数据帧 [INFO] [stdout] 18 | | let nbytes = nic.recv(&mut buf[..])?; [INFO] [stdout] 19 | | let eth_flags = u16::from_be_bytes([buf[0], buf[1]]); [INFO] [stdout] ... | [INFO] [stdout] 68 | | println!("nic: {:?}", nic); [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 70 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/tcp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `or_default` exists for enum `std::collections::hash_map::Entry<'_, Quad, Connection>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 44 | / connections [INFO] [stdout] 45 | | .entry(Quad { [INFO] [stdout] 46 | | src: (src, tcp_header.source_port()), [INFO] [stdout] 47 | | dst: (dst, tcp_header.destination_port()), [INFO] [stdout] 48 | | }) [INFO] [stdout] 49 | | .or_default() [INFO] [stdout] | | -^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | |_____________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/tcp.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Connection { [INFO] [stdout] | --------------------- doesn't satisfy `Connection: Default` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Connection: Default` [INFO] [stdout] help: consider annotating `Connection` with `#[derive(Default)]` [INFO] [stdout] --> src/tcp.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 + #[derive(Default)] [INFO] [stdout] 13 | pub struct Connection { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 16 | / loop { [INFO] [stdout] 17 | | // 每次 recv 就是往 buf 里面填充数据帧 [INFO] [stdout] 18 | | let nbytes = nic.recv(&mut buf[..])?; [INFO] [stdout] 19 | | let eth_flags = u16::from_be_bytes([buf[0], buf[1]]); [INFO] [stdout] ... | [INFO] [stdout] 68 | | println!("nic: {:?}", nic); [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 70 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/tcp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trust` (bin "trust" test) due to 18 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `trust` (bin "trust") due to 18 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c0e6c041f19a39871943495619543e781f2408714fa5bb56962cc1ec0c7132c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c0e6c041f19a39871943495619543e781f2408714fa5bb56962cc1ec0c7132c", kill_on_drop: false }` [INFO] [stdout] 1c0e6c041f19a39871943495619543e781f2408714fa5bb56962cc1ec0c7132c