[INFO] fetching crate carp 0.1.0... [INFO] checking carp-0.1.0 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] extracting crate carp 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate carp 0.1.0 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate carp 0.1.0 [INFO] finished tweaking crates.io crate carp 0.1.0 [INFO] tweaked toml for crates.io crate carp 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 34 packages to latest compatible versions [INFO] [stderr] Adding byteorder v0.4.2 (available: v1.5.0) [INFO] [stderr] Adding env_logger v0.3.5 (available: v0.11.5) [INFO] [stderr] Adding log v0.3.9 (available: v0.4.22) [INFO] [stderr] Adding nix v0.5.1 (available: v0.29.0) [INFO] [stderr] Adding pcap v0.5.7 (available: v2.2.0) [INFO] [stderr] Adding rand v0.3.23 (available: v0.8.5) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gcc v0.3.55 [INFO] [stderr] Downloaded byteorder v0.4.2 [INFO] [stderr] Downloaded pcap v0.5.7 [INFO] [stderr] Downloaded bitflags v0.4.0 [INFO] [stderr] Downloaded nix v0.5.1 [INFO] [stderr] Downloaded rust-crypto v0.2.36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b85e0084c7292d02be07b0b7d936768dde1afce6b413c2b743c2ebc189b0d5f7 [INFO] running `Command { std: "docker" "start" "-a" "b85e0084c7292d02be07b0b7d936768dde1afce6b413c2b743c2ebc189b0d5f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b85e0084c7292d02be07b0b7d936768dde1afce6b413c2b743c2ebc189b0d5f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b85e0084c7292d02be07b0b7d936768dde1afce6b413c2b743c2ebc189b0d5f7", kill_on_drop: false }` [INFO] [stdout] b85e0084c7292d02be07b0b7d936768dde1afce6b413c2b743c2ebc189b0d5f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b0f2d2c7fbab484d6f04d31a5569ec33ef11567c75a6bdac05aafbf3c45f356 [INFO] running `Command { std: "docker" "start" "-a" "0b0f2d2c7fbab484d6f04d31a5569ec33ef11567c75a6bdac05aafbf3c45f356", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking byteorder v0.4.2 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking pcap v0.5.7 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking env_logger v0.3.5 [INFO] [stderr] Checking carp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0284]: type annotations needed [INFO] [stdout] --> src/ip.rs:350:61 [INFO] [stdout] | [INFO] [stdout] 350 | assert_eq!(Ipv4Addr::from(iph.saddr()), "10.0.2.30".parse().unwrap()); [INFO] [stdout] | ^^^^^ cannot infer type of the type parameter `F` declared on the method `parse` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `<_ as FromStr>::Err == _` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 350 | assert_eq!(Ipv4Addr::from(iph.saddr()), "10.0.2.30".parse::().unwrap()); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/carp.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let hw_if = HwIf::new(self.interface.as_ref()); [INFO] [stdout] | ^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `S` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `String: AsRef<_>` found in the following crates: `alloc`, `std`: [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef<[u8]> for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 237 | let hw_if = HwIf::new::<&T>(self.interface.as_ref()); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/carp.rs:345:25 [INFO] [stdout] | [INFO] [stdout] 345 | let mut hw_if = HwIf::new(self.interface.as_ref()); [INFO] [stdout] | ^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `S` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `String: AsRef<_>` found in the following crates: `alloc`, `std`: [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef<[u8]> for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 345 | let mut hw_if = HwIf::new::<&T>(self.interface.as_ref()); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ether_header` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 29 | ether_header: EtherHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.ether_header` has type `EtherHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EtherHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ether.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct EtherHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | ether_header: EtherHeader, [INFO] [stdout] | ------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ip` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 30 | pub ip: IpHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.ip` has type `IpHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `IpHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ip.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct IpHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub ip: IpHeader, [INFO] [stdout] | ---------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.carp` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 31 | pub carp: CarpHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move occurs because `self.carp` has type `CarpHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CarpHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ip_carp.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct CarpHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub carp: CarpHeader, [INFO] [stdout] | -------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (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/advert.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | let mut t = try!(self.ip.into_bytes()); [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] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/carp.rs:617:18 [INFO] [stdout] | [INFO] [stdout] 617 | let ip = &cp.ip; [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] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0507, E0793. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `carp` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/carp.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let hw_if = HwIf::new(self.interface.as_ref()); [INFO] [stdout] | ^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `S` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `String: AsRef<_>` found in the following crates: `alloc`, `std`: [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef<[u8]> for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 237 | let hw_if = HwIf::new::<&T>(self.interface.as_ref()); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/carp.rs:345:25 [INFO] [stdout] | [INFO] [stdout] 345 | let mut hw_if = HwIf::new(self.interface.as_ref()); [INFO] [stdout] | ^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `S` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `String: AsRef<_>` found in the following crates: `alloc`, `std`: [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] - impl AsRef<[u8]> for String; [INFO] [stdout] - impl AsRef for String; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 345 | let mut hw_if = HwIf::new::<&T>(self.interface.as_ref()); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/ip_carp.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | assert_eq!(ch.carp_cksum, 17212); [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_carp.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | assert_eq!(ch.carp_counter, 3949677980459571688); [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[E0507]: cannot move out of `self.ether_header` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 29 | ether_header: EtherHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.ether_header` has type `ether::EtherHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `ether::EtherHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ether.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct EtherHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | ether_header: EtherHeader, [INFO] [stdout] | ------------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ip` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 30 | pub ip: IpHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because `self.ip` has type `ip::IpHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `ip::IpHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ip.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct IpHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub ip: IpHeader, [INFO] [stdout] | ---------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.carp` which is behind a shared reference [INFO] [stdout] --> src/advert.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 31 | pub carp: CarpHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move occurs because `self.carp` has type `ip_carp::CarpHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `ip_carp::CarpHeader` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/ip_carp.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct CarpHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/advert.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub carp: CarpHeader, [INFO] [stdout] | -------------------- you could clone this value [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (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/advert.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | let mut t = try!(self.ip.into_bytes()); [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] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/carp.rs:617:18 [INFO] [stdout] | [INFO] [stdout] 617 | let ip = &cp.ip; [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] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0284, E0507, E0793. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `carp` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "0b0f2d2c7fbab484d6f04d31a5569ec33ef11567c75a6bdac05aafbf3c45f356", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b0f2d2c7fbab484d6f04d31a5569ec33ef11567c75a6bdac05aafbf3c45f356", kill_on_drop: false }` [INFO] [stdout] 0b0f2d2c7fbab484d6f04d31a5569ec33ef11567c75a6bdac05aafbf3c45f356