[INFO] fetching crate rust-unreal-unpak 0.1.0... [INFO] building rust-unreal-unpak-0.1.0 against master#a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 for pr-93180 [INFO] extracting crate rust-unreal-unpak 0.1.0 into /workspace/builds/worker-85/source [INFO] validating manifest of crates.io crate rust-unreal-unpak 0.1.0 on toolchain a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust-unreal-unpak 0.1.0 [INFO] finished tweaking crates.io crate rust-unreal-unpak 0.1.0 [INFO] tweaked toml for crates.io crate rust-unreal-unpak 0.1.0 written to /workspace/builds/worker-85/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2e50150642405b9c5612d4e186469f8002d277369c6897f56ac779bfc589244 [INFO] running `Command { std: "docker" "start" "-a" "c2e50150642405b9c5612d4e186469f8002d277369c6897f56ac779bfc589244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2e50150642405b9c5612d4e186469f8002d277369c6897f56ac779bfc589244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2e50150642405b9c5612d4e186469f8002d277369c6897f56ac779bfc589244", kill_on_drop: false }` [INFO] [stdout] c2e50150642405b9c5612d4e186469f8002d277369c6897f56ac779bfc589244 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98cb73b2a357eb743e10e6f4ac342c54b0e5fc11996aed6d450eda0ac3cd181e [INFO] running `Command { std: "docker" "start" "-a" "98cb73b2a357eb743e10e6f4ac342c54b0e5fc11996aed6d450eda0ac3cd181e", 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] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.116 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling compress v0.2.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tokio-byteorder v0.3.0 [INFO] [stderr] Compiling rust-unreal-unpak v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/pak/pak_reader.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Cursor, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/pak/pak_reader.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio_byteorder::{LittleEndian, BigEndian, AsyncReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pak::*` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use pak::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut header = self.reader.read_buffer(version_size).await?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let mut reader = &mut Cursor::new(header); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cursor_ext.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => panic!("Invalid decompression type: {:?}", decompress_type) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bytes_read` is never read [INFO] [stdout] --> src/cursor_ext.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut bytes_read = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `start` is assigned to, but never used [INFO] [stdout] --> src/pak/pak_reader.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | let mut start = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_start` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start` is never read [INFO] [stdout] --> src/pak/pak_reader.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | start = idx + 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cursor_ext.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut reader = Cursor::new(buffer); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BUFFER_SIZE` [INFO] [stdout] --> src/pak/pak_reader.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | static BUFFER_SIZE: u32 = 32 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> src/pak/pak_reader.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | start: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flags` [INFO] [stdout] --> src/pak/pak_reader.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | flags: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `timestamp` [INFO] [stdout] --> src/pak/pak_reader.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/pak/pak_reader.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | hash: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Initial` [INFO] [stdout] --> src/pak/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Initial = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RelativeChunkOffsets` [INFO] [stdout] --> src/pak/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | RelativeChunkOffsets = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DeleteRecords` [INFO] [stdout] --> src/pak/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | DeleteRecords = 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Last` [INFO] [stdout] --> src/pak/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Last, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | self.seek(SeekFrom::End(index)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | self.seek(SeekFrom::Start(index as u64)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pak/pak_reader.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | self.reader.seek(SeekFrom::Start(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.11s [INFO] running `Command { std: "docker" "inspect" "98cb73b2a357eb743e10e6f4ac342c54b0e5fc11996aed6d450eda0ac3cd181e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98cb73b2a357eb743e10e6f4ac342c54b0e5fc11996aed6d450eda0ac3cd181e", kill_on_drop: false }` [INFO] [stdout] 98cb73b2a357eb743e10e6f4ac342c54b0e5fc11996aed6d450eda0ac3cd181e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-85/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdf6664aee21588f5c60f16037dfcaa0b21b770636ccb05337c99b1ebcf83bce [INFO] running `Command { std: "docker" "start" "-a" "bdf6664aee21588f5c60f16037dfcaa0b21b770636ccb05337c99b1ebcf83bce", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/pak/pak_reader.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Cursor, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/pak/pak_reader.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio_byteorder::{LittleEndian, BigEndian, AsyncReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pak::*` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use pak::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut header = self.reader.read_buffer(version_size).await?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let mut reader = &mut Cursor::new(header); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cursor_ext.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => panic!("Invalid decompression type: {:?}", decompress_type) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bytes_read` is never read [INFO] [stdout] --> src/cursor_ext.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut bytes_read = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `start` is assigned to, but never used [INFO] [stdout] --> src/pak/pak_reader.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | let mut start = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_start` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start` is never read [INFO] [stdout] --> src/pak/pak_reader.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | start = idx + 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cursor_ext.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut reader = Cursor::new(buffer); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BUFFER_SIZE` [INFO] [stdout] --> src/pak/pak_reader.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | static BUFFER_SIZE: u32 = 32 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> src/pak/pak_reader.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | start: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flags` [INFO] [stdout] --> src/pak/pak_reader.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | flags: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `timestamp` [INFO] [stdout] --> src/pak/pak_reader.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/pak/pak_reader.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | hash: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Initial` [INFO] [stdout] --> src/pak/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Initial = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RelativeChunkOffsets` [INFO] [stdout] --> src/pak/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | RelativeChunkOffsets = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DeleteRecords` [INFO] [stdout] --> src/pak/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | DeleteRecords = 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Last` [INFO] [stdout] --> src/pak/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Last, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | self.seek(SeekFrom::End(index)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | self.seek(SeekFrom::Start(index as u64)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pak/pak_reader.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | self.reader.seek(SeekFrom::Start(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-unreal-unpak v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/pak/pak_reader.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Cursor, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/pak/pak_reader.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio_byteorder::{LittleEndian, BigEndian, AsyncReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut header = self.reader.read_buffer(version_size).await?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pak/pak_reader.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let mut reader = &mut Cursor::new(header); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cursor_ext.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => panic!("Invalid decompression type: {:?}", decompress_type) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bytes_read` is never read [INFO] [stdout] --> src/cursor_ext.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut bytes_read = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pak` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let pak = PakFile::from_memory(TEST_FILE_BUFFER.clone()).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pak` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `start` is assigned to, but never used [INFO] [stdout] --> src/pak/pak_reader.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | let mut start = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_start` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start` is never read [INFO] [stdout] --> src/pak/pak_reader.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | start = idx + 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cursor_ext.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut reader = Cursor::new(buffer); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BUFFER_SIZE` [INFO] [stdout] --> src/pak/pak_reader.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | static BUFFER_SIZE: u32 = 32 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> src/pak/pak_reader.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | start: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flags` [INFO] [stdout] --> src/pak/pak_reader.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | flags: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `timestamp` [INFO] [stdout] --> src/pak/pak_reader.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/pak/pak_reader.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | hash: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PakEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pak/pak_reader.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Initial` [INFO] [stdout] --> src/pak/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Initial = 1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RelativeChunkOffsets` [INFO] [stdout] --> src/pak/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | RelativeChunkOffsets = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DeleteRecords` [INFO] [stdout] --> src/pak/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | DeleteRecords = 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Last` [INFO] [stdout] --> src/pak/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | Last, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | self.seek(SeekFrom::End(index)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cursor_ext.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | self.seek(SeekFrom::Start(index as u64)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | file.write_all(buffer.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pak/pak_reader.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | self.reader.seek(SeekFrom::Start(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.74s [INFO] running `Command { std: "docker" "inspect" "bdf6664aee21588f5c60f16037dfcaa0b21b770636ccb05337c99b1ebcf83bce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdf6664aee21588f5c60f16037dfcaa0b21b770636ccb05337c99b1ebcf83bce", kill_on_drop: false }` [INFO] [stdout] bdf6664aee21588f5c60f16037dfcaa0b21b770636ccb05337c99b1ebcf83bce