[INFO] cloning repository https://github.com/tyler569/tcp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tyler569/tcp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyler569%2Ftcp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyler569%2Ftcp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02fceed1e83d5ff102e3f72952985abebf4d919d [INFO] checking tyler569/tcp against try#51de2e90f91fdec6cf64ff542a4e15b9c177a797 for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyler569%2Ftcp" "/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/tyler569/tcp [INFO] finished tweaking git repo https://github.com/tyler569/tcp [INFO] tweaked toml for git repo https://github.com/tyler569/tcp written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tyler569/tcp on toolchain 51de2e90f91fdec6cf64ff542a4e15b9c177a797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tyler569/tcp 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" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "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 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ifstructs v0.1.1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddfee314509034c66f1946b8c451713e36ad26d43ca3e65664409b36c5ba20f4 [INFO] running `Command { std: "docker" "start" "-a" "ddfee314509034c66f1946b8c451713e36ad26d43ca3e65664409b36c5ba20f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddfee314509034c66f1946b8c451713e36ad26d43ca3e65664409b36c5ba20f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddfee314509034c66f1946b8c451713e36ad26d43ca3e65664409b36c5ba20f4", kill_on_drop: false }` [INFO] [stdout] ddfee314509034c66f1946b8c451713e36ad26d43ca3e65664409b36c5ba20f4 [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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97aa252a50c810162911d36fee4314b9cc209922ea733621c063a2c842ad2a12 [INFO] running `Command { std: "docker" "start" "-a" "97aa252a50c810162911d36fee4314b9cc209922ea733621c063a2c842ad2a12", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Checking ifstructs v0.1.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking tcp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ones_complement_sum` [INFO] [stdout] --> src/udp.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{network_checksum_2part, ones_complement_sum, AsSlice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ones_complement_sum` [INFO] [stdout] --> src/udp.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{network_checksum_2part, ones_complement_sum, AsSlice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/ip.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(header.total_len, 0x0073); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/ip.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | assert_eq!(header.total_len, 0x7300); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut rng = rand::thread_rng(); [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: variable does not need to be mutable [INFO] [stdout] --> src/udp.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let mut udp_header = [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: multiple associated constants are never used [INFO] [stdout] --> src/icmp.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl IcmpType { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 8 | pub const ECHO_REPLY: Self = Self(0); [INFO] [stdout] 9 | pub const DESTINATION_UNREACHABLE: Self = Self(3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub const SOURCE_QUENCH: Self = Self(4); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub const REDIRECT_MESSAGE: Self = Self(5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub const ECHO_REQUEST: Self = Self(8); [INFO] [stdout] 13 | pub const ROUTER_ADVERTISEMENT: Self = Self(9); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub const ROUTER_SOLICITATION: Self = Self(10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub const TIME_EXCEEDED: Self = Self(11); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub const BAD_IP_HEADER: Self = Self(12); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ip.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 38 | impl IpHeader { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | pub const RESERVED_BIT: u16 = 0x8000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 40 | pub const DF_BIT: u16 = 0x4000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub const MF_BIT: u16 = 0x2000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | [INFO] [stdout] 43 | pub fn version(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn reserved_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn df_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn mf_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn frag_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PacketView` is never constructed [INFO] [stdout] --> src/packet.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PacketView<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `data_mut` is never used [INFO] [stdout] --> src/packet.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Packet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn data_mut(&mut self) -> Option<&mut [u8]> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { INTERFACE.as_mut().unwrap().read(&mut buffer) }.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | / INTERFACE [INFO] [stdout] 55 | | .as_mut() [INFO] [stdout] | |_____________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/main.rs:260:34 [INFO] [stdout] | [INFO] [stdout] 260 | fn as_slice<'a>(&'a self) -> &[u8] [INFO] [stdout] | -- ^^^^^ the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 260 | fn as_slice<'a>(&'a self) -> &'a [u8] [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp` (bin "tcp" test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "97aa252a50c810162911d36fee4314b9cc209922ea733621c063a2c842ad2a12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97aa252a50c810162911d36fee4314b9cc209922ea733621c063a2c842ad2a12", kill_on_drop: false }` [INFO] [stdout] 97aa252a50c810162911d36fee4314b9cc209922ea733621c063a2c842ad2a12