[INFO] cloning repository https://github.com/AegisSSC/huffman-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AegisSSC/huffman-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAegisSSC%2Fhuffman-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAegisSSC%2Fhuffman-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5cb0d0d8da61e36f4126a6c6d58f110b2574961b
[INFO] testing AegisSSC/huffman-rs against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAegisSSC%2Fhuffman-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AegisSSC/huffman-rs
[INFO] finished tweaking git repo https://github.com/AegisSSC/huffman-rs
[INFO] tweaked toml for git repo https://github.com/AegisSSC/huffman-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AegisSSC/huffman-rs on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AegisSSC/huffman-rs 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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7
[INFO] running `Command { std: "docker" "start" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", 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" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling clap_lex v1.0.0
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling clap_builder v4.5.60
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling clap_derive v4.5.55
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling huffman-core v0.1.0 (/opt/rustwide/workdir/huffman-core)
[INFO] [stderr]    Compiling clap v4.5.60
[INFO] [stderr]    Compiling huffman-cli v0.1.0 (/opt/rustwide/workdir/huffman-cli)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.69s
[INFO] running `Command { std: "docker" "inspect" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.182
[INFO] [stderr]    Compiling getrandom v0.4.1
[INFO] [stderr]    Compiling zerocopy v0.8.39
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling zerocopy-derive v0.8.39
[INFO] [stderr]    Compiling bitflags v2.11.0
[INFO] [stderr]    Compiling linux-raw-sys v0.12.1
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling bit-vec v0.8.0
[INFO] [stderr]    Compiling unarray v0.1.4
[INFO] [stderr]    Compiling huffman-cli v0.1.0 (/opt/rustwide/workdir/huffman-cli)
[INFO] [stderr]    Compiling bit-set v0.8.0
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling wait-timeout v0.2.1
[INFO] [stderr]    Compiling rand_core v0.9.5
[INFO] [stderr]    Compiling rand_xorshift v0.4.0
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling tempfile v3.26.0
[INFO] [stderr]    Compiling rusty-fork v0.3.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling proptest v1.10.0
[INFO] [stderr]    Compiling huffman-core v0.1.0 (/opt/rustwide/workdir/huffman-core)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 16.96s
[INFO] running `Command { std: "docker" "inspect" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/huffman-7f620f0096ebc89b)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/huffman_core-5a291e1be77c9376)
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 19 tests
[INFO] [stdout] test codec::tests::compression_ratio_skewed_input ... ok
[INFO] [stdout] test bitstream::tests::write_bits_multi ... ok
[INFO] [stdout] test codec::tests::roundtrip_abracadabra ... ok
[INFO] [stdout] test bitstream::tests::roundtrip_bits ... ok
[INFO] [stdout] test codec::tests::roundtrip_all_byte_values ... ok
[INFO] [stdout] test codec::tests::roundtrip_single_byte_repeated ... ok
[INFO] [stdout] test frequency::tests::abracadabra_frequencies ... ok
[INFO] [stdout] test frequency::tests::byte_frequency_fast_path ... ok
[INFO] [stdout] test frequency::tests::probabilities_sum_to_one ... ok
[INFO] [stdout] test tree::tests::abracadabra_tree ... ok
[INFO] [stdout] test frequency::tests::sorted_order ... ok
[INFO] [stdout] test tree::tests::empty_input_errors ... ok
[INFO] [stdout] test tree::tests::single_symbol ... ok
[INFO] [stdout] test entropy::tests::entropy_binary_fair_coin ... ok
[INFO] [stderr]    Doc-tests huffman_core
[INFO] [stdout] test entropy::tests::entropy_single_symbol ... ok
[INFO] [stdout] test entropy::tests::efficiency_is_bounded ... ok
[INFO] [stdout] test entropy::tests::self_information_common_vs_rare ... ok
[INFO] [stdout] test tree::tests::avg_code_len_above_entropy ... ok
[INFO] [stdout] test entropy::tests::entropy_uniform_distribution ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test huffman-core/src/lib.rs - (line 24) ... FAILED
[INFO] [stdout] test huffman-core/src/codec.rs - codec::encode_bytes (line 28) ... ok
[INFO] [stdout] test huffman-core/src/frequency.rs - frequency::FrequencyTable<T>::from_symbols (line 30) ... ok
[INFO] [stdout] test huffman-core/src/tree.rs - tree::HuffmanTree<T>::from_frequencies (line 133) ... ok
[INFO] [stdout] test huffman-core/src/entropy.rs - entropy::shannon_entropy (line 30) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- huffman-core/src/lib.rs - (line 24) stdout ----
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> huffman-core/src/lib.rs:31:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | let encoded = codec::encode(data, &tree);
[INFO] [stdout]    |               -------------       ^^^^^ expected `&HuffmanTree<u8>`, found `&Result<HuffmanTree<u8>, HuffmanError>`
[INFO] [stdout]    |               |
[INFO] [stdout]    |               arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&HuffmanTree<_>`
[INFO] [stdout]               found reference `&Result<HuffmanTree<_>, HuffmanError>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> huffman-core/src/codec.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub fn encode<T: Clone + Ord + Hash + Eq>(
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> huffman-core/src/lib.rs:32:15
[INFO] [stdout]     |
[INFO] [stdout]  32 | let decoded = codec::decode(&encoded, &tree, data.len());
[INFO] [stdout]     |               ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: expected `&[u8]`, found `&(Vec<u8>, u8)`
[INFO] [stdout]    --> huffman-core/src/lib.rs:32:29
[INFO] [stdout]     |
[INFO] [stdout]  32 | let decoded = codec::decode(&encoded, &tree, data.len());
[INFO] [stdout]     |                             ^^^^^^^^
[INFO] [stdout]     = note: expected reference `&[u8]`
[INFO] [stdout]                found reference `&(Vec<u8>, u8)`
[INFO] [stdout] note: expected `&HuffmanTree<_>`, found `&Result<HuffmanTree<u8>, HuffmanError>`
[INFO] [stdout]    --> huffman-core/src/lib.rs:32:39
[INFO] [stdout]     |
[INFO] [stdout]  32 | let decoded = codec::decode(&encoded, &tree, data.len());
[INFO] [stdout]     |                                       ^^^^^
[INFO] [stdout]     = note: expected reference `&HuffmanTree<_>`
[INFO] [stdout]                found reference `&Result<HuffmanTree<u8>, HuffmanError>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> huffman-core/src/codec.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn decode<T: Clone>(
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `Vec<u8>` with `Result<Vec<_>, HuffmanError>`
[INFO] [stdout]   --> huffman-core/src/lib.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | assert_eq!(data.to_vec(), decoded);
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Vec<u8> == Result<Vec<_>, HuffmanError>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `PartialEq<Result<Vec<_>, HuffmanError>>` is not implemented for `Vec<u8>`
[INFO] [stdout] help: `Vec<u8>` implements trait `PartialEq<Rhs>`
[INFO] [stdout]   --> /rustc/6b3fa26749ab40e159b2dd5cf577acaaf5902772/library/core/src/bstr/traits.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PartialEq<ByteStr>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PartialEq<ByteString>`
[INFO] [stdout]   --> /rustc/6b3fa26749ab40e159b2dd5cf577acaaf5902772/library/alloc/src/bstr.rs:519:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   ::: /rustc/6b3fa26749ab40e159b2dd5cf577acaaf5902772/library/alloc/src/bstr.rs:663:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]    = note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     huffman-core/src/lib.rs - (line 24)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `-p huffman-core --doc`
[INFO] running `Command { std: "docker" "inspect" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7", kill_on_drop: false }`
[INFO] [stdout] 3d497dbc9144e7dc8783902390ca5537036af1379610db2eaaf0b7e90cb457c7
