[INFO] cloning repository https://github.com/tehsmeely/lizards [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tehsmeely/lizards" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Flizards", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Flizards'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce9ab75aa49ff9bd0a8f7f657f21676b9bdb5073 [INFO] checking tehsmeely/lizards against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Flizards" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/lizards on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tehsmeely/lizards [INFO] finished tweaking git repo https://github.com/tehsmeely/lizards [INFO] tweaked toml for git repo https://github.com/tehsmeely/lizards written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tehsmeely/lizards 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6df0ea9f8e1c9b437f31a11051814a38ad8a9193c8e47c03695a4d74b026ff0 [INFO] running `Command { std: "docker" "start" "-a" "e6df0ea9f8e1c9b437f31a11051814a38ad8a9193c8e47c03695a4d74b026ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6df0ea9f8e1c9b437f31a11051814a38ad8a9193c8e47c03695a4d74b026ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6df0ea9f8e1c9b437f31a11051814a38ad8a9193c8e47c03695a4d74b026ff0", kill_on_drop: false }` [INFO] [stdout] e6df0ea9f8e1c9b437f31a11051814a38ad8a9193c8e47c03695a4d74b026ff0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58b4a650fc9e24ad88c74078792ea77f4fed849e79bc3687999e9f4f2e714ca5 [INFO] running `Command { std: "docker" "start" "-a" "58b4a650fc9e24ad88c74078792ea77f4fed849e79bc3687999e9f4f2e714ca5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling priority-queue v1.2.1 [INFO] [stderr] Checking os_str_bytes v6.0.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking dot v0.1.4 [INFO] [stderr] Checking rmp v0.8.11 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking rmp-serde v1.1.0 [INFO] [stderr] Checking lizards v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `BufWriter`, `Read`, `Write` [INFO] [stdout] --> src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `output_stream::OutputStream` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use output_stream::OutputStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::file_io::FileInputOutput` [INFO] [stdout] --> src/file_io.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use crate::file_io::FileInputOutput; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/file_io.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeMap` [INFO] [stdout] --> src/header.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::huffman::{CodeMap, HuffmanTree}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `BufWriter`, `Read`, `Write` [INFO] [stdout] --> src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::header::Header` [INFO] [stdout] --> src/header.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | use crate::header::Header; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::MAX_LOOKBACK_BUFFER_LEN` [INFO] [stdout] --> src/header.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use crate::MAX_LOOKBACK_BUFFER_LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::huffman::ByteStats` [INFO] [stdout] --> src/helpers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::huffman::ByteStats; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry::Vacant` [INFO] [stdout] --> src/huffman.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::hash_map::Entry::Vacant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `output_stream::OutputStream` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use output_stream::OutputStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeMap` [INFO] [stdout] --> src/header.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::huffman::{CodeMap, HuffmanTree}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::huffman::ByteStats` [INFO] [stdout] --> src/helpers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::huffman::ByteStats; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry::Vacant` [INFO] [stdout] --> src/huffman.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::hash_map::Entry::Vacant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/huffman.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | working_bytes |= (value_bits.set_bits >> num_bits_on_new); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - working_bytes |= (value_bits.set_bits >> num_bits_on_new); [INFO] [stdout] 158 + working_bytes |= value_bits.set_bits >> num_bits_on_new; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bits`, `ByteStats`, `CodeMap`, `build_tree`, `pack_to_u8`, `tree_to_code_map`, `unpack_bytes` [INFO] [stdout] --> src/huffman.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | build_tree, pack_to_u8, tree_to_code_map, unpack_bytes, BitStream, Bits, ByteStats, CodeMap, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/huffman.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize`, `Ordering` [INFO] [stdout] --> src/huffman.rs:455:29 [INFO] [stdout] | [INFO] [stdout] 455 | use std::sync::atomic::{AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::OffsetLen` [INFO] [stdout] --> src/offset_len.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | use super::OffsetLen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/output_stream.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> src/output_stream.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | use std::io::{BufWriter, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bits`, `CodeMap` [INFO] [stdout] --> src/output_stream.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::huffman::{Bits, CodeMap}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::output_stream::OutputStream` [INFO] [stdout] --> src/output_stream.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | use crate::output_stream::OutputStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/huffman.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | working_bytes |= (value_bits.set_bits >> num_bits_on_new); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - working_bytes |= (value_bits.set_bits >> num_bits_on_new); [INFO] [stdout] 158 + working_bytes |= value_bits.set_bits >> num_bits_on_new; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EncodedValue`, `helpers` [INFO] [stdout] --> src/output_stream.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | use crate::{helpers, EncodedValue}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/output_stream.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | use std::io::{BufWriter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encode.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | let mut count = byte_stats.entry(b).or_insert(0); [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/encode.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut writer = BufWriter::new(outf); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encode.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut debug_writer = match file_io.debug_encoded_filename.as_deref() { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encode.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | let mut count = byte_stats.entry(b).or_insert(0); [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/encode.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut writer = BufWriter::new(outf); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/encode.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut debug_writer = match file_io.debug_encoded_filename.as_deref() { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/header.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut count = stats.entry(*byte).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | mut end_code: &mut Option, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn unpack_bytes(mut input_bytes: &Vec, tree: &HuffmanTree) -> Vec { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | let mut node_id = AtomicUsize::new(1); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | let mut bitstream = BitStream::new(|| { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | mut end_code: &mut Option, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn unpack_bytes(mut input_bytes: &Vec, tree: &HuffmanTree) -> Vec { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | let mut node_id = AtomicUsize::new(1); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:464:17 [INFO] [stdout] | [INFO] [stdout] 464 | let mut count = stats.entry(*byte).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | let mut count = stats.entry(*byte).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 554 | let mut bitstream = BitStream::new(|| match test_count.fetch_add(1, Ordering::Relaxed) { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut bitstream = BitStream::new(|| { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/huffman.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | let mut bitstream = BitStream::new(|| { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/output_stream.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let mut output_writer = BufWriter::new(&mut output_buf); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEBUG` is never used [INFO] [stdout] --> src/main.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/main.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl EncodedValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 109 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FinaliseMatch` is never constructed [INFO] [stdout] --> src/decode.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 160 | enum RawByteReadOnFinish { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 161 | Nothing, [INFO] [stdout] 162 | FinaliseMatch(OffsetLen), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawByteReadOnFinish` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8_iter_str` is never used [INFO] [stdout] --> src/helpers.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn u8_iter_str<'a, I: Iterator>(i: I) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/huffman.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl CodeMap { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 16 | pub fn new(codes: HashMap, end_code: Bits) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitstream_more_than_u64` is never used [INFO] [stdout] --> src/huffman.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | fn bitstream_more_than_u64() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | writer.write_all(&output_buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 155 | let _ = writer.write_all(&output_buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/encode.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | input_file_reader.rewind(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = input_file_reader.rewind(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/huffman.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | end_code.insert(bits.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = end_code.insert(bits.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.output.write_all(chunk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = self.output.write_all(chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | writer.write_all(&self.buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = writer.write_all(&self.buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.output.write_all(&header.to_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = self.output.write_all(&header.to_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | self.output.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = self.output.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEBUG` is never used [INFO] [stdout] --> src/main.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/main.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl EncodedValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 109 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FinaliseMatch` is never constructed [INFO] [stdout] --> src/decode.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 160 | enum RawByteReadOnFinish { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 161 | Nothing, [INFO] [stdout] 162 | FinaliseMatch(OffsetLen), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawByteReadOnFinish` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitstream_more_than_u64` is never used [INFO] [stdout] --> src/huffman.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | fn bitstream_more_than_u64() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | writer.write_all(&output_buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 155 | let _ = writer.write_all(&output_buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/encode.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | input_file_reader.rewind(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = input_file_reader.rewind(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/huffman.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | end_code.insert(bits.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = end_code.insert(bits.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.output.write_all(chunk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = self.output.write_all(chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | writer.write_all(&self.buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = writer.write_all(&self.buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.output.write_all(&header.to_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = self.output.write_all(&header.to_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | self.output.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = self.output.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.90s [INFO] running `Command { std: "docker" "inspect" "58b4a650fc9e24ad88c74078792ea77f4fed849e79bc3687999e9f4f2e714ca5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58b4a650fc9e24ad88c74078792ea77f4fed849e79bc3687999e9f4f2e714ca5", kill_on_drop: false }` [INFO] [stdout] 58b4a650fc9e24ad88c74078792ea77f4fed849e79bc3687999e9f4f2e714ca5 [INFO] checking tehsmeely/lizards against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftehsmeely%2Flizards" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tehsmeely/lizards on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tehsmeely/lizards [INFO] finished tweaking git repo https://github.com/tehsmeely/lizards [INFO] tweaked toml for git repo https://github.com/tehsmeely/lizards written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tehsmeely/lizards 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3148e5835ba1b0d6c19f64f52c6da133a95ee03966ed5377a03541b705d05d1e [INFO] running `Command { std: "docker" "start" "-a" "3148e5835ba1b0d6c19f64f52c6da133a95ee03966ed5377a03541b705d05d1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3148e5835ba1b0d6c19f64f52c6da133a95ee03966ed5377a03541b705d05d1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3148e5835ba1b0d6c19f64f52c6da133a95ee03966ed5377a03541b705d05d1e", kill_on_drop: false }` [INFO] [stdout] 3148e5835ba1b0d6c19f64f52c6da133a95ee03966ed5377a03541b705d05d1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e0d48ffbb208ccc5ac9d0edc5f4bdc7e70fa5e1a1814d1a1017760c328acbf6 [INFO] running `Command { std: "docker" "start" "-a" "4e0d48ffbb208ccc5ac9d0edc5f4bdc7e70fa5e1a1814d1a1017760c328acbf6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling priority-queue v1.2.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking os_str_bytes v6.0.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking dot v0.1.4 [INFO] [stderr] Checking rmp v0.8.11 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking rmp-serde v1.1.0 [INFO] [stderr] Checking lizards v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/output_stream.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (8 fixes) [INFO] [stderr] Fixed src/header.rs (3 fixes) [INFO] [stderr] Fixed src/helpers.rs (1 fix) [INFO] [stderr] Fixed src/encode.rs (3 fixes) [INFO] [stderr] Fixed src/huffman.rs (10 fixes) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEBUG` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/main.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl EncodedValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 101 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FinaliseMatch` is never constructed [INFO] [stdout] --> src/decode.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 160 | enum RawByteReadOnFinish { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 161 | Nothing, [INFO] [stdout] 162 | FinaliseMatch(OffsetLen), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawByteReadOnFinish` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitstream_more_than_u64` is never used [INFO] [stdout] --> src/huffman.rs:598:8 [INFO] [stdout] | [INFO] [stdout] 598 | fn bitstream_more_than_u64() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | writer.write_all(&output_buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 155 | let _ = writer.write_all(&output_buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/encode.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | input_file_reader.rewind(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = input_file_reader.rewind(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/huffman.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | end_code.insert(bits.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = end_code.insert(bits.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.output.write_all(chunk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = self.output.write_all(chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | writer.write_all(&self.buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = writer.write_all(&self.buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.output.write_all(&header.to_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = self.output.write_all(&header.to_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | self.output.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = self.output.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/header.rs (2 fixes) [INFO] [stderr] Fixed src/file_io.rs (2 fixes) [INFO] [stderr] Fixed src/offset_len.rs (1 fix) [INFO] [stderr] Fixed src/output_stream.rs (5 fixes) [INFO] [stderr] Fixed src/huffman.rs (3 fixes) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEBUG` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/main.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl EncodedValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 101 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FinaliseMatch` is never constructed [INFO] [stdout] --> src/decode.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 160 | enum RawByteReadOnFinish { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 161 | Nothing, [INFO] [stdout] 162 | FinaliseMatch(OffsetLen), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawByteReadOnFinish` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8_iter_str` is never used [INFO] [stdout] --> src/helpers.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn u8_iter_str<'a, I: Iterator>(i: I) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/huffman.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl CodeMap { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new(codes: HashMap, end_code: Bits) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitstream_more_than_u64` is never used [INFO] [stdout] --> src/huffman.rs:598:8 [INFO] [stdout] | [INFO] [stdout] 598 | fn bitstream_more_than_u64() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | writer.write_all(&output_buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 155 | let _ = writer.write_all(&output_buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/encode.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | input_file_reader.rewind(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = input_file_reader.rewind(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/huffman.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | end_code.insert(bits.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = end_code.insert(bits.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.output.write_all(chunk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = self.output.write_all(chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | writer.write_all(&self.buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = writer.write_all(&self.buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.output.write_all(&header.to_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = self.output.write_all(&header.to_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | self.output.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = self.output.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.57s [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking lizards v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:161:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileInputOutput` [INFO] [stdout] --> src/file_io.rs:76:27 [INFO] [stdout] | [INFO] [stdout] 76 | let encoding_io = FileInputOutput::new_from_unencoded("file.txt", None, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FileInputOutput` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::FileInputOutput; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:77:52 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(encoding_io.unencoded_filename, PathBuf::from("file.txt")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | Some(PathBuf::from("file.dblzd")) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(encoding_io.encoded_filename, PathBuf::from("file.lizard")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileInputOutput` [INFO] [stdout] --> src/file_io.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | FileInputOutput::new_from_unencoded("file.txt", Some("custom_output.foo"), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FileInputOutput` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::FileInputOutput; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:86:52 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(encoding_io.unencoded_filename, PathBuf::from("file.txt")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | PathBuf::from("custom_output.foo") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileInputOutput` [INFO] [stdout] --> src/file_io.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let decoding_io = FileInputOutput::new_from_encoded("file.lizard", None); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FileInputOutput` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::FileInputOutput; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(decoding_io.encoded_filename, PathBuf::from("file.lizard")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:99:52 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(decoding_io.unencoded_filename, PathBuf::from("file.txt")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileInputOutput` [INFO] [stdout] --> src/file_io.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | FileInputOutput::new_from_encoded("file.lizard", Some("my_unencoded_file.log")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FileInputOutput` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::FileInputOutput; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:103:50 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(decoding_io.encoded_filename, PathBuf::from("file.lizard")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file_io.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | PathBuf::from("my_unencoded_file.log") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::file_io::PathBuf; [INFO] [stdout] | [INFO] [stdout] 74 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Header` in this scope [INFO] [stdout] --> src/header.rs:93:22 [INFO] [stdout] | [INFO] [stdout] 93 | let header = Header { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 + use crate::header::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_LOOKBACK_BUFFER_LEN` in this scope [INFO] [stdout] --> src/header.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | lookback_buffer_len: MAX_LOOKBACK_BUFFER_LEN as u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 81 + use crate::MAX_LOOKBACK_BUFFER_LEN; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Header` [INFO] [stdout] --> src/header.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | let output_header = Header::from_bytes(&header_as_bytes); [INFO] [stdout] | ^^^^^^ use of undeclared type `Header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 + use crate::header::Header; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ByteStats` [INFO] [stdout] --> src/huffman.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | let mut stats = ByteStats::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ByteStats` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::ByteStats; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `build_tree` in this scope [INFO] [stdout] --> src/huffman.rs:466:20 [INFO] [stdout] | [INFO] [stdout] 466 | let tree = build_tree(stats); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::build_tree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tree_to_code_map` in this scope [INFO] [stdout] --> src/huffman.rs:469:24 [INFO] [stdout] | [INFO] [stdout] 469 | let code_map = tree_to_code_map(&tree); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::tree_to_code_map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `pack_to_u8` in this scope [INFO] [stdout] --> src/huffman.rs:471:29 [INFO] [stdout] | [INFO] [stdout] 471 | let encoded_bytes = pack_to_u8(&code_map, input.as_bytes().iter().cloned()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::pack_to_u8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `unpack_bytes` in this scope [INFO] [stdout] --> src/huffman.rs:474:28 [INFO] [stdout] | [INFO] [stdout] 474 | let output_bytes = unpack_bytes(&encoded_bytes, &tree); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::unpack_bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ByteStats` [INFO] [stdout] --> src/huffman.rs:488:25 [INFO] [stdout] | [INFO] [stdout] 488 | let mut stats = ByteStats::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ByteStats` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::ByteStats; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `build_tree` in this scope [INFO] [stdout] --> src/huffman.rs:493:20 [INFO] [stdout] | [INFO] [stdout] 493 | let tree = build_tree(stats); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::build_tree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `tree_to_code_map` in this scope [INFO] [stdout] --> src/huffman.rs:495:24 [INFO] [stdout] | [INFO] [stdout] 495 | let code_map = tree_to_code_map(&tree); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::tree_to_code_map; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `pack_to_u8` in this scope [INFO] [stdout] --> src/huffman.rs:496:29 [INFO] [stdout] | [INFO] [stdout] 496 | let encoded_bytes = pack_to_u8(&code_map, input.as_bytes().iter().cloned()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::pack_to_u8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `unpack_bytes` in this scope [INFO] [stdout] --> src/huffman.rs:503:28 [INFO] [stdout] | [INFO] [stdout] 503 | let output_bytes = unpack_bytes(&encoded_bytes, &tree); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::unpack_bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/huffman.rs:514:29 [INFO] [stdout] | [INFO] [stdout] 514 | let mut codes = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::HashMap; [INFO] [stdout] | [INFO] [stdout] 449 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:515:38 [INFO] [stdout] | [INFO] [stdout] 515 | codes.insert(0b00000001, Bits::from((0b00001011, 4))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:516:38 [INFO] [stdout] | [INFO] [stdout] 516 | codes.insert(0b00000010, Bits::from((0b00001001, 4))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:517:38 [INFO] [stdout] | [INFO] [stdout] 517 | codes.insert(0b00000100, Bits::from((0b00111101, 6))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:518:38 [INFO] [stdout] | [INFO] [stdout] 518 | codes.insert(0b00001000, Bits::from((0b10101011, 8))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:519:38 [INFO] [stdout] | [INFO] [stdout] 519 | codes.insert(0b00000101, Bits::from((0b00000001, 3))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/huffman.rs:520:28 [INFO] [stdout] | [INFO] [stdout] 520 | let end_code = Bits::from((0b11111111, 8)); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodeMap` [INFO] [stdout] --> src/huffman.rs:521:13 [INFO] [stdout] | [INFO] [stdout] 521 | CodeMap::new(codes, end_code) [INFO] [stdout] | ^^^^^^^ use of undeclared type `CodeMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::CodeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `pack_to_u8` in this scope [INFO] [stdout] --> src/huffman.rs:543:22 [INFO] [stdout] | [INFO] [stdout] 543 | let output = pack_to_u8(&code_map, input_bytes.iter().cloned()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::pack_to_u8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicUsize` [INFO] [stdout] --> src/huffman.rs:552:26 [INFO] [stdout] | [INFO] [stdout] 552 | let test_count = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `AtomicUsize` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 449 + use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 449 + use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/huffman.rs:553:73 [INFO] [stdout] | [INFO] [stdout] 553 | let bitstream = BitStream::new(|| match test_count.fetch_add(1, Ordering::Relaxed) { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 449 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 449 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 449 + use crate::huffman::Ordering; [INFO] [stdout] | [INFO] [stdout] 449 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let a = OffsetLen::new(5, 10); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let b = OffsetLen::of_bytes_new(&bytes); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let a = OffsetLen::new(2047, 2047); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let b = OffsetLen::of_bytes_new(&bytes); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let a = OffsetLen::new(OffsetLen::SIZES[2], OffsetLen::SIZES[2]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:160:32 [INFO] [stdout] | [INFO] [stdout] 160 | let a = OffsetLen::new(OffsetLen::SIZES[2], OffsetLen::SIZES[2]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:160:53 [INFO] [stdout] | [INFO] [stdout] 160 | let a = OffsetLen::new(OffsetLen::SIZES[2], OffsetLen::SIZES[2]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let b = OffsetLen::of_bytes_new(&bytes); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | for size in OffsetLen::SIZES { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | let a = OffsetLen::new(size, size); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetLen` [INFO] [stdout] --> src/offset_len.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | let b = OffsetLen::of_bytes_new(&bytes); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OffsetLen` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 140 + use crate::OffsetLen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter` [INFO] [stdout] --> src/output_stream.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | let output_writer = BufWriter::new(&mut output_buf); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BufWriter` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 98 + use crate::output_stream::BufWriter; [INFO] [stdout] | [INFO] [stdout] 98 + use std::io::BufWriter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/output_stream.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | let mut codes = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/output_stream.rs:105:42 [INFO] [stdout] | [INFO] [stdout] 105 | codes.insert(0b00000001, Bits::from((0b00001011, 4))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/output_stream.rs:106:42 [INFO] [stdout] | [INFO] [stdout] 106 | codes.insert(0b00000010, Bits::from((0b00001001, 4))); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bits` [INFO] [stdout] --> src/output_stream.rs:107:32 [INFO] [stdout] | [INFO] [stdout] 107 | let end_code = Bits::from((0b00001111, 4)); [INFO] [stdout] | ^^^^ use of undeclared type `Bits` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 + use crate::huffman::Bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodeMap` [INFO] [stdout] --> src/output_stream.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | CodeMap::new(codes, end_code) [INFO] [stdout] | ^^^^^^^ use of undeclared type `CodeMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 98 + use crate::output_stream::CodeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OutputStream` [INFO] [stdout] --> src/output_stream.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | let mut output_stream = OutputStream::new(code_map, output_writer, None); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OutputStream` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 + use crate::output_stream::OutputStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodedValue` [INFO] [stdout] --> src/output_stream.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | output_stream.add(&EncodedValue::RawU8(*value)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `EncodedValue` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 98 + use crate::EncodedValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `helpers` [INFO] [stdout] --> src/output_stream.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | helpers::u8_iter_str(encoded_bit.iter()) [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `helpers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 98 + use crate::helpers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `helpers` [INFO] [stdout] --> src/output_stream.rs:124:30 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(expected, helpers::u8_iter_str(output_buf.iter())); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `helpers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 98 + use crate::helpers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/header.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:161:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEBUG` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/main.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl EncodedValue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 101 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FinaliseMatch` is never constructed [INFO] [stdout] --> src/decode.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 160 | enum RawByteReadOnFinish { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 161 | Nothing, [INFO] [stdout] 162 | FinaliseMatch(OffsetLen), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawByteReadOnFinish` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8_iter_str` is never used [INFO] [stdout] --> src/helpers.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn u8_iter_str<'a, I: Iterator>(i: I) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/huffman.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl CodeMap { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new(codes: HashMap, end_code: Bits) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitstream_more_than_u64` is never used [INFO] [stdout] --> src/huffman.rs:598:8 [INFO] [stdout] | [INFO] [stdout] 598 | fn bitstream_more_than_u64() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | writer.write_all(&output_buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 155 | let _ = writer.write_all(&output_buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/encode.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | input_file_reader.rewind(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = input_file_reader.rewind(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/huffman.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | end_code.insert(bits.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = end_code.insert(bits.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.output.write(&[chunk_marker.to_u8()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.output.write_all(chunk); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = self.output.write_all(chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = writer.write_all(&chunk_marker.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = writer.write_all(&bytes.into_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | writer.write_all(&self.buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = writer.write_all(&self.buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.output.write_all(&header.to_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = self.output.write_all(&header.to_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = writer.write_all(&header.to_debug_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = writer.write_all(&offset_len.to_bytes_debug()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | self.output.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = self.output.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/output_stream.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | writer.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 85 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bytes_left` [INFO] [stdout] --> src/decode.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | num_bytes_left, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bytes_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_len` [INFO] [stdout] --> src/decode.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | RawByteReadOnFinish::FinaliseMatch(offset_len), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 58 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lizards` (bin "lizards" test) due to 59 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "4e0d48ffbb208ccc5ac9d0edc5f4bdc7e70fa5e1a1814d1a1017760c328acbf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e0d48ffbb208ccc5ac9d0edc5f4bdc7e70fa5e1a1814d1a1017760c328acbf6", kill_on_drop: false }` [INFO] [stdout] 4e0d48ffbb208ccc5ac9d0edc5f4bdc7e70fa5e1a1814d1a1017760c328acbf6