[INFO] cloning repository https://github.com/jipram017/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/jipram017/tcp-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjipram017%2Ftcp-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjipram017%2Ftcp-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 35b37012c0b0ceab71cf2381c3a27f3cd8cc9c77 [INFO] checking jipram017/tcp-rust against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjipram017%2Ftcp-rust" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jipram017/tcp-rust on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jipram017/tcp-rust [INFO] finished tweaking git repo https://github.com/jipram017/tcp-rust [INFO] tweaked toml for git repo https://github.com/jipram017/tcp-rust written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/jipram017/tcp-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c80e1b4e93b143d7b2145deef3da90d6e1e3bf4bccc30c7790c4e2a3d7d35a97 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c80e1b4e93b143d7b2145deef3da90d6e1e3bf4bccc30c7790c4e2a3d7d35a97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c80e1b4e93b143d7b2145deef3da90d6e1e3bf4bccc30c7790c4e2a3d7d35a97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c80e1b4e93b143d7b2145deef3da90d6e1e3bf4bccc30c7790c4e2a3d7d35a97", kill_on_drop: false }` [INFO] [stdout] c80e1b4e93b143d7b2145deef3da90d6e1e3bf4bccc30c7790c4e2a3d7d35a97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f078800d60ab49934a3158c0479645e0849014fc67ff1f0e066625311033210 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9f078800d60ab49934a3158c0479645e0849014fc67ff1f0e066625311033210", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking etherparse v0.9.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-queue v0.2.2 [INFO] [stderr] Compiling tun-tap v0.1.2 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-uds v0.2.6 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-core v0.1.17 [INFO] [stderr] Checking trust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 18 | / loop { [INFO] [stdout] 19 | | let nbytes = nic.recv(&mut buf [..])?; [INFO] [stdout] 20 | | //let eth_flags = u16::from_be_bytes([buf[0], buf[1]]); [INFO] [stdout] 21 | | //let eth_proto = u16::from_be_bytes([buf[2], buf[3]]); [INFO] [stdout] ... | [INFO] [stdout] 63 | | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 65 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 18 | / loop { [INFO] [stdout] 19 | | let nbytes = nic.recv(&mut buf [..])?; [INFO] [stdout] 20 | | //let eth_flags = u16::from_be_bytes([buf[0], buf[1]]); [INFO] [stdout] 21 | | //let eth_proto = u16::from_be_bytes([buf[2], buf[3]]); [INFO] [stdout] ... | [INFO] [stdout] 63 | | [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 65 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iph` [INFO] [stdout] --> src/tcp.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | iph: etherparse::Ipv4HeaderSlice<'a>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_iph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/tcp.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut buf = [0u8; 1500]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/tcp.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | data: &'a [u8], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iph` [INFO] [stdout] --> src/tcp.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | iph: etherparse::Ipv4HeaderSlice<'a>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_iph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/tcp.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut buf = [0u8; 1500]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/tcp.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | data: &'a [u8], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | Entry::Vacant(mut e) => { [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: variable does not need to be mutable [INFO] [stdout] --> src/tcp.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut buf = [0u8; 1500]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | Entry::Vacant(mut e) => { [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: variable does not need to be mutable [INFO] [stdout] --> src/tcp.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut buf = [0u8; 1500]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_synchronized` [INFO] [stdout] --> src/tcp.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | fn is_synchronized(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wnd` [INFO] [stdout] --> src/tcp.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | wnd: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `up` [INFO] [stdout] --> src/tcp.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | up: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wl1` [INFO] [stdout] --> src/tcp.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | wl1: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wl2` [INFO] [stdout] --> src/tcp.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | wl2: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `up` [INFO] [stdout] --> src/tcp.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | up: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `irs` [INFO] [stdout] --> src/tcp.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | irs: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_rst` [INFO] [stdout] --> src/tcp.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn send_rst(&mut self, nic: &mut tun_tap::Iface) -> io::Result<()>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_synchronized` [INFO] [stdout] --> src/tcp.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | fn is_synchronized(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wnd` [INFO] [stdout] --> src/tcp.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | wnd: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `up` [INFO] [stdout] --> src/tcp.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | up: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wl1` [INFO] [stdout] --> src/tcp.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | wl1: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wl2` [INFO] [stdout] --> src/tcp.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | wl2: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `up` [INFO] [stdout] --> src/tcp.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | up: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `irs` [INFO] [stdout] --> src/tcp.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | irs: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_rst` [INFO] [stdout] --> src/tcp.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn send_rst(&mut self, nic: &mut tun_tap::Iface) -> io::Result<()>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 89 | self.ip.set_payload_len(size - self.ip.header_len() as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | self.ip.write(&mut unwritten); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:96:7 [INFO] [stdout] | [INFO] [stdout] 96 | self.tcp.write(&mut unwritten); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 89 | self.ip.set_payload_len(size - self.ip.header_len() as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | self.ip.write(&mut unwritten); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tcp.rs:96:7 [INFO] [stdout] | [INFO] [stdout] 96 | self.tcp.write(&mut unwritten); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.72s [INFO] running `Command { std: "docker" "inspect" "9f078800d60ab49934a3158c0479645e0849014fc67ff1f0e066625311033210", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f078800d60ab49934a3158c0479645e0849014fc67ff1f0e066625311033210", kill_on_drop: false }` [INFO] [stdout] 9f078800d60ab49934a3158c0479645e0849014fc67ff1f0e066625311033210