[INFO] cloning repository https://github.com/Cirilus/TCPParser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Cirilus/TCPParser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCirilus%2FTCPParser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCirilus%2FTCPParser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0168e96bd887a76c18266972422666c21cd2a19b [INFO] checking Cirilus/TCPParser against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCirilus%2FTCPParser" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Cirilus/TCPParser [INFO] finished tweaking git repo https://github.com/Cirilus/TCPParser [INFO] tweaked toml for git repo https://github.com/Cirilus/TCPParser written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Cirilus/TCPParser on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Cirilus/TCPParser 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3761ffb621bf278247b6795aac5b67b4e2cf7533bc2e1bb277bd80361ddb5e2b [INFO] running `Command { std: "docker" "start" "-a" "3761ffb621bf278247b6795aac5b67b4e2cf7533bc2e1bb277bd80361ddb5e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3761ffb621bf278247b6795aac5b67b4e2cf7533bc2e1bb277bd80361ddb5e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3761ffb621bf278247b6795aac5b67b4e2cf7533bc2e1bb277bd80361ddb5e2b", kill_on_drop: false }` [INFO] [stdout] 3761ffb621bf278247b6795aac5b67b4e2cf7533bc2e1bb277bd80361ddb5e2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5a6376da1d2b4d7d72a1ad6123a3702e1cdcce9249ecb649d9e3b158e1f8ec7 [INFO] running `Command { std: "docker" "start" "-a" "b5a6376da1d2b4d7d72a1ad6123a3702e1cdcce9249ecb649d9e3b158e1f8ec7", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Compiling phf_generator v0.11.2 [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-fs v0.1.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling tun-tap v0.1.4 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking thiserror v1.0.56 [INFO] [stderr] Checking tcp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut count_packet = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count_packet` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut count_packet = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let size = iface.recv(&mut buf).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ErrVersion` and `ErrorIHL` are never constructed [INFO] [stdout] --> src/parsers/errors.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum IP4Error { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | ErrVersion, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | ErrorIHL, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IP4Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/tcp.rs:5:61 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_slice(slice: &[u8]) -> Result{ [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 6 | | let source_port = u16::from_be_bytes([slice[0], slice[1]]); [INFO] [stdout] 7 | | let destination_port = u16::from_be_bytes([slice[2], slice[3]]); [INFO] [stdout] 8 | | let sequence_number = u32::from_be_bytes([slice[4], slice[5], slice[6], slice[7]]); [INFO] [stdout] ... | [INFO] [stdout] 28 | | }) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp` (bin "tcp") due to 8 previous errors; 4 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/tcp.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / Ok(TCP{ [INFO] [stdout] 18 | | source_port, [INFO] [stdout] 19 | | destination_port, [INFO] [stdout] 20 | | sequence_number, [INFO] [stdout] ... | [INFO] [stdout] 27 | | urgent_pointer, [INFO] [stdout] 28 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/ethernet.rs:5:72 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_slice(slice: &[u8]) -> Result { [INFO] [stdout] | ________________________________________________________________________^ [INFO] [stdout] 6 | | let flags = u16::from_be_bytes([slice[0], slice[1]]); [INFO] [stdout] 7 | | let protocol = u16::from_be_bytes([slice[2], slice[3]]); [INFO] [stdout] 8 | | Ok(Ethernet{ [INFO] [stdout] ... | [INFO] [stdout] 11 | | }) [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/ethernet.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | / Ok(Ethernet{ [INFO] [stdout] 9 | | flags, [INFO] [stdout] 10 | | protocol, [INFO] [stdout] 11 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, Ethernet> [INFO] [stdout] --> src/parsers/packet.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let eth = Ethernet::from_slice(&slice[..5])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/packet.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let eth = Ethernet::from_slice(&slice[..5])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, TCP> [INFO] [stdout] --> src/parsers/packet.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | let tcp = TCP::from_slice(&slice[24..])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/packet.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | let tcp = TCP::from_slice(&slice[24..])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut count_packet = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count_packet` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut count_packet = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let size = iface.recv(&mut buf).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ErrVersion` and `ErrorIHL` are never constructed [INFO] [stdout] --> src/parsers/errors.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum IP4Error { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | ErrVersion, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | ErrorIHL, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IP4Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/tcp.rs:5:61 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_slice(slice: &[u8]) -> Result{ [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 6 | | let source_port = u16::from_be_bytes([slice[0], slice[1]]); [INFO] [stdout] 7 | | let destination_port = u16::from_be_bytes([slice[2], slice[3]]); [INFO] [stdout] 8 | | let sequence_number = u32::from_be_bytes([slice[4], slice[5], slice[6], slice[7]]); [INFO] [stdout] ... | [INFO] [stdout] 28 | | }) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/tcp.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | / Ok(TCP{ [INFO] [stdout] 18 | | source_port, [INFO] [stdout] 19 | | destination_port, [INFO] [stdout] 20 | | sequence_number, [INFO] [stdout] ... | [INFO] [stdout] 27 | | urgent_pointer, [INFO] [stdout] 28 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/ethernet.rs:5:72 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_slice(slice: &[u8]) -> Result { [INFO] [stdout] | ________________________________________________________________________^ [INFO] [stdout] 6 | | let flags = u16::from_be_bytes([slice[0], slice[1]]); [INFO] [stdout] 7 | | let protocol = u16::from_be_bytes([slice[2], slice[3]]); [INFO] [stdout] 8 | | Ok(Ethernet{ [INFO] [stdout] ... | [INFO] [stdout] 11 | | }) [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/ethernet.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | / Ok(Ethernet{ [INFO] [stdout] 9 | | flags, [INFO] [stdout] 10 | | protocol, [INFO] [stdout] 11 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, Ethernet> [INFO] [stdout] --> src/parsers/packet.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let eth = Ethernet::from_slice(&slice[..5])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/packet.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let eth = Ethernet::from_slice(&slice[..5])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, TCP> [INFO] [stdout] --> src/parsers/packet.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | let tcp = TCP::from_slice(&slice[24..])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/parsers/packet.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | let tcp = TCP::from_slice(&slice[24..])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp` (bin "tcp" test) due to 8 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b5a6376da1d2b4d7d72a1ad6123a3702e1cdcce9249ecb649d9e3b158e1f8ec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5a6376da1d2b4d7d72a1ad6123a3702e1cdcce9249ecb649d9e3b158e1f8ec7", kill_on_drop: false }` [INFO] [stdout] b5a6376da1d2b4d7d72a1ad6123a3702e1cdcce9249ecb649d9e3b158e1f8ec7