[INFO] fetching crate pe 0.1.1... [INFO] testing pe-0.1.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate pe 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate pe 0.1.1 [INFO] finished tweaking crates.io crate pe 0.1.1 [INFO] tweaked toml for crates.io crate pe 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pe 0.1.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [INFO] [stderr] Adding bitflags v0.4.0 (available: v2.9.1) [INFO] [stderr] Adding itertools v0.4.19 (available: v0.14.0) [INFO] [stderr] Adding lazy_static v0.1.16 (available: v1.5.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b4f0deb2daf06e5d1c8e3d2b7711e5792f5ded844149abea590e8e277c36082 [INFO] running `Command { std: "docker" "start" "-a" "0b4f0deb2daf06e5d1c8e3d2b7711e5792f5ded844149abea590e8e277c36082", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b4f0deb2daf06e5d1c8e3d2b7711e5792f5ded844149abea590e8e277c36082", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b4f0deb2daf06e5d1c8e3d2b7711e5792f5ded844149abea590e8e277c36082", kill_on_drop: false }` [INFO] [stdout] 0b4f0deb2daf06e5d1c8e3d2b7711e5792f5ded844149abea590e8e277c36082 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5c502f4cd4135fea1c88baba5798f7d765aebf62a2bf0ef19091a2c003a70d9f [INFO] running `Command { std: "docker" "start" "-a" "5c502f4cd4135fea1c88baba5798f7d765aebf62a2bf0ef19091a2c003a70d9f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling pe v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / bitflags! { [INFO] [stdout] 87 | | #[repr(packed)] [INFO] [stdout] 88 | | flags Characteristics: u16 { [INFO] [stdout] 89 | | const RELOCS_STRIPPED = 0x0001, [INFO] [stdout] ... | [INFO] [stdout] 106 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / bitflags! { [INFO] [stdout] 87 | | #[repr(packed)] [INFO] [stdout] 88 | | flags Characteristics: u16 { [INFO] [stdout] 89 | | const RELOCS_STRIPPED = 0x0001, [INFO] [stdout] ... | [INFO] [stdout] 106 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / bitflags! { [INFO] [stdout] 111 | | #[repr(packed)] [INFO] [stdout] 112 | | flags Characteristics: u16 { [INFO] [stdout] 113 | | const RESERVED1 = 0x0001, [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / bitflags! { [INFO] [stdout] 111 | | #[repr(packed)] [INFO] [stdout] 112 | | flags Characteristics: u16 { [INFO] [stdout] 113 | | const RESERVED1 = 0x0001, [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | / bitflags! { [INFO] [stdout] 135 | | #[repr(packed)] [INFO] [stdout] 136 | | flags Characteristics: u32 { [INFO] [stdout] 137 | | const RESERVED2 = 0x00000001, [INFO] [stdout] ... | [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/types.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | / bitflags! { [INFO] [stdout] 135 | | #[repr(packed)] [INFO] [stdout] 136 | | flags Characteristics: u32 { [INFO] [stdout] 137 | | const RESERVED2 = 0x00000001, [INFO] [stdout] ... | [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 104 | Ok(try!(self.resolve_rva_raw(rva+0u32,length,None)).offset(0)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 109 | Ok(try!(self.resolve_rva_raw(rva+0u32,length,None)).offset(0)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | let sig=*try!(data.ref_at(FP::::new(0))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | try!(data.ref_at(FP::::new(0))).new [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let pe_header=try!(data.ref_at(pe_header_fp)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let sig: u16=*try!(data.ref_at(pe_oh_fp.offset(0))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 138 | PeOptionalHeader::Pe32(try!(data.ref_at(pe_oh_fp.offset(0)))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:145:32 [INFO] [stdout] | [INFO] [stdout] 145 | PeOptionalHeader::Pe32Plus(try!(data.ref_at(pe_oh_fp.offset(0)))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let pe_dd=try!(data.ref_slice_at(pe_dd_fp,n)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | let pe_sec=try!(data.ref_slice_at(pe_sec_fp,pe_header.number_of_sections as u32)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | let fp=try!(self.resolve_rva(rva)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | let fp=try!(self.resolve_rva_slice(rva,count)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 174 | let fp=try!(self.resolve_rva_raw(rva+0u32,0,Some(&mut max_len))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | let ddir: &DataDirectory>=try!(self.get_directory(DirectoryEntry::ExportTable)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:216:37 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(Exports{pe:self,ddir:ddir,edir:try!(self.ref_at(ddir.virtual_address))}) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:220:50 [INFO] [stdout] | [INFO] [stdout] 220 | let ddir: &DataDirectory>=try!(self.get_directory(DirectoryEntry::BaseRelocationTable)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:256:11 [INFO] [stdout] | [INFO] [stdout] 256 | let pos=try!(try!(self.get_names()).iter().position(|&name_rva|{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | let pos=try!(try!(self.get_names()).iter().position(|&name_rva|{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:259:22 [INFO] [stdout] | [INFO] [stdout] 259 | let ordinal_offset=try!(self.get_ordinal_offsets())[pos]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | let export=try!(try!(self.get_export_addresses()).get(ordinal_offset as usize).ok_or(Error::ExportNotFound)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:260:19 [INFO] [stdout] | [INFO] [stdout] 260 | let export=try!(try!(self.get_export_addresses()).get(ordinal_offset as usize).ok_or(Error::ExportNotFound)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:267:14 [INFO] [stdout] | [INFO] [stdout] 267 | let rblock=try!(self.pe.ref_at(self.next_rblock)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | let relocs: &[Relocation]=try!(self.pe.ref_slice_at(self.next_rblock.offset(size_of::() as u32),rblock.block_size/2)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:224:37 [INFO] [stdout] | [INFO] [stdout] 224 | pub address_of_entry_point: RVA, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 224 | pub address_of_entry_point: RVA, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 259 | pub address_of_entry_point: RVA, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 259 | pub address_of_entry_point: RVA, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | Export(&'data RVA), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | Export(&'data RVA), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/utility.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.eq(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.eq(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | self.0.partial_cmp(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | self.0.partial_cmp(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | self.0.cmp(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | self.0.cmp(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | builder.field(&self.0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | define_urp!{pub struct FP;} [INFO] [stdout] | ------------------------------ in this macro invocation [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 `define_urp` (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/utility.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.eq(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.eq(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | self.0.partial_cmp(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | self.0.partial_cmp(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | self.0.cmp(&other.0) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | self.0.cmp(&other.0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/utility.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | builder.field(&self.0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | define_urp!{pub struct RVA;} [INFO] [stdout] | ------------------------------- in this macro invocation [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 `define_urp` (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/lib.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | &PeOptionalHeader::Pe32Plus(h) => &h.number_of_rva_and_sizes, [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/lib.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | &PeOptionalHeader::Pe32(h) => &h.number_of_rva_and_sizes, [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/lib.rs:55:38 [INFO] [stdout] | [INFO] [stdout] 55 | &PeOptionalHeader::Pe32Plus(h) => &h.size_of_headers, [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/lib.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | &PeOptionalHeader::Pe32(h) => &h.size_of_headers, [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/lib.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | &PeOptionalHeader::Pe32Plus(h) => &h.check_sum, [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/lib.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | &PeOptionalHeader::Pe32(h) => &h.check_sum, [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] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pe` (lib) due to 20 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5c502f4cd4135fea1c88baba5798f7d765aebf62a2bf0ef19091a2c003a70d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c502f4cd4135fea1c88baba5798f7d765aebf62a2bf0ef19091a2c003a70d9f", kill_on_drop: false }` [INFO] [stdout] 5c502f4cd4135fea1c88baba5798f7d765aebf62a2bf0ef19091a2c003a70d9f