[INFO] cloning repository https://github.com/Rantanen/waste [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rantanen/waste" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRantanen%2Fwaste", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRantanen%2Fwaste'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b3c0c455c28096ee5e706a0a39877acb4f06e4c [INFO] testing Rantanen/waste against beta-2025-02-18 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRantanen%2Fwaste" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Rantanen/waste on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Rantanen/waste [INFO] finished tweaking git repo https://github.com/Rantanen/waste [INFO] tweaked toml for git repo https://github.com/Rantanen/waste written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Rantanen/waste already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d1e88246e6b246786a1fc23cc46f38109ca47adfa8d45ae693685b65421c417 [INFO] running `Command { std: "docker" "start" "-a" "6d1e88246e6b246786a1fc23cc46f38109ca47adfa8d45ae693685b65421c417", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d1e88246e6b246786a1fc23cc46f38109ca47adfa8d45ae693685b65421c417", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d1e88246e6b246786a1fc23cc46f38109ca47adfa8d45ae693685b65421c417", kill_on_drop: false }` [INFO] [stdout] 6d1e88246e6b246786a1fc23cc46f38109ca47adfa8d45ae693685b65421c417 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac5b34ee65318a207670e8355dda59e07f80f2758d2099972ce97c1cfb81da2b [INFO] running `Command { std: "docker" "start" "-a" "ac5b34ee65318a207670e8355dda59e07f80f2758d2099972ce97c1cfb81da2b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling syn v1.0.54 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling anyhow v1.0.35 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling widestring v0.4.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling waste v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `segment` [INFO] [stdout] --> src/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let segment = match start { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_segment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/main.rs:316:27 [INFO] [stdout] | [INFO] [stdout] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `copied` [INFO] [stdout] --> src/main.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | let copied = std::io::copy(&mut limited, writer)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_copied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `magic2`, `version`, `checksum`, `timestamp`, and `flags` are never read [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | signature: u32, [INFO] [stdout] 15 | magic2: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | version: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | checksum: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | timestamp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | flags: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` 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 `0` is never read [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Unknown(u32), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `StreamType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 85 - Unknown(u32), [INFO] [stdout] 85 + Unknown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_len` is never read [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct StreamHeader { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 90 | ty: StreamType, [INFO] [stdout] 91 | data_len: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadListStream` is never constructed [INFO] [stdout] --> src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | struct ThreadListStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 118 | impl ThreadListStream { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 119 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadListThread` is never constructed [INFO] [stdout] --> src/main.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct ThreadListThread { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl ThreadListThread { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 139 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemoryDescriptor` is never constructed [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | struct MemoryDescriptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl MemoryDescriptor { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 159 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_len` and `data_offset` are never read [INFO] [stdout] --> src/main.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 168 | struct LocationDescriptor { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 169 | data_len: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | data_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionTableStream` is never constructed [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | struct FunctionTableStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 193 | impl FunctionTableStream { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 194 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionTableDescriptor` is never constructed [INFO] [stdout] --> src/main.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | struct FunctionTableDescriptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 215 | impl FunctionTableDescriptor { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 216 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 241 | struct Module { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 244 | checksum: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 245 | timestamp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 246 | module_name_offset: u32, [INFO] [stdout] 247 | file_info: FixedFileInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 248 | cv_record: LocationDescriptor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 249 | misc_record: LocationDescriptor, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 250 | reserved0: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 251 | reserved1: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_memory` is never used [INFO] [stdout] --> src/main.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 294 | impl Memory64List { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 382 | struct FixedFileInfo { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 383 | signature: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 384 | struct_version: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 385 | file_version: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 386 | product_version: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 387 | file_flags_mask: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 388 | file_flags: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 389 | file_os: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 390 | file_type: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 391 | file_subtype: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 392 | file_date_ms: u32, // Can't use u64 due to alignment. [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 393 | file_date_ls: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FixedFileInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(num_derive::FromPrimitive, Debug)] [INFO] [stdout] | ^------------------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KnownStreamType` [INFO] [stdout] 40 | enum KnownStreamType { [INFO] [stdout] | --------------- `KnownStreamType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `num_derive::FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `num_derive::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 `num_derive::FromPrimitive` (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 5.93s [INFO] running `Command { std: "docker" "inspect" "ac5b34ee65318a207670e8355dda59e07f80f2758d2099972ce97c1cfb81da2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac5b34ee65318a207670e8355dda59e07f80f2758d2099972ce97c1cfb81da2b", kill_on_drop: false }` [INFO] [stdout] ac5b34ee65318a207670e8355dda59e07f80f2758d2099972ce97c1cfb81da2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 708cf55887f77c65970e5b61947906bd38b30b39bf8390cd9af7bcd5909d181a [INFO] running `Command { std: "docker" "start" "-a" "708cf55887f77c65970e5b61947906bd38b30b39bf8390cd9af7bcd5909d181a", kill_on_drop: false }` [INFO] [stderr] Compiling waste v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `segment` [INFO] [stdout] --> src/main.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let segment = match start { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_segment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/main.rs:316:27 [INFO] [stdout] | [INFO] [stdout] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `copied` [INFO] [stdout] --> src/main.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | let copied = std::io::copy(&mut limited, writer)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_copied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `magic2`, `version`, `checksum`, `timestamp`, and `flags` are never read [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | signature: u32, [INFO] [stdout] 15 | magic2: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | version: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | checksum: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | timestamp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | flags: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` 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 `0` is never read [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Unknown(u32), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `StreamType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 85 - Unknown(u32), [INFO] [stdout] 85 + Unknown(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_len` is never read [INFO] [stdout] --> src/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct StreamHeader { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 90 | ty: StreamType, [INFO] [stdout] 91 | data_len: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadListStream` is never constructed [INFO] [stdout] --> src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | struct ThreadListStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 118 | impl ThreadListStream { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 119 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadListThread` is never constructed [INFO] [stdout] --> src/main.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct ThreadListThread { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl ThreadListThread { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 139 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemoryDescriptor` is never constructed [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | struct MemoryDescriptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl MemoryDescriptor { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 159 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_len` and `data_offset` are never read [INFO] [stdout] --> src/main.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 168 | struct LocationDescriptor { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 169 | data_len: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | data_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionTableStream` is never constructed [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | struct FunctionTableStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 193 | impl FunctionTableStream { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 194 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionTableDescriptor` is never constructed [INFO] [stdout] --> src/main.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | struct FunctionTableDescriptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/main.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 215 | impl FunctionTableDescriptor { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 216 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 241 | struct Module { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 244 | checksum: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 245 | timestamp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 246 | module_name_offset: u32, [INFO] [stdout] 247 | file_info: FixedFileInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 248 | cv_record: LocationDescriptor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 249 | misc_record: LocationDescriptor, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 250 | reserved0: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 251 | reserved1: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_memory` is never used [INFO] [stdout] --> src/main.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 294 | impl Memory64List { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 382 | struct FixedFileInfo { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 383 | signature: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 384 | struct_version: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 385 | file_version: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 386 | product_version: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 387 | file_flags_mask: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 388 | file_flags: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 389 | file_os: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 390 | file_type: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 391 | file_subtype: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 392 | file_date_ms: u32, // Can't use u64 due to alignment. [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 393 | file_date_ls: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FixedFileInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(num_derive::FromPrimitive, Debug)] [INFO] [stdout] | ^------------------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KnownStreamType` [INFO] [stdout] 40 | enum KnownStreamType { [INFO] [stdout] | --------------- `KnownStreamType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `num_derive::FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `num_derive::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 `num_derive::FromPrimitive` (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 0.53s [INFO] running `Command { std: "docker" "inspect" "708cf55887f77c65970e5b61947906bd38b30b39bf8390cd9af7bcd5909d181a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "708cf55887f77c65970e5b61947906bd38b30b39bf8390cd9af7bcd5909d181a", kill_on_drop: false }` [INFO] [stdout] 708cf55887f77c65970e5b61947906bd38b30b39bf8390cd9af7bcd5909d181a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dcdd4732c0ea9964d9e8cda9745ba8db65dad86c4b69d082468049afc4d5c969 [INFO] running `Command { std: "docker" "start" "-a" "dcdd4732c0ea9964d9e8cda9745ba8db65dad86c4b69d082468049afc4d5c969", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `segment` [INFO] [stderr] --> src/main.rs:320:13 [INFO] [stderr] | [INFO] [stderr] 320 | let segment = match start { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_segment` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reader` [INFO] [stderr] --> src/main.rs:316:27 [INFO] [stderr] | [INFO] [stderr] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `copied` [INFO] [stderr] --> src/main.rs:356:17 [INFO] [stderr] | [INFO] [stderr] 356 | let copied = std::io::copy(&mut limited, writer)?; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_copied` [INFO] [stderr] [INFO] [stderr] warning: fields `magic2`, `version`, `checksum`, `timestamp`, and `flags` are never read [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 13 | struct Header { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 14 | signature: u32, [INFO] [stderr] 15 | magic2: u16, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 16 | version: u16, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | checksum: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 20 | timestamp: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 21 | flags: u64, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Header` 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 `0` is never read [INFO] [stderr] --> src/main.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | Unknown(u32), [INFO] [stderr] | ------- ^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `StreamType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 85 - Unknown(u32), [INFO] [stderr] 85 + Unknown(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `data_len` is never read [INFO] [stderr] --> src/main.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 89 | struct StreamHeader { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 90 | ty: StreamType, [INFO] [stderr] 91 | data_len: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StreamHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ThreadListStream` is never constructed [INFO] [stderr] --> src/main.rs:114:8 [INFO] [stderr] | [INFO] [stderr] 114 | struct ThreadListStream { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `read` is never used [INFO] [stderr] --> src/main.rs:119:8 [INFO] [stderr] | [INFO] [stderr] 118 | impl ThreadListStream { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 119 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ThreadListThread` is never constructed [INFO] [stderr] --> src/main.rs:128:8 [INFO] [stderr] | [INFO] [stderr] 128 | struct ThreadListThread { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `read` is never used [INFO] [stderr] --> src/main.rs:139:8 [INFO] [stderr] | [INFO] [stderr] 138 | impl ThreadListThread { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 139 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MemoryDescriptor` is never constructed [INFO] [stderr] --> src/main.rs:153:8 [INFO] [stderr] | [INFO] [stderr] 153 | struct MemoryDescriptor { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `read` is never used [INFO] [stderr] --> src/main.rs:159:8 [INFO] [stderr] | [INFO] [stderr] 158 | impl MemoryDescriptor { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 159 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `data_len` and `data_offset` are never read [INFO] [stderr] --> src/main.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 168 | struct LocationDescriptor { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] 169 | data_len: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 170 | data_offset: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LocationDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `FunctionTableStream` is never constructed [INFO] [stderr] --> src/main.rs:183:8 [INFO] [stderr] | [INFO] [stderr] 183 | struct FunctionTableStream { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `read` is never used [INFO] [stderr] --> src/main.rs:194:8 [INFO] [stderr] | [INFO] [stderr] 193 | impl FunctionTableStream { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] 194 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FunctionTableDescriptor` is never constructed [INFO] [stderr] --> src/main.rs:207:8 [INFO] [stderr] | [INFO] [stderr] 207 | struct FunctionTableDescriptor { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `read` is never used [INFO] [stderr] --> src/main.rs:216:8 [INFO] [stderr] | [INFO] [stderr] 215 | impl FunctionTableDescriptor { [INFO] [stderr] | ---------------------------- associated function in this implementation [INFO] [stderr] 216 | fn read(reader: &mut dyn Read) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/main.rs:244:5 [INFO] [stderr] | [INFO] [stderr] 241 | struct Module { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 244 | checksum: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 245 | timestamp: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 246 | module_name_offset: u32, [INFO] [stderr] 247 | file_info: FixedFileInfo, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 248 | cv_record: LocationDescriptor, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 249 | misc_record: LocationDescriptor, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 250 | reserved0: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 251 | reserved1: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `read_memory` is never used [INFO] [stderr] --> src/main.rs:316:8 [INFO] [stderr] | [INFO] [stderr] 294 | impl Memory64List { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 316 | fn read_memory(&self, reader: &mut dyn Read, addr: u64, length: u64) -> bytes::BytesMut { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/main.rs:383:5 [INFO] [stderr] | [INFO] [stderr] 382 | struct FixedFileInfo { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 383 | signature: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 384 | struct_version: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 385 | file_version: u64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 386 | product_version: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 387 | file_flags_mask: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 388 | file_flags: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 389 | file_os: u32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 390 | file_type: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 391 | file_subtype: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 392 | file_date_ms: u32, // Can't use u64 due to alignment. [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 393 | file_date_ls: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FixedFileInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/main.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | #[derive(num_derive::FromPrimitive, Debug)] [INFO] [stderr] | ^------------------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KnownStreamType` [INFO] [stderr] 40 | enum KnownStreamType { [INFO] [stderr] | --------------- `KnownStreamType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `num_derive::FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `num_derive::FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `num_derive::FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `waste` (bin "waste" test) generated 21 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/waste-d8a892319920a3e9) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dcdd4732c0ea9964d9e8cda9745ba8db65dad86c4b69d082468049afc4d5c969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcdd4732c0ea9964d9e8cda9745ba8db65dad86c4b69d082468049afc4d5c969", kill_on_drop: false }` [INFO] [stdout] dcdd4732c0ea9964d9e8cda9745ba8db65dad86c4b69d082468049afc4d5c969