[INFO] cloning repository https://github.com/KITKATXU/my_gzip
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KITKATXU/my_gzip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKITKATXU%2Fmy_gzip", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKITKATXU%2Fmy_gzip'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cca370e25c29125f9e1262237263b0db3086a8d9
[INFO] checking KITKATXU/my_gzip against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKITKATXU%2Fmy_gzip" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/KITKATXU/my_gzip
[INFO] finished tweaking git repo https://github.com/KITKATXU/my_gzip
[INFO] tweaked toml for git repo https://github.com/KITKATXU/my_gzip written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/KITKATXU/my_gzip on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/KITKATXU/my_gzip 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: binary `my_gzip` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-1-tc1/source/target/.../my_gzip
[INFO] [stderr]    |                                                  ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `my-gzip`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:8:8
[INFO] [stderr]    |
[INFO] [stderr]  8 - name = "my_gzip"
[INFO] [stderr]  8 + name = "my-gzip"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `my-gzip`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:9:19
[INFO] [stderr]    |
[INFO] [stderr]  9 ~ version = "0.1.0"
[INFO] [stderr] 10 + [[bin]]
[INFO] [stderr] 11 + name = "my-gzip"
[INFO] [stderr] 12 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `my_gzip` (manifest) generated 1 warning
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ctrlc v3.4.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0
[INFO] running `Command { std: "docker" "start" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: binary `my_gzip` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../my_gzip
[INFO] [stderr]    |                          ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `my-gzip`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:8:8
[INFO] [stderr]    |
[INFO] [stderr]  8 - name = "my_gzip"
[INFO] [stderr]  8 + name = "my-gzip"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `my-gzip`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:9:19
[INFO] [stderr]    |
[INFO] [stderr]  9 ~ version = "0.1.0"
[INFO] [stderr] 10 + [[bin]]
[INFO] [stderr] 11 + name = "my-gzip"
[INFO] [stderr] 12 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `my_gzip` (manifest) generated 1 warning
[INFO] [stderr]    Compiling cfg_aliases v0.2.1
[INFO] [stderr]    Compiling libc v0.2.159
[INFO] [stderr]    Compiling nix v0.29.0
[INFO] [stderr]     Checking ctrlc v3.4.5
[INFO] [stderr]     Checking my_gzip v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::decompression::huft::huft_free`
[INFO] [stdout]   --> src/compression/deflate.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::decompression::huft::huft_free;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::decompression::huft::huft_free`
[INFO] [stdout]   --> src/compression/deflate.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::decompression::huft::huft_free;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |     let mut strstart = 0;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_bits`
[INFO] [stdout]    --> src/compression/deflate.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let max_bits = 15; // 设定Huffman编码允许的最大位数
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bits`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lookahead`
[INFO] [stdout]    --> src/compression/deflate.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let mut lookahead: usize;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lookahead`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lit_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let lit_symbols: Vec<u16> = (0..lit_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lit_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dist_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let dist_symbols: Vec<u16> = (0..dist_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hash_head` is never read
[INFO] [stdout]    --> src/compression/deflate.rs:107:25
[INFO] [stdout]     |
[INFO] [stdout] 107 |     let mut hash_head = None;
[INFO] [stdout]     |                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 154 |             hash_head = insert_string(&state.window, state.strstart, &mut ins_h, &mut state.prev, &mut state.hash_chain);
[INFO] [stdout]     |             ------------------------------------------------------------------------------------------------------------ `hash_head` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]  --> src/compression/lm_init.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const TOO_FAR: usize = 4096;
[INFO] [stdout]   |       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_lazy`, `good_length`, and `nice_length` are never read
[INFO] [stdout]   --> src/compression/lm_init.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Config {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 18 |     max_lazy: usize,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     good_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 20 |     nice_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_into_window` is never used
[INFO] [stdout]    --> src/compression/lm_init.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn read_into_window(window: &mut [u8]) -> Result<usize, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |     let mut strstart = 0;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_bits`
[INFO] [stdout]    --> src/compression/deflate.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let max_bits = 15; // 设定Huffman编码允许的最大位数
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bits`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lookahead`
[INFO] [stdout]    --> src/compression/deflate.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let mut lookahead: usize;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lookahead`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lit_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let lit_symbols: Vec<u16> = (0..lit_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lit_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dist_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let dist_symbols: Vec<u16> = (0..dist_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hash_head` is never read
[INFO] [stdout]    --> src/compression/deflate.rs:107:25
[INFO] [stdout]     |
[INFO] [stdout] 107 |     let mut hash_head = None;
[INFO] [stdout]     |                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 154 |             hash_head = insert_string(&state.window, state.strstart, &mut ins_h, &mut state.prev, &mut state.hash_chain);
[INFO] [stdout]     |             ------------------------------------------------------------------------------------------------------------ `hash_head` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]  --> src/compression/lm_init.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const TOO_FAR: usize = 4096;
[INFO] [stdout]   |       ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_lazy`, `good_length`, and `nice_length` are never read
[INFO] [stdout]   --> src/compression/lm_init.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Config {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 18 |     max_lazy: usize,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     good_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 20 |     nice_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_into_window` is never used
[INFO] [stdout]    --> src/compression/lm_init.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn read_into_window(window: &mut [u8]) -> Result<usize, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::decompression::huft::huft_free`
[INFO] [stdout]   --> src/compression/deflate.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::decompression::huft::huft_free;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `deflate::deflate`
[INFO] [stdout]  --> src/compression/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use deflate::deflate;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::util::crc::CRC32_TABLE`
[INFO] [stdout]   --> src/compression/mod.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub use crate::util::crc::CRC32_TABLE;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `inflate::inflate`
[INFO] [stdout]  --> src/decompression/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use inflate::inflate;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::decompression::huft::huft_free`
[INFO] [stdout]   --> src/compression/deflate.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::decompression::huft::huft_free;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `deflate::deflate`
[INFO] [stdout]  --> src/compression/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use deflate::deflate;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::util::crc::CRC32_TABLE`
[INFO] [stdout]   --> src/compression/mod.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub use crate::util::crc::CRC32_TABLE;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `inflate::inflate`
[INFO] [stdout]  --> src/decompression/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use inflate::inflate;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |     let mut strstart = 0;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_bits`
[INFO] [stdout]    --> src/compression/deflate.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let max_bits = 15; // 设定Huffman编码允许的最大位数
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bits`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lookahead`
[INFO] [stdout]    --> src/compression/deflate.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let mut lookahead: usize;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lookahead`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lit_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let lit_symbols: Vec<u16> = (0..lit_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lit_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dist_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let dist_symbols: Vec<u16> = (0..dist_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hash_head` is never read
[INFO] [stdout]    --> src/compression/deflate.rs:107:25
[INFO] [stdout]     |
[INFO] [stdout] 107 |     let mut hash_head = None;
[INFO] [stdout]     |                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 154 |             hash_head = insert_string(&state.window, state.strstart, &mut ins_h, &mut state.prev, &mut state.hash_chain);
[INFO] [stdout]     |             ------------------------------------------------------------------------------------------------------------ `hash_head` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `do_exit` is never used
[INFO] [stdout]   --> src/main.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn do_exit(code: i32) -> ! {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]   --> src/compression/deflate.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const TOO_FAR: usize = 4096;
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]  --> src/compression/lm_init.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const TOO_FAR: usize = 4096;
[INFO] [stdout]   |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_lazy`, `good_length`, and `nice_length` are never read
[INFO] [stdout]   --> src/compression/lm_init.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Config {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 18 |     max_lazy: usize,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     good_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 20 |     nice_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `block_start` is never read
[INFO] [stdout]   --> src/compression/lm_init.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct DeflateState {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub block_start: usize,    // 当前块的起始位置
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/compression/lm_init.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl DeflateState {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 48 |     pub fn new(window_size: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_into_window` is never used
[INFO] [stdout]    --> src/compression/lm_init.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn read_into_window(window: &mut [u8]) -> Result<usize, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `updcrc` is never used
[INFO] [stdout]  --> src/compression/utils.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn updcrc(crc: u32, buffer: &[u8]) -> u32 {
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clear_bufs` is never used
[INFO] [stdout]   --> src/compression/utils.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn clear_bufs(buf: &mut [u8]) {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gzip_error` is never used
[INFO] [stdout]   --> src/compression/utils.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub fn gzip_error(message: &str) -> io::Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `strlwr` is never used
[INFO] [stdout]   --> src/compression/utils.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn strlwr(s: &str) -> String {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate` is never used
[INFO] [stdout]  --> src/decompression/inflate.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn inflate(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_block` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:15:4
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn inflate_block(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<bool> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_stored` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn inflate_stored(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/compression/deflate.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |     let mut strstart = 0;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_bits`
[INFO] [stdout]    --> src/compression/deflate.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let max_bits = 15; // 设定Huffman编码允许的最大位数
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bits`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_fixed` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:44:4
[INFO] [stdout]    |
[INFO] [stdout] 44 | fn inflate_fixed(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_dynamic` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn inflate_dynamic(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/compression/deflate.rs:104:9
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut buffer = [0u8; 8192];
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_codes` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:56:4
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn inflate_codes(input: &mut dyn Read, output: &mut dyn Write, huff_table: &HuffmanTable) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_bit` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn read_bit(_input: &mut dyn Read) -> io::Result<u8> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_bits` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:76:4
[INFO] [stdout]    |
[INFO] [stdout] 76 | fn read_bits(_input: &mut dyn Read, _num_bits: u8) -> io::Result<u16> {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_u16` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn read_u16(input: &mut dyn Read) -> io::Result<u16> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lookahead`
[INFO] [stdout]    --> src/compression/deflate.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let mut lookahead: usize;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lookahead`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HuffmanTable` is never constructed
[INFO] [stdout]   --> src/decompression/inflate.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 88 | struct HuffmanTable;
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `decode_symbol` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:90:8
[INFO] [stdout]    |
[INFO] [stdout] 89 | impl HuffmanTable {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] 90 |     fn decode_symbol(&self, _input: &mut dyn Read) -> io::Result<u16> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_fixed_huffman_table` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:95:4
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn build_fixed_huffman_table() -> HuffmanTable {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lit_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let lit_symbols: Vec<u16> = (0..lit_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lit_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_dynamic_huffman_tables` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn build_dynamic_huffman_tables(_input: &mut dyn Read) -> io::Result<(HuffmanTable, HuffmanTable)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dist_symbols`
[INFO] [stdout]    --> src/compression/deflate.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let dist_symbols: Vec<u16> = (0..dist_freqs.len() as u16).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_symbols`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_tree` is never used
[INFO] [stdout]   --> src/decompression/huft.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl HuffmanNode {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn print_tree(&self, prefix: String) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hash_head` is never read
[INFO] [stdout]    --> src/compression/deflate.rs:107:25
[INFO] [stdout]     |
[INFO] [stdout] 107 |     let mut hash_head = None;
[INFO] [stdout]     |                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 154 |             hash_head = insert_string(&state.window, state.strstart, &mut ins_h, &mut state.prev, &mut state.hash_chain);
[INFO] [stdout]     |             ------------------------------------------------------------------------------------------------------------ `hash_head` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `huft_free` is never used
[INFO] [stdout]   --> src/decompression/huft.rs:91:8
[INFO] [stdout]    |
[INFO] [stdout] 91 | pub fn huft_free(tree: Option<HuffmanNode>) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gzip_error` is never used
[INFO] [stdout]  --> src/util/error.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn gzip_error(message: &str) {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `xalloc_die` is never used
[INFO] [stdout]  --> src/util/error.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn xalloc_die() {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `warning` is never used
[INFO] [stdout]   --> src/util/error.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn warning(message: &str) {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_error` is never used
[INFO] [stdout]   --> src/util/error.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub fn read_error(filename: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_error` is never used
[INFO] [stdout]   --> src/util/error.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn write_error(filename: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `abort_gzip` is never used
[INFO] [stdout]   --> src/util/error.rs:36:4
[INFO] [stdout]    |
[INFO] [stdout] 36 | fn abort_gzip() -> ! {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     compression::deflate::deflate(&mut input, &mut output, Some(input_file));
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let _ = compression::deflate::deflate(&mut input, &mut output, Some(input_file));
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.96s
[INFO] [stdout] warning: function `do_exit` is never used
[INFO] [stdout]   --> src/main.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn do_exit(code: i32) -> ! {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.29.0
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]   --> src/compression/deflate.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const TOO_FAR: usize = 4096;
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stdout] warning: constant `TOO_FAR` is never used
[INFO] [stdout]  --> src/compression/lm_init.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const TOO_FAR: usize = 4096;
[INFO] [stdout]   |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_lazy`, `good_length`, and `nice_length` are never read
[INFO] [stdout]   --> src/compression/lm_init.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Config {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 18 |     max_lazy: usize,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     good_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 20 |     nice_length: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `block_start` is never read
[INFO] [stdout]   --> src/compression/lm_init.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct DeflateState {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub block_start: usize,    // 当前块的起始位置
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/compression/lm_init.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl DeflateState {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 48 |     pub fn new(window_size: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_into_window` is never used
[INFO] [stdout]    --> src/compression/lm_init.rs:147:4
[INFO] [stdout]     |
[INFO] [stdout] 147 | fn read_into_window(window: &mut [u8]) -> Result<usize, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `updcrc` is never used
[INFO] [stdout]  --> src/compression/utils.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn updcrc(crc: u32, buffer: &[u8]) -> u32 {
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clear_bufs` is never used
[INFO] [stdout]   --> src/compression/utils.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn clear_bufs(buf: &mut [u8]) {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gzip_error` is never used
[INFO] [stdout]   --> src/compression/utils.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub fn gzip_error(message: &str) -> io::Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `strlwr` is never used
[INFO] [stdout]   --> src/compression/utils.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn strlwr(s: &str) -> String {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate` is never used
[INFO] [stdout]  --> src/decompression/inflate.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn inflate(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_block` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:15:4
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn inflate_block(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<bool> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_stored` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn inflate_stored(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_fixed` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:44:4
[INFO] [stdout]    |
[INFO] [stdout] 44 | fn inflate_fixed(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_dynamic` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn inflate_dynamic(input: &mut dyn Read, output: &mut dyn Write) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `inflate_codes` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:56:4
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn inflate_codes(input: &mut dyn Read, output: &mut dyn Write, huff_table: &HuffmanTable) -> io::Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_bit` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn read_bit(_input: &mut dyn Read) -> io::Result<u8> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_bits` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:76:4
[INFO] [stdout]    |
[INFO] [stdout] 76 | fn read_bits(_input: &mut dyn Read, _num_bits: u8) -> io::Result<u16> {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_u16` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn read_u16(input: &mut dyn Read) -> io::Result<u16> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HuffmanTable` is never constructed
[INFO] [stdout]   --> src/decompression/inflate.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 88 | struct HuffmanTable;
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `decode_symbol` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:90:8
[INFO] [stdout]    |
[INFO] [stdout] 89 | impl HuffmanTable {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] 90 |     fn decode_symbol(&self, _input: &mut dyn Read) -> io::Result<u16> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_fixed_huffman_table` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:95:4
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn build_fixed_huffman_table() -> HuffmanTable {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_dynamic_huffman_tables` is never used
[INFO] [stdout]   --> src/decompression/inflate.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn build_dynamic_huffman_tables(_input: &mut dyn Read) -> io::Result<(HuffmanTable, HuffmanTable)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_tree` is never used
[INFO] [stdout]   --> src/decompression/huft.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl HuffmanNode {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub fn print_tree(&self, prefix: String) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `huft_free` is never used
[INFO] [stdout]   --> src/decompression/huft.rs:91:8
[INFO] [stdout]    |
[INFO] [stdout] 91 | pub fn huft_free(tree: Option<HuffmanNode>) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `copy` is never used
[INFO] [stdout]  --> src/util/file_io.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn copy(input_path: &Path, output_path: &Path) -> io::Result<()> {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `make_simple_name` is never used
[INFO] [stdout]   --> src/util/file_io.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn make_simple_name(name: &mut String) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gzip_error` is never used
[INFO] [stdout]  --> src/util/error.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn gzip_error(message: &str) {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `xalloc_die` is never used
[INFO] [stdout]  --> src/util/error.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn xalloc_die() {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `warning` is never used
[INFO] [stdout]   --> src/util/error.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn warning(message: &str) {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_error` is never used
[INFO] [stdout]   --> src/util/error.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub fn read_error(filename: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_error` is never used
[INFO] [stdout]   --> src/util/error.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn write_error(filename: &str) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `abort_gzip` is never used
[INFO] [stdout]   --> src/util/error.rs:36:4
[INFO] [stdout]    |
[INFO] [stdout] 36 | fn abort_gzip() -> ! {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     compression::deflate::deflate(&mut input, &mut output, Some(input_file));
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let _ = compression::deflate::deflate(&mut input, &mut output, Some(input_file));
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0", kill_on_drop: false }`
[INFO] [stdout] ce1f01051623190fc1b20d64cd4c2d63ff2a1186fef826c24fbd4e4addadf3b0
