[INFO] fetching crate elfloader32 0.0.3...
[INFO] checking elfloader32-0.0.3 against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] extracting crate elfloader32 0.0.3 into /workspace/builds/worker-5-tc1/source
[INFO] validating manifest of crates.io crate elfloader32 0.0.3 on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate elfloader32 0.0.3
[INFO] finished tweaking crates.io crate elfloader32 0.0.3
[INFO] tweaked toml for crates.io crate elfloader32 0.0.3 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 87cfda652a7c1e24be8aab271869b92d4ba2adcb4f22265f15b4d6c3fceb9812
[INFO] running `Command { std: "docker" "start" "-a" "87cfda652a7c1e24be8aab271869b92d4ba2adcb4f22265f15b4d6c3fceb9812", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "87cfda652a7c1e24be8aab271869b92d4ba2adcb4f22265f15b4d6c3fceb9812", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "87cfda652a7c1e24be8aab271869b92d4ba2adcb4f22265f15b4d6c3fceb9812", kill_on_drop: false }`
[INFO] [stdout] 87cfda652a7c1e24be8aab271869b92d4ba2adcb4f22265f15b4d6c3fceb9812
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cdfd966248d3eeda7ce49f744a5412beb121608610e01c17c464cb3055de3c9c
[INFO] running `Command { std: "docker" "start" "-a" "cdfd966248d3eeda7ce49f744a5412beb121608610e01c17c464cb3055de3c9c", kill_on_drop: false }`
[INFO] [stderr]     Checking elfloader32 v0.0.3 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0557]: feature has been removed
[INFO] [stdout]  --> src/lib.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                                        ^^^^^^^^^^^^^ feature has been removed
[INFO] [stdout]   |
[INFO] [stdout]   = note: subsumed by `#[proc_macro_derive]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0557]: feature has been removed
[INFO] [stdout]  --> src/lib.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                                        ^^^^^^^^^^^^^ feature has been removed
[INFO] [stdout]   |
[INFO] [stdout]   = note: subsumed by `#[proc_macro_derive]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:446:13
[INFO] [stdout]     |
[INFO] [stdout] 446 |             try!(write!(f, "R"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:448:13
[INFO] [stdout]     |
[INFO] [stdout] 448 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |             try!(write!(f, "W"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:453:13
[INFO] [stdout]     |
[INFO] [stdout] 453 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:446:13
[INFO] [stdout]     |
[INFO] [stdout] 446 |             try!(write!(f, "R"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:448:13
[INFO] [stdout]     |
[INFO] [stdout] 448 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |             try!(write!(f, "W"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:453:13
[INFO] [stdout]     |
[INFO] [stdout] 453 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `no_std` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core_prelude` has been stable since 1.4.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `core_slice_ext`
[INFO] [stdout]  --> src/lib.rs:1:40
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:157:64
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:172:37
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `no_std` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core_prelude` has been stable since 1.4.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `core_slice_ext`
[INFO] [stdout]  --> src/lib.rs:1:40
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:157:64
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:172:37
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/elf.rs:420:28
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:420:42
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:16
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:30
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:420:28
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:753:13
[INFO] [stdout]     |
[INFO] [stdout] 753 |             STT_NOTYPE => "unspecified",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/elf.rs:420:42
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:754:13
[INFO] [stdout]     |
[INFO] [stdout] 754 |             STT_OBJECT => "data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/elf.rs:421:16
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:755:13
[INFO] [stdout]     |
[INFO] [stdout] 755 |             STT_FUNC => "code object",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:756:13
[INFO] [stdout]     |
[INFO] [stdout] 756 |             STT_SECTION => "section",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/elf.rs:421:30
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:757:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |             STT_FILE => "file name",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 758 |             STT_COMMON => "common data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:759:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |             STT_TLS => "thread-local data object",
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 760 |             STT_GNU_IFUNC => "indirect code object",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:782:13
[INFO] [stdout]     |
[INFO] [stdout] 782 |             STB_LOCAL => "local",
[INFO] [stdout]     |             ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:783:13
[INFO] [stdout]     |
[INFO] [stdout] 783 |             STB_GLOBAL => "global",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:784:13
[INFO] [stdout]     |
[INFO] [stdout] 784 |             STB_WEAK => "weak",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:785:13
[INFO] [stdout]     |
[INFO] [stdout] 785 |             STB_GNU_UNIQUE => "unique",
[INFO] [stdout]     |             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:807:13
[INFO] [stdout]     |
[INFO] [stdout] 807 |             STV_DEFAULT => "default",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:808:13
[INFO] [stdout]     |
[INFO] [stdout] 808 |             STV_INTERNAL => "internal",
[INFO] [stdout]     |             ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:809:13
[INFO] [stdout]     |
[INFO] [stdout] 809 |             STV_HIDDEN => "hidden",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:810:13
[INFO] [stdout]     |
[INFO] [stdout] 810 |             STV_PROTECTED => "protected",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/lib.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         for p in self.program_headers() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/lib.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:151:67
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:152:31
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let correct_machine = self.header.machine == elf::EM_X86_64;
[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] warning: unused variable: `x`
[INFO] [stdout]    --> src/lib.rs:174:17
[INFO] [stdout]     |
[INFO] [stdout] 174 |             let x = match p.progtype {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 25 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0557, E0635, E0793.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0557`.
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:753:13
[INFO] [stdout]     |
[INFO] [stdout] 753 |             STT_NOTYPE => "unspecified",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:754:13
[INFO] [stdout]     |
[INFO] [stdout] 754 |             STT_OBJECT => "data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:755:13
[INFO] [stdout]     |
[INFO] [stdout] 755 |             STT_FUNC => "code object",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:756:13
[INFO] [stdout]     |
[INFO] [stdout] 756 |             STT_SECTION => "section",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:757:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |             STT_FILE => "file name",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 758 |             STT_COMMON => "common data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:759:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |             STT_TLS => "thread-local data object",
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 760 |             STT_GNU_IFUNC => "indirect code object",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:782:13
[INFO] [stdout]     |
[INFO] [stdout] 782 |             STB_LOCAL => "local",
[INFO] [stdout]     |             ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:783:13
[INFO] [stdout]     |
[INFO] [stdout] 783 |             STB_GLOBAL => "global",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:784:13
[INFO] [stdout]     |
[INFO] [stdout] 784 |             STB_WEAK => "weak",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:785:13
[INFO] [stdout]     |
[INFO] [stdout] 785 |             STB_GNU_UNIQUE => "unique",
[INFO] [stdout]     |             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:807:13
[INFO] [stdout]     |
[INFO] [stdout] 807 |             STV_DEFAULT => "default",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:808:13
[INFO] [stdout]     |
[INFO] [stdout] 808 |             STV_INTERNAL => "internal",
[INFO] [stdout]     |             ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:809:13
[INFO] [stdout]     |
[INFO] [stdout] 809 |             STV_HIDDEN => "hidden",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:810:13
[INFO] [stdout]     |
[INFO] [stdout] 810 |             STV_PROTECTED => "protected",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/lib.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         for p in self.program_headers() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `elfloader32` (lib) due to 26 previous errors; 11 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/lib.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:151:67
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:152:31
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let correct_machine = self.header.machine == elf::EM_X86_64;
[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] warning: unused variable: `x`
[INFO] [stdout]    --> src/lib.rs:174:17
[INFO] [stdout]     |
[INFO] [stdout] 174 |             let x = match p.progtype {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 25 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0557, E0635, E0793.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0557`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `elfloader32` (lib test) due to 26 previous errors; 11 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "cdfd966248d3eeda7ce49f744a5412beb121608610e01c17c464cb3055de3c9c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cdfd966248d3eeda7ce49f744a5412beb121608610e01c17c464cb3055de3c9c", kill_on_drop: false }`
[INFO] [stdout] cdfd966248d3eeda7ce49f744a5412beb121608610e01c17c464cb3055de3c9c
[INFO] checking elfloader32-0.0.3 against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] extracting crate elfloader32 0.0.3 into /workspace/builds/worker-5-tc2/source
[INFO] validating manifest of crates.io crate elfloader32 0.0.3 on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate elfloader32 0.0.3
[INFO] finished tweaking crates.io crate elfloader32 0.0.3
[INFO] tweaked toml for crates.io crate elfloader32 0.0.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 73c538c3b1cbbc17905165365623a3561934c162ee34785ee10e0dfa0b25e9d8
[INFO] running `Command { std: "docker" "start" "-a" "73c538c3b1cbbc17905165365623a3561934c162ee34785ee10e0dfa0b25e9d8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "73c538c3b1cbbc17905165365623a3561934c162ee34785ee10e0dfa0b25e9d8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "73c538c3b1cbbc17905165365623a3561934c162ee34785ee10e0dfa0b25e9d8", kill_on_drop: false }`
[INFO] [stdout] 73c538c3b1cbbc17905165365623a3561934c162ee34785ee10e0dfa0b25e9d8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] da27239bc588fb5b77f4779adff75a911b4652e537bab4fc6d31218150054f52
[INFO] running `Command { std: "docker" "start" "-a" "da27239bc588fb5b77f4779adff75a911b4652e537bab4fc6d31218150054f52", kill_on_drop: false }`
[INFO] [stderr]     Checking elfloader32 v0.0.3 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0557]: feature has been removed
[INFO] [stdout]  --> src/lib.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                                        ^^^^^^^^^^^^^ feature has been removed
[INFO] [stdout]   |
[INFO] [stdout]   = note: subsumed by `#[proc_macro_derive]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0557]: feature has been removed
[INFO] [stdout]  --> src/lib.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                                        ^^^^^^^^^^^^^ feature has been removed
[INFO] [stdout]   |
[INFO] [stdout]   = note: subsumed by `#[proc_macro_derive]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:446:13
[INFO] [stdout]     |
[INFO] [stdout] 446 |             try!(write!(f, "R"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:448:13
[INFO] [stdout]     |
[INFO] [stdout] 448 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |             try!(write!(f, "W"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:453:13
[INFO] [stdout]     |
[INFO] [stdout] 453 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:446:13
[INFO] [stdout]     |
[INFO] [stdout] 446 |             try!(write!(f, "R"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:448:13
[INFO] [stdout]     |
[INFO] [stdout] 448 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |             try!(write!(f, "W"));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/elf.rs:453:13
[INFO] [stdout]     |
[INFO] [stdout] 453 |             try!(write!(f, " "));
[INFO] [stdout]     |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `no_std` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core_prelude` has been stable since 1.4.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `core_slice_ext`
[INFO] [stdout]  --> src/lib.rs:1:40
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `no_std` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:157:64
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:172:37
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `core_prelude` has been stable since 1.4.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/lib.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `core_slice_ext`
[INFO] [stdout]  --> src/lib.rs:1:40
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(no_std, core, core_prelude, core_slice_ext, custom_derive)]
[INFO] [stdout]   |                                        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:157:64
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn load_header(&self, p: &elf::ProgramHeader, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:172:37
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut ElfLoader) {
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 172 |     pub fn load(&self, loader: &mut dyn ElfLoader) {
[INFO] [stdout]     |                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/elf.rs:420:28
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:420:42
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:16
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:30
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:420:28
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:420:42
[INFO] [stdout]     |
[INFO] [stdout] 420 |                self.ident, self.elftype, self.machine,
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:16
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (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/elf.rs:421:30
[INFO] [stdout]     |
[INFO] [stdout] 421 |                self.version, self.entry)
[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 `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:753:13
[INFO] [stdout]     |
[INFO] [stdout] 753 |             STT_NOTYPE => "unspecified",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:754:13
[INFO] [stdout]     |
[INFO] [stdout] 754 |             STT_OBJECT => "data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:755:13
[INFO] [stdout]     |
[INFO] [stdout] 755 |             STT_FUNC => "code object",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:756:13
[INFO] [stdout]     |
[INFO] [stdout] 756 |             STT_SECTION => "section",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:757:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |             STT_FILE => "file name",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 758 |             STT_COMMON => "common data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:759:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |             STT_TLS => "thread-local data object",
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 760 |             STT_GNU_IFUNC => "indirect code object",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:782:13
[INFO] [stdout]     |
[INFO] [stdout] 782 |             STB_LOCAL => "local",
[INFO] [stdout]     |             ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:783:13
[INFO] [stdout]     |
[INFO] [stdout] 783 |             STB_GLOBAL => "global",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:784:13
[INFO] [stdout]     |
[INFO] [stdout] 784 |             STB_WEAK => "weak",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:785:13
[INFO] [stdout]     |
[INFO] [stdout] 785 |             STB_GNU_UNIQUE => "unique",
[INFO] [stdout]     |             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:807:13
[INFO] [stdout]     |
[INFO] [stdout] 807 |             STV_DEFAULT => "default",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:808:13
[INFO] [stdout]     |
[INFO] [stdout] 808 |             STV_INTERNAL => "internal",
[INFO] [stdout]     |             ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:809:13
[INFO] [stdout]     |
[INFO] [stdout] 809 |             STV_HIDDEN => "hidden",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:810:13
[INFO] [stdout]     |
[INFO] [stdout] 810 |             STV_PROTECTED => "protected",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/lib.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         for p in self.program_headers() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/lib.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:151:67
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:753:13
[INFO] [stdout]     |
[INFO] [stdout] 753 |             STT_NOTYPE => "unspecified",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/lib.rs:152:31
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let correct_machine = self.header.machine == elf::EM_X86_64;
[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: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:754:13
[INFO] [stdout]     |
[INFO] [stdout] 754 |             STT_OBJECT => "data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:755:13
[INFO] [stdout]     |
[INFO] [stdout] 755 |             STT_FUNC => "code object",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:756:13
[INFO] [stdout]     |
[INFO] [stdout] 756 |             STT_SECTION => "section",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:757:13
[INFO] [stdout]     |
[INFO] [stdout] 757 |             STT_FILE => "file name",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:758:13
[INFO] [stdout]     |
[INFO] [stdout] 758 |             STT_COMMON => "common data object",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:759:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |             STT_TLS => "thread-local data object",
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolType` in a pattern, `SymbolType` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 760 |             STT_GNU_IFUNC => "indirect code object",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:782:13
[INFO] [stdout]     |
[INFO] [stdout] 782 |             STB_LOCAL => "local",
[INFO] [stdout]     |             ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/lib.rs:174:17
[INFO] [stdout]     |
[INFO] [stdout] 174 |             let x = match p.progtype {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:783:13
[INFO] [stdout]     |
[INFO] [stdout] 783 |             STB_GLOBAL => "global",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:784:13
[INFO] [stdout]     |
[INFO] [stdout] 784 |             STB_WEAK => "weak",
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolBind` in a pattern, `SymbolBind` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:785:13
[INFO] [stdout]     |
[INFO] [stdout] 785 |             STB_GNU_UNIQUE => "unique",
[INFO] [stdout]     |             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:807:13
[INFO] [stdout]     |
[INFO] [stdout] 807 |             STV_DEFAULT => "default",
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:808:13
[INFO] [stdout]     |
[INFO] [stdout] 808 |             STV_INTERNAL => "internal",
[INFO] [stdout]     |             ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:809:13
[INFO] [stdout]     |
[INFO] [stdout] 809 |             STV_HIDDEN => "hidden",
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: to use a constant of type `SymbolVis` in a pattern, `SymbolVis` must be annotated with `#[derive(PartialEq)]`
[INFO] [stdout]    --> src/elf.rs:810:13
[INFO] [stdout]     |
[INFO] [stdout] 810 |             STV_PROTECTED => "protected",
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the traits must be derived, manual `impl`s are not sufficient
[INFO] [stdout]     = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/lib.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         for p in self.program_headers() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 25 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0557, E0635, E0793.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0557`.
[INFO] [stdout] 
[INFO] [stdout] error[E0793]: reference to packed field is unaligned
[INFO] [stdout]    --> src/lib.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:151:67
[INFO] [stdout]     |
[INFO] [stdout] 151 |         let correct_type = self.header.elftype == elf::ET_EXEC || self.header.elftype == elf::ET_DYN;
[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:152:31
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let correct_machine = self.header.machine == elf::EM_X86_64;
[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] warning: unused variable: `x`
[INFO] [stdout]    --> src/lib.rs:174:17
[INFO] [stdout]     |
[INFO] [stdout] 174 |             let x = match p.progtype {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `elfloader32` (lib) due to 26 previous errors; 11 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: aborting due to 25 previous errors; 11 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0557, E0635, E0793.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0557`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `elfloader32` (lib test) due to 26 previous errors; 11 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "da27239bc588fb5b77f4779adff75a911b4652e537bab4fc6d31218150054f52", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "da27239bc588fb5b77f4779adff75a911b4652e537bab4fc6d31218150054f52", kill_on_drop: false }`
[INFO] [stdout] da27239bc588fb5b77f4779adff75a911b4652e537bab4fc6d31218150054f52
