[INFO] cloning repository https://github.com/Fingerlingus/icoextract
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Fingerlingus/icoextract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFingerlingus%2Ficoextract", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFingerlingus%2Ficoextract'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b5c10ad297480ee611972ae4a2cc1a9d791abc42
[INFO] checking Fingerlingus/icoextract against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFingerlingus%2Ficoextract" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Fingerlingus/icoextract
[INFO] finished tweaking git repo https://github.com/Fingerlingus/icoextract
[INFO] tweaked toml for git repo https://github.com/Fingerlingus/icoextract written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Fingerlingus/icoextract on toolchain a5689b034ad287112f709693384a37f1377eb9cc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 11 packages to highest compatible versions
[INFO] [stderr]       Adding num-derive v0.3.3 (available: v0.5.1)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81
[INFO] running `Command { std: "docker" "start" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling unicode-ident v1.0.27
[INFO] [stderr]    Compiling autocfg v1.5.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling libc v0.2.191
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking either v1.19.0
[INFO] [stderr]     Checking utf16string v0.2.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]     Checking icoextract v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: fields `virtual_size`, `relocations_offset`, `line_numbers_offset`, `num_relocations`, `num_line_numbers`, and `characteristics` are never read
[INFO] [stdout]    --> src/pe/nt.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 158 | pub struct SectionHeader {
[INFO] [stdout]     |            ------------- fields in this struct
[INFO] [stdout] 159 |     pub name: String,
[INFO] [stdout] 160 |     pub virtual_size: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub relocations_offset: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 165 |     pub line_numbers_offset: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 166 |     pub num_relocations: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 167 |     pub num_line_numbers: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 168 |     pub characteristics: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SectionHeader` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `entry` is never read
[INFO] [stdout]    --> src/pe/nt.rs:218:9
[INFO] [stdout]     |
[INFO] [stdout] 217 | pub struct ResourceDirectoryEntry {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 218 |     pub entry: u16,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `characteristics`, `time_date_stamp`, `major_version`, and `minor_version` are never read
[INFO] [stdout]    --> src/pe/nt.rs:307:9
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub struct ResourceDirectory {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 307 |     pub characteristics: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 308 |     pub time_date_stamp: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 309 |     pub major_version: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 310 |     pub minor_version: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceDirectory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u16`
[INFO] [stdout]    --> src/pe/nt.rs:187:30
[INFO] [stdout]     |
[INFO] [stdout] 187 |             num_relocations: raw.num_relocations.into(),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 187 -             num_relocations: raw.num_relocations.into(),
[INFO] [stdout] 187 +             num_relocations: raw.num_relocations,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 187 -             num_relocations: raw.num_relocations.into(),
[INFO] [stdout] 187 +             num_relocations: <u16 as Into<_>>::into(raw.num_relocations),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u16`
[INFO] [stdout]    --> src/pe/nt.rs:188:31
[INFO] [stdout]     |
[INFO] [stdout] 188 |             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 188 -             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout] 188 +             num_line_numbers: raw.num_line_numbers,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 188 -             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout] 188 +             num_line_numbers: <u16 as Into<_>>::into(raw.num_line_numbers),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u32`
[INFO] [stdout]    --> src/pe/nt.rs:189:30
[INFO] [stdout]     |
[INFO] [stdout] 189 |             characteristics: raw.characteristics.into(),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 189 -             characteristics: raw.characteristics.into(),
[INFO] [stdout] 189 +             characteristics: raw.characteristics,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 189 -             characteristics: raw.characteristics.into(),
[INFO] [stdout] 189 +             characteristics: <u32 as Into<_>>::into(raw.characteristics),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pe/nt.rs:58:23
[INFO] [stdout]    |
[INFO] [stdout] 58 | #[derive(Copy, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                       ^------------
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       `FromPrimitive` is not local
[INFO] [stdout]    |                       move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OptionalHeaderMagic`
[INFO] [stdout] 59 | pub enum OptionalHeaderMagic {
[INFO] [stdout]    |          ------------------- `OptionalHeaderMagic` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pe/nt.rs:58:38
[INFO] [stdout]    |
[INFO] [stdout] 58 | #[derive(Copy, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                      ^----------
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      `ToPrimitive` is not local
[INFO] [stdout]    |                                      move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_OptionalHeaderMagic`
[INFO] [stdout] 59 | pub enum OptionalHeaderMagic {
[INFO] [stdout]    |          ------------------- `OptionalHeaderMagic` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `virtual_size`, `relocations_offset`, `line_numbers_offset`, `num_relocations`, `num_line_numbers`, and `characteristics` are never read
[INFO] [stdout]    --> src/pe/nt.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 158 | pub struct SectionHeader {
[INFO] [stdout]     |            ------------- fields in this struct
[INFO] [stdout] 159 |     pub name: String,
[INFO] [stdout] 160 |     pub virtual_size: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub relocations_offset: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 165 |     pub line_numbers_offset: usize,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 166 |     pub num_relocations: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 167 |     pub num_line_numbers: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 168 |     pub characteristics: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SectionHeader` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `icoextract` (lib) due to 3 previous errors; 5 warnings emitted
[INFO] [stdout] warning: field `entry` is never read
[INFO] [stdout]    --> src/pe/nt.rs:218:9
[INFO] [stdout]     |
[INFO] [stdout] 217 | pub struct ResourceDirectoryEntry {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 218 |     pub entry: u16,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: fields `characteristics`, `time_date_stamp`, `major_version`, and `minor_version` are never read
[INFO] [stdout]    --> src/pe/nt.rs:307:9
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub struct ResourceDirectory {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 307 |     pub characteristics: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 308 |     pub time_date_stamp: u32,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 309 |     pub major_version: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 310 |     pub minor_version: u16,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceDirectory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u16`
[INFO] [stdout]    --> src/pe/nt.rs:187:30
[INFO] [stdout]     |
[INFO] [stdout] 187 |             num_relocations: raw.num_relocations.into(),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 187 -             num_relocations: raw.num_relocations.into(),
[INFO] [stdout] 187 +             num_relocations: raw.num_relocations,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 187 -             num_relocations: raw.num_relocations.into(),
[INFO] [stdout] 187 +             num_relocations: <u16 as Into<_>>::into(raw.num_relocations),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u16`
[INFO] [stdout]    --> src/pe/nt.rs:188:31
[INFO] [stdout]     |
[INFO] [stdout] 188 |             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 188 -             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout] 188 +             num_line_numbers: raw.num_line_numbers,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 188 -             num_line_numbers: raw.num_line_numbers.into(),
[INFO] [stdout] 188 +             num_line_numbers: <u16 as Into<_>>::into(raw.num_line_numbers),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `u32`
[INFO] [stdout]    --> src/pe/nt.rs:189:30
[INFO] [stdout]     |
[INFO] [stdout] 189 |             characteristics: raw.characteristics.into(),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 189 -             characteristics: raw.characteristics.into(),
[INFO] [stdout] 189 +             characteristics: raw.characteristics,
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 189 -             characteristics: raw.characteristics.into(),
[INFO] [stdout] 189 +             characteristics: <u32 as Into<_>>::into(raw.characteristics),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pe/nt.rs:58:23
[INFO] [stdout]    |
[INFO] [stdout] 58 | #[derive(Copy, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                       ^------------
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       `FromPrimitive` is not local
[INFO] [stdout]    |                       move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OptionalHeaderMagic`
[INFO] [stdout] 59 | pub enum OptionalHeaderMagic {
[INFO] [stdout]    |          ------------------- `OptionalHeaderMagic` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pe/nt.rs:58:38
[INFO] [stdout]    |
[INFO] [stdout] 58 | #[derive(Copy, Clone, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                      ^----------
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      `ToPrimitive` is not local
[INFO] [stdout]    |                                      move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_OptionalHeaderMagic`
[INFO] [stdout] 59 | pub enum OptionalHeaderMagic {
[INFO] [stdout]    |          ------------------- `OptionalHeaderMagic` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `icoextract` (lib test) due to 3 previous errors; 5 warnings emitted
[INFO] [stderr] warning: unused dependency `either`
[INFO] [stderr]  --> Cargo.toml:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | either = "1.1.0"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `either`
[INFO] [stderr] warning: `icoextract` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "inspect" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81", kill_on_drop: false }`
[INFO] [stdout] 17f1f8ae71f5ebbb73ca2a63a22cf8601eee89f53c2529e5673791d1b9d37a81
