[INFO] fetching crate elfy 0.2.2... [INFO] testing elfy-0.2.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate elfy 0.2.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate elfy 0.2.2 [INFO] finished tweaking crates.io crate elfy 0.2.2 [INFO] tweaked toml for crates.io crate elfy 0.2.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate elfy 0.2.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6995409e8423615d134f9abd33f4e1ccad5ecb283d0b4801928c8276b355c74 [INFO] running `Command { std: "docker" "start" "-a" "b6995409e8423615d134f9abd33f4e1ccad5ecb283d0b4801928c8276b355c74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6995409e8423615d134f9abd33f4e1ccad5ecb283d0b4801928c8276b355c74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6995409e8423615d134f9abd33f4e1ccad5ecb283d0b4801928c8276b355c74", kill_on_drop: false }` [INFO] [stdout] b6995409e8423615d134f9abd33f4e1ccad5ecb283d0b4801928c8276b355c74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1652026ebbae39b95ace4b2694948fdc2447a3821da1618581e1fc4dcc7027ce [INFO] running `Command { std: "docker" "start" "-a" "1652026ebbae39b95ace4b2694948fdc2447a3821da1618581e1fc4dcc7027ce", kill_on_drop: false }` [INFO] [stderr] Compiling elfy v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `ident`, `version`, `flags`, `ehsize`, `phentsize`, and `shentsize` are never read [INFO] [stdout] --> src/types.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ElfHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 15 | ident: Identifier, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | version: Version, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | flags: Flags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | ehsize: Short, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | phentsize: Short, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | phnum: Short, [INFO] [stdout] 26 | shentsize: Short, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ElfHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `magic`, `version`, `os_abi`, and `abi_ver` are never read [INFO] [stdout] --> src/types.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Identifier { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 110 | magic: Magic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | version: IdentVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 114 | os_abi: OsAbi, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | abi_ver: AbiVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name_index` and `link` are never read [INFO] [stdout] --> src/types.rs:398:5 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct SectionHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 398 | name_index: Size, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 404 | link: Word, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SectionHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:310:15 [INFO] [stdout] | [INFO] [stdout] 310 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:331:15 [INFO] [stdout] | [INFO] [stdout] 331 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:538:15 [INFO] [stdout] | [INFO] [stdout] 538 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:848:15 [INFO] [stdout] | [INFO] [stdout] 848 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:889:15 [INFO] [stdout] | [INFO] [stdout] 889 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(Short(read_u16!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Word(read_u32!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:92:52 [INFO] [stdout] | [INFO] [stdout] 92 | DataClass::Elf32 => Ok(Size::Elf32Size(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | DataClass::Elf64 => Ok(Size::Elf64Size(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:137:55 [INFO] [stdout] | [INFO] [stdout] 137 | DataClass::Elf32 => Ok(Address::Elf32Addr(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:138:55 [INFO] [stdout] | [INFO] [stdout] 138 | DataClass::Elf64 => Ok(Address::Elf64Addr(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "1652026ebbae39b95ace4b2694948fdc2447a3821da1618581e1fc4dcc7027ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1652026ebbae39b95ace4b2694948fdc2447a3821da1618581e1fc4dcc7027ce", kill_on_drop: false }` [INFO] [stdout] 1652026ebbae39b95ace4b2694948fdc2447a3821da1618581e1fc4dcc7027ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b8bb6e0c7ecc846f4859f4aa4fd3cec789ee745c65594eebb72813459678b0c8 [INFO] running `Command { std: "docker" "start" "-a" "b8bb6e0c7ecc846f4859f4aa4fd3cec789ee745c65594eebb72813459678b0c8", kill_on_drop: false }` [INFO] [stdout] warning: fields `ident`, `version`, `flags`, `ehsize`, `phentsize`, and `shentsize` are never read [INFO] [stdout] --> src/types.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ElfHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 15 | ident: Identifier, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | version: Version, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | flags: Flags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | ehsize: Short, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | phentsize: Short, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | phnum: Short, [INFO] [stdout] 26 | shentsize: Short, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ElfHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `magic`, `version`, `os_abi`, and `abi_ver` are never read [INFO] [stdout] --> src/types.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Identifier { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 110 | magic: Magic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | version: IdentVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 114 | os_abi: OsAbi, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | abi_ver: AbiVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name_index` and `link` are never read [INFO] [stdout] --> src/types.rs:398:5 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct SectionHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 398 | name_index: Size, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 404 | link: Word, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SectionHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:310:15 [INFO] [stdout] | [INFO] [stdout] 310 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:331:15 [INFO] [stdout] | [INFO] [stdout] 331 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:538:15 [INFO] [stdout] | [INFO] [stdout] 538 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:848:15 [INFO] [stdout] | [INFO] [stdout] 848 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:889:15 [INFO] [stdout] | [INFO] [stdout] 889 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(Short(read_u16!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling elfy v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Word(read_u32!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:92:52 [INFO] [stdout] | [INFO] [stdout] 92 | DataClass::Elf32 => Ok(Size::Elf32Size(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | DataClass::Elf64 => Ok(Size::Elf64Size(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:137:55 [INFO] [stdout] | [INFO] [stdout] 137 | DataClass::Elf32 => Ok(Address::Elf32Addr(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:138:55 [INFO] [stdout] | [INFO] [stdout] 138 | DataClass::Elf64 => Ok(Address::Elf64Addr(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ElfHeader { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | flags: Flags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ElfHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/types.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Identifier { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | version: IdentVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name_index` and `link` are never read [INFO] [stdout] --> src/types.rs:398:5 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct SectionHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 398 | name_index: Size, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 404 | link: Word, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SectionHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 210 | pub fn sections(&self) -> SectionIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 218 | pub fn segments(&self) -> SegmentIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:310:15 [INFO] [stdout] | [INFO] [stdout] 310 | match read_u16!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:331:15 [INFO] [stdout] | [INFO] [stdout] 331 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:538:15 [INFO] [stdout] | [INFO] [stdout] 538 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:848:15 [INFO] [stdout] | [INFO] [stdout] 848 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:889:15 [INFO] [stdout] | [INFO] [stdout] 889 | match read_u32!(reader, descriptor) { [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(Short(read_u16!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Word(read_u32!(reader, descriptor))) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:92:52 [INFO] [stdout] | [INFO] [stdout] 92 | DataClass::Elf32 => Ok(Size::Elf32Size(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | DataClass::Elf64 => Ok(Size::Elf64Size(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:137:55 [INFO] [stdout] | [INFO] [stdout] 137 | DataClass::Elf32 => Ok(Address::Elf32Addr(read_u32!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/macros.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stdout] | -----------------------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] ::: src/numeric.rs:138:55 [INFO] [stdout] | [INFO] [stdout] 138 | DataClass::Elf64 => Ok(Address::Elf64Addr(read_u64!(reader, descriptor))), [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "b8bb6e0c7ecc846f4859f4aa4fd3cec789ee745c65594eebb72813459678b0c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8bb6e0c7ecc846f4859f4aa4fd3cec789ee745c65594eebb72813459678b0c8", kill_on_drop: false }` [INFO] [stdout] b8bb6e0c7ecc846f4859f4aa4fd3cec789ee745c65594eebb72813459678b0c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e8cfaa67d01bf3676fd7c23245744025588d8bee08c405250bfc761e49717023 [INFO] running `Command { std: "docker" "start" "-a" "e8cfaa67d01bf3676fd7c23245744025588d8bee08c405250bfc761e49717023", kill_on_drop: false }` [INFO] [stderr] warning: fields `ident`, `version`, `flags`, `ehsize`, `phentsize`, and `shentsize` are never read [INFO] [stderr] --> src/types.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct ElfHeader { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 15 | ident: Identifier, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | version: Version, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | flags: Flags, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 23 | ehsize: Short, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 24 | phentsize: Short, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 25 | phnum: Short, [INFO] [stderr] 26 | shentsize: Short, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ElfHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `magic`, `version`, `os_abi`, and `abi_ver` are never read [INFO] [stderr] --> src/types.rs:110:5 [INFO] [stderr] | [INFO] [stderr] 109 | pub struct Identifier { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 110 | magic: Magic, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | version: IdentVersion, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 114 | os_abi: OsAbi, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 115 | abi_ver: AbiVersion, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `name_index` and `link` are never read [INFO] [stderr] --> src/types.rs:398:5 [INFO] [stderr] | [INFO] [stderr] 397 | pub struct SectionHeader { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 398 | name_index: Size, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 404 | link: Word, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SectionHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/lib.rs:210:21 [INFO] [stderr] | [INFO] [stderr] 210 | pub fn sections(&self) -> SectionIter { [INFO] [stderr] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 210 | pub fn sections(&self) -> SectionIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/lib.rs:218:21 [INFO] [stderr] | [INFO] [stderr] 218 | pub fn segments(&self) -> SegmentIter { [INFO] [stderr] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 218 | pub fn segments(&self) -> SegmentIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:34:26 [INFO] [stderr] | [INFO] [stderr] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u16::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:281:15 [INFO] [stderr] | [INFO] [stderr] 281 | match read_u16!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:34:26 [INFO] [stderr] | [INFO] [stderr] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u16::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:310:15 [INFO] [stderr] | [INFO] [stderr] 310 | match read_u16!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:331:15 [INFO] [stderr] | [INFO] [stderr] 331 | match read_u32!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:343:15 [INFO] [stderr] | [INFO] [stderr] 343 | match read_u32!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:538:15 [INFO] [stderr] | [INFO] [stderr] 538 | match read_u32!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:848:15 [INFO] [stderr] | [INFO] [stderr] 848 | match read_u32!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/types.rs:889:15 [INFO] [stderr] | [INFO] [stderr] 889 | match read_u32!(reader, descriptor) { [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:34:26 [INFO] [stderr] | [INFO] [stderr] 34 | __temp = std::mem::transmute::<[u8; 2], u16>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u16::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | Ok(Short(read_u16!(reader, descriptor))) [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u16` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | Ok(Word(read_u32!(reader, descriptor))) [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:92:52 [INFO] [stderr] | [INFO] [stderr] 92 | DataClass::Elf32 => Ok(Size::Elf32Size(read_u32!(reader, descriptor))), [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:70:26 [INFO] [stderr] | [INFO] [stderr] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u64::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:93:52 [INFO] [stderr] | [INFO] [stderr] 93 | DataClass::Elf64 => Ok(Size::Elf64Size(read_u64!(reader, descriptor))), [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | __temp = std::mem::transmute::<[u8; 4], u32>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u32::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:137:55 [INFO] [stderr] | [INFO] [stderr] 137 | DataClass::Elf32 => Ok(Address::Elf32Addr(read_u32!(reader, descriptor))), [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/macros.rs:70:26 [INFO] [stderr] | [INFO] [stderr] 70 | __temp = std::mem::transmute::<[u8; 8], u64>(__bytes); [INFO] [stderr] | -----------------------------------^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] | | [INFO] [stdout] running 6 tests [INFO] [stderr] | help: replace this with: `u64::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] ::: src/numeric.rs:138:55 [INFO] [stderr] | [INFO] [stderr] 138 | DataClass::Elf64 => Ok(Address::Elf64Addr(read_u64!(reader, descriptor))), [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `read_u64` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `elfy` (lib) generated 18 warnings (run `cargo fix --lib -p elfy` to apply 15 suggestions) [INFO] [stderr] warning: field `flags` is never read [INFO] [stderr] --> src/types.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct ElfHeader { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 22 | flags: Flags, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ElfHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `version` is never read [INFO] [stderr] --> src/types.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 109 | pub struct Identifier { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 113 | version: IdentVersion, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Identifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `elfy` (lib test) generated 18 warnings (16 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/elfy-8d3dc13ae68d2c82) [INFO] [stdout] test test::section_iters ... ok [INFO] [stdout] test types::test::parse_elf_header ... ok [INFO] [stdout] test types::test::try_get_section ... ok [INFO] [stdout] test types::test::try_get_fake_section ... ok [INFO] [stdout] test test::segment_iters ... ok [INFO] [stdout] test test::get_section_bytes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e8cfaa67d01bf3676fd7c23245744025588d8bee08c405250bfc761e49717023", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8cfaa67d01bf3676fd7c23245744025588d8bee08c405250bfc761e49717023", kill_on_drop: false }` [INFO] [stdout] e8cfaa67d01bf3676fd7c23245744025588d8bee08c405250bfc761e49717023