[INFO] cloning repository https://github.com/wychu413/compression [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wychu413/compression" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwychu413%2Fcompression", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwychu413%2Fcompression'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae5b1571ff87a5fe67e09413bcdb2ee37536364b [INFO] building wychu413/compression against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwychu413%2Fcompression" "/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/wychu413/compression on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wychu413/compression [INFO] finished tweaking git repo https://github.com/wychu413/compression [INFO] tweaked toml for git repo https://github.com/wychu413/compression written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/wychu413/compression 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.104 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b0c40b05b628fcb850cf02ec5bd9b00b60bd95a7fc4e68591c838b889c679e7 [INFO] running `Command { std: "docker" "start" "-a" "4b0c40b05b628fcb850cf02ec5bd9b00b60bd95a7fc4e68591c838b889c679e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b0c40b05b628fcb850cf02ec5bd9b00b60bd95a7fc4e68591c838b889c679e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b0c40b05b628fcb850cf02ec5bd9b00b60bd95a7fc4e68591c838b889c679e7", kill_on_drop: false }` [INFO] [stdout] 4b0c40b05b628fcb850cf02ec5bd9b00b60bd95a7fc4e68591c838b889c679e7 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68ce1f7e9c95457e98fae677614c825154fc180f9a4517bd63123dbd9f670003 [INFO] running `Command { std: "docker" "start" "-a" "68ce1f7e9c95457e98fae677614c825154fc180f9a4517bd63123dbd9f670003", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.104 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling compression v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> src/compressor/huffman.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `compressor::compressor::Compressor` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use compressor::compressor::Compressor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/compressor/huffman.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let map = HashMap::::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `algo`, `is_decompress`, `input_file`, and `output_file` are never read [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | // the algorithm to compress/decompress the data [INFO] [stdout] 16 | algo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | // compress/decompress [INFO] [stdout] 18 | is_decompress: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | // the input file name [INFO] [stdout] 20 | input_file: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | output_file: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_freq_count` is never used [INFO] [stdout] --> src/pkg/util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn bytes_freq_count(bytes: &Vec) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Compressor` is never constructed [INFO] [stdout] --> src/compressor/compressor.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Compressor [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/compressor/compressor.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Compressor { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(alg: &str) -> Compressor { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn run(self, bytes: &Vec) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HuffmanTree` is never used [INFO] [stdout] --> src/compressor/huffman.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | enum HuffmanTree { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_node_frequency` and `make_canonical_huffman_code_table` are never used [INFO] [stdout] --> src/compressor/huffman.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl HuffmanTree { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 81 | fn get_node_frequency(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn make_canonical_huffman_code_table(&self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_tree` is never used [INFO] [stdout] --> src/compressor/huffman.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn make_tree(mut heap: BinaryHeap>) -> HuffmanTree { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/compressor/huffman.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn compress(bytes: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.82s [INFO] running `Command { std: "docker" "inspect" "68ce1f7e9c95457e98fae677614c825154fc180f9a4517bd63123dbd9f670003", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68ce1f7e9c95457e98fae677614c825154fc180f9a4517bd63123dbd9f670003", kill_on_drop: false }` [INFO] [stdout] 68ce1f7e9c95457e98fae677614c825154fc180f9a4517bd63123dbd9f670003 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a5b87c1cc73196fa42c8d542b282a5c92ce3c7fa58b8991d42651d442a20b88 [INFO] running `Command { std: "docker" "start" "-a" "2a5b87c1cc73196fa42c8d542b282a5c92ce3c7fa58b8991d42651d442a20b88", kill_on_drop: false }` [INFO] [stderr] Compiling compression v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bit_vec::BitVec` [INFO] [stdout] --> src/compressor/huffman.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bit_vec::BitVec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `compressor::compressor::Compressor` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use compressor::compressor::Compressor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/compressor/huffman.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let map = HashMap::::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `algo`, `is_decompress`, `input_file`, and `output_file` are never read [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | // the algorithm to compress/decompress the data [INFO] [stdout] 16 | algo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | // compress/decompress [INFO] [stdout] 18 | is_decompress: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | // the input file name [INFO] [stdout] 20 | input_file: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | output_file: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Compressor` is never constructed [INFO] [stdout] --> src/compressor/compressor.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Compressor [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/compressor/compressor.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Compressor { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(alg: &str) -> Compressor { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn run(self, bytes: &Vec) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol` is never read [INFO] [stdout] --> src/compressor/huffman.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | Leaf { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 66 | freq: u32, [INFO] [stdout] 67 | symbol: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HuffmanTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left` and `right` are never read [INFO] [stdout] --> src/compressor/huffman.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 71 | Tree { [INFO] [stdout] | ---- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 74 | left: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 75 | // Right SubTree [INFO] [stdout] 76 | right: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HuffmanTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_canonical_huffman_code_table` is never used [INFO] [stdout] --> src/compressor/huffman.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl HuffmanTree { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | fn make_canonical_huffman_code_table(&self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/compressor/huffman.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn compress(bytes: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "2a5b87c1cc73196fa42c8d542b282a5c92ce3c7fa58b8991d42651d442a20b88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a5b87c1cc73196fa42c8d542b282a5c92ce3c7fa58b8991d42651d442a20b88", kill_on_drop: false }` [INFO] [stdout] 2a5b87c1cc73196fa42c8d542b282a5c92ce3c7fa58b8991d42651d442a20b88