[INFO] cloning repository https://github.com/frublox/mobi-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frublox/mobi-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrublox%2Fmobi-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrublox%2Fmobi-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c59cdb0b614d4e9ce5650710ce3fe2290751bf8 [INFO] checking frublox/mobi-rust/4c59cdb0b614d4e9ce5650710ce3fe2290751bf8 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrublox%2Fmobi-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/frublox/mobi-rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/frublox/mobi-rust [INFO] finished tweaking git repo https://github.com/frublox/mobi-rust [INFO] tweaked toml for git repo https://github.com/frublox/mobi-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/frublox/mobi-rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded debug_print v1.0.0 [INFO] [stderr] Downloaded libc v0.2.82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ddb2a5abd7296ab3f8c66aba667ea58adcd5036393680b71ac18b97c9f21cd4 [INFO] running `Command { std: "docker" "start" "-a" "1ddb2a5abd7296ab3f8c66aba667ea58adcd5036393680b71ac18b97c9f21cd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ddb2a5abd7296ab3f8c66aba667ea58adcd5036393680b71ac18b97c9f21cd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ddb2a5abd7296ab3f8c66aba667ea58adcd5036393680b71ac18b97c9f21cd4", kill_on_drop: false }` [INFO] [stdout] 1ddb2a5abd7296ab3f8c66aba667ea58adcd5036393680b71ac18b97c9f21cd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 67e5de49d5fb7bfc4f8f141a9bfa0baae7accc31628ce2f1604a5747785d8d25 [INFO] running `Command { std: "docker" "start" "-a" "67e5de49d5fb7bfc4f8f141a9bfa0baae7accc31628ce2f1604a5747785d8d25", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Checking debug_print v1.0.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mobi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/mobi.rs:342:44 [INFO] [stdout] | [INFO] [stdout] 341 | impl<'a> Record<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 342 | fn new(bytes: &'a [u8], flags: u32) -> Record { [INFO] [stdout] | ^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/mobi.rs:342:44 [INFO] [stdout] | [INFO] [stdout] 341 | impl<'a> Record<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 342 | fn new(bytes: &'a [u8], flags: u32) -> Record { [INFO] [stdout] | ^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/lz77.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `thread_spawn_unchecked` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(thread_spawn_unchecked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `thread_spawn_unchecked` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(thread_spawn_unchecked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lz77.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | let compressed = compress(input); [INFO] [stdout] | ^^^^^^^^------- argument #2 of type `&mut Vec` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lz77.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn compress(input: &[u8], output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ ------------ -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 197 | let compressed = compress(input, /* &mut Vec */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lz77.rs:199:20 [INFO] [stdout] | [INFO] [stdout] 199 | decompress(&compressed, &mut decompressed); [INFO] [stdout] | ---------- ^^^^^^^^^^^ expected `&[u8]`, found `&()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&()` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lz77.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn decompress(input: &[u8], output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ ------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lz77.rs:203:26 [INFO] [stdout] | [INFO] [stdout] 203 | let compressed = compress(input); [INFO] [stdout] | ^^^^^^^^------- argument #2 of type `&mut Vec` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lz77.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn compress(input: &[u8], output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ ------------ -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 203 | let compressed = compress(input, /* &mut Vec */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lz77.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | decompress(&compressed, &mut decompressed); [INFO] [stdout] | ---------- ^^^^^^^^^^^ expected `&[u8]`, found `&()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&()` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lz77.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn decompress(input: &[u8], output: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ ------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mobi` [INFO] [stdout] --> src/mobi.rs:583:21 [INFO] [stdout] | [INFO] [stdout] 583 | pub fn to_bytes(mobi: &Mobi) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mobi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mobi` [INFO] [stdout] --> src/mobi.rs:583:21 [INFO] [stdout] | [INFO] [stdout] 583 | pub fn to_bytes(mobi: &Mobi) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mobi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attributes` and `unique_id` are never read [INFO] [stdout] --> src/mobi.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct RecordInfoEntry { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 12 | offset: u32, [INFO] [stdout] 13 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | unique_id: [u8; 3], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/mobi.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Metadata { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 32 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 34 | version: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | creation_date: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | modification_date: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | last_backup_date: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | modification_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | app_info_id: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 40 | sort_info_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 41 | type_: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | creator: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 43 | unique_seed_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 44 | next_record_list_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/mobi.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 87 | struct PalmDocHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 93 | compression: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 94 | unused: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 95 | /// The length of the book's uncompressed text. [INFO] [stdout] 96 | text_length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 97 | /// Number of PDB records used for the text of book. [INFO] [stdout] 98 | record_count: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 99 | /// Maximum size of each record containing text. Always 4096. [INFO] [stdout] 100 | record_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | encryption_type: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | unknown_14: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PalmDocHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/mobi.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct MobiHeader { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 131 | /// The characters M O B I. [INFO] [stdout] 132 | identifier: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | mobi_type: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | text_encoding: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 168 | /// Some kind of unique ID number (random?). [INFO] [stdout] 169 | unique_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 170 | /// Version of the Mobipocket format used in this file. [INFO] [stdout] 171 | file_version: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | locale: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 187 | /// Input language for a dictionary. [INFO] [stdout] 188 | input_language: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 189 | /// Output language for a dictionary. [INFO] [stdout] 190 | output_language: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 191 | /// Minimum Mobipocket version support needed to read this file. [INFO] [stdout] 192 | min_version: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | first_huffman_record_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 198 | /// The number of huffman compression records. [INFO] [stdout] 199 | huffman_record_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | first_content_record_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | last_content_record_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | unknown_180: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 211 | /// The record number of the first FCIS record. [INFO] [stdout] 212 | fcis_record_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 213 | /// The number of FCIS records. [INFO] [stdout] 214 | fcis_record_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 215 | /// The record number of the first FLIS record. [INFO] [stdout] 216 | flis_record_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 217 | /// The number of FLIS records. [INFO] [stdout] 218 | flis_record_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MobiHeader` 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 `type_` and `data` are never read [INFO] [stdout] --> src/mobi.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 271 | struct ExthRecord { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 272 | type_: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 273 | length: u32, [INFO] [stdout] 274 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExthRecord` 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 `identifier`, `header_length`, `record_count`, `record_list`, and `padding` are never read [INFO] [stdout] --> src/mobi.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 290 | struct ExthHeader { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 291 | identifier: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 292 | header_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 293 | record_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 294 | record_list: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 295 | padding: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExthHeader` 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 `extra_multibyte_bytes`, `tbs_indexing_description`, and `uncrossable_breaks` are never read [INFO] [stdout] --> src/mobi.rs:336:5 [INFO] [stdout] | [INFO] [stdout] 334 | struct Record<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 335 | data: &'a [u8], [INFO] [stdout] 336 | extra_multibyte_bytes: &'a [u8], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 337 | tbs_indexing_description: &'a [u8], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 338 | uncrossable_breaks: &'a [u8], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Record` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/mobi.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 413 | struct IndexMeta { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 414 | identifier: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 415 | length: u32, [INFO] [stdout] 416 | type_: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 417 | unknown_12: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 418 | unknown_16: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 419 | idxt_start: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 420 | index_count: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 421 | index_encoding: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 422 | total_index_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 423 | ordt_start: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 424 | ligt_start: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 425 | unknown_48: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 426 | unknown_52: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexMeta` 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 `tag`, `bit_mask`, `control_byte_end`, and `values` are never read [INFO] [stdout] --> src/mobi.rs:451:5 [INFO] [stdout] | [INFO] [stdout] 450 | struct TagTableEntry { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 451 | tag: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 452 | num_values: u8, [INFO] [stdout] 453 | bit_mask: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 454 | control_byte_end: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 455 | values: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TagTableEntry` 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 `identifier`, `length`, `control_byte_count`, and `tag_table` are never read [INFO] [stdout] --> src/mobi.rs:480:5 [INFO] [stdout] | [INFO] [stdout] 479 | struct TagxSection { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 480 | identifier: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 481 | length: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 482 | control_byte_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 483 | tag_table: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TagxSection` 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 `exth_header`, `index_meta_record`, and `tagx_section` are never read [INFO] [stdout] --> src/mobi.rs:515:5 [INFO] [stdout] | [INFO] [stdout] 507 | pub struct Mobi<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 515 | exth_header: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | index_meta_record: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 519 | tagx_section: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_bytes` is never used [INFO] [stdout] --> src/mobi.rs:583:12 [INFO] [stdout] | [INFO] [stdout] 522 | impl<'a> Mobi<'a> { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 583 | pub fn to_bytes(mobi: &Mobi) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mobi` (bin "mobi" test) due to 5 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "67e5de49d5fb7bfc4f8f141a9bfa0baae7accc31628ce2f1604a5747785d8d25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67e5de49d5fb7bfc4f8f141a9bfa0baae7accc31628ce2f1604a5747785d8d25", kill_on_drop: false }` [INFO] [stdout] 67e5de49d5fb7bfc4f8f141a9bfa0baae7accc31628ce2f1604a5747785d8d25