[INFO] fetching crate smali 0.2.0... [INFO] testing smali-0.2.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate smali 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate smali 0.2.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate smali 0.2.0 [INFO] tweaked toml for crates.io crate smali 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate smali 0.2.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate smali 0.2.0 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb45eb2939b6f4fbb894dcd99deb7ac0a8cd7e98a7b4d1b0752b08c10fe24742 [INFO] running `Command { std: "docker" "start" "-a" "bb45eb2939b6f4fbb894dcd99deb7ac0a8cd7e98a7b4d1b0752b08c10fe24742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb45eb2939b6f4fbb894dcd99deb7ac0a8cd7e98a7b4d1b0752b08c10fe24742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb45eb2939b6f4fbb894dcd99deb7ac0a8cd7e98a7b4d1b0752b08c10fe24742", kill_on_drop: false }` [INFO] [stdout] bb45eb2939b6f4fbb894dcd99deb7ac0a8cd7e98a7b4d1b0752b08c10fe24742 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 6c4f25a835a9229d046930820472868b31f5c9f4a27d32f2aa613a7e5b4749da [INFO] running `Command { std: "docker" "start" "-a" "6c4f25a835a9229d046930820472868b31f5c9f4a27d32f2aa613a7e5b4749da", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rangemap v1.5.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling rand_core v0.9.0-alpha.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.9.0-alpha.2 [INFO] [stderr] Compiling rand v0.9.0-alpha.2 [INFO] [stderr] Compiling smali v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `err` [INFO] [stdout] --> src/dex/error.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! err { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/dex/opcode_format.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | /// Defines various flags that can be associated with an opcode. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RangeBounds` [INFO] [stdout] --> src/dex/opcode_format.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{ RangeBounds, RangeInclusive }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `annotations_offset` [INFO] [stdout] --> src/dex/dex_file.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let annotations_offset = read_u4(bytes, ix)? as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_annotations_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/dex/dex_file.rs:421:25 [INFO] [stdout] | [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/dex/dex_file.rs:490:39 [INFO] [stdout] | [INFO] [stdout] 490 | if let DexString::Decoded(s) = &dex.strings[type_id] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dex/dex_file.rs:614:22 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, f) in class_data.instance_fields.iter().enumerate() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `PrototypeItem::parameters` [INFO] [stdout] --> src/dex/dex_file.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub parameters: TypeList [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `PrototypeItem::parameters` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `ClassDefItem::interfaces` [INFO] [stdout] --> src/dex/dex_file.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | pub interfaces: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `ClassDefItem::interfaces` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_hex_digit` is never used [INFO] [stdout] --> src/smali_parse.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn is_hex_digit(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_element` is never used [INFO] [stdout] --> src/smali_parse.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn parse_element(input: &str) -> IResult<&str, i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u1` is never used [INFO] [stdout] --> src/dex/mod.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn read_u1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u2` is never used [INFO] [stdout] --> src/dex/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn read_u2(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u4` is never used [INFO] [stdout] --> src/dex/mod.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn read_u4(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_uleb128` is never used [INFO] [stdout] --> src/dex/mod.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn read_uleb128(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_uleb128p1` is never used [INFO] [stdout] --> src/dex/mod.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn read_uleb128p1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_x` is never used [INFO] [stdout] --> src/dex/mod.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) fn read_x(bytes: &[u8], ix: &mut usize, length: usize) -> Result, DexError> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u1` is never used [INFO] [stdout] --> src/dex/mod.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | pub(crate) fn write_u1(buffer: &mut Vec, val: u8) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u2` is never used [INFO] [stdout] --> src/dex/mod.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) fn write_u2(buffer: &mut Vec, val: u16) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u4` is never used [INFO] [stdout] --> src/dex/mod.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn write_u4(buffer: &mut Vec, val: u32) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_uleb128` is never used [INFO] [stdout] --> src/dex/mod.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn write_uleb128(buffer: &mut Vec, val: u32) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_uleb128p1` is never used [INFO] [stdout] --> src/dex/mod.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | pub(crate) fn write_uleb128p1(buffer: &mut Vec, val: i32) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_x` is never used [INFO] [stdout] --> src/dex/mod.rs:120:15 [INFO] [stdout] | [INFO] [stdout] 120 | pub(crate) fn write_x(buffer: &mut Vec, val: &[u8]) -> usize [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DexError` is never constructed [INFO] [stdout] --> src/dex/error.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DexError [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_context` are never used [INFO] [stdout] --> src/dex/error.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl DexError [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 53 | { [INFO] [stdout] 54 | pub(crate) fn new(msg: &str) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) fn with_context(base: DexError, context: String) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ENDIAN_CONSTANT: u32 = 0x12345678; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REVERSE_ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_INDEX` is never used [INFO] [stdout] --> src/dex/dex_file.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const NO_INDEX: usize = 0xffffffff; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StringId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | type StringId = usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | type TypeId = StringId; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ProtoId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | type ProtoId = usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FieldId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type FieldId = usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MethodId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type MethodId = usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeList` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl TypeList [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 51 | { [INFO] [stdout] 52 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrototypeItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct PrototypeItem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrototypeItem` 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 `to_string` is never used [INFO] [stdout] --> src/dex/dex_file.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl PrototypeItem [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 80 | { [INFO] [stdout] 81 | pub fn to_string(&self, dex_file: &DexFile) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FieldItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct FieldItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FieldItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl FieldItem [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 102 | { [INFO] [stdout] 103 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct MethodItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl crate::dex::dex_file::MethodItem [INFO] [stdout] | ------------------------------------- associated items in this implementation [INFO] [stdout] 131 | { [INFO] [stdout] 132 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedField` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct EncodedField [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebugInfo` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DebugInfo [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebugInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 169 | impl crate::dex::dex_file::DebugInfo [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 170 | { [INFO] [stdout] 171 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 212 | pub struct CodeItem [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl crate::dex::dex_file::CodeItem [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 226 | { [INFO] [stdout] 227 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedMethod` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct EncodedMethod [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedMethod` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassDataItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct ClassDataItem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassDataItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 293 | impl ClassDataItem [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 294 | { [INFO] [stdout] 295 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassDefItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | pub struct ClassDefItem { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassDefItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 391 | impl ClassDefItem [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 392 | { [INFO] [stdout] 393 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSiteId` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:432:12 [INFO] [stdout] | [INFO] [stdout] 432 | pub struct CallSiteId { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CallSiteId` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodHandle` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 437 | pub struct MethodHandle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodHandle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DexFile` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub struct DexFile { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read`, `get_string`, `get_type`, and `to_smali` are never used [INFO] [stdout] --> src/dex/dex_file.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 456 | impl DexFile { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 457 | [INFO] [stdout] 458 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | fn get_string(&self, id: StringId) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | fn get_type(&self, id: TypeId) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub fn to_smali(&self) -> Result, DexError> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:636:12 [INFO] [stdout] | [INFO] [stdout] 636 | pub struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:665:12 [INFO] [stdout] | [INFO] [stdout] 662 | impl Header [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 665 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 701 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DexString` is never used [INFO] [stdout] --> src/dex/dex_file.rs:735:10 [INFO] [stdout] | [INFO] [stdout] 735 | pub enum DexString [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexString` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string`, `to_string`, `read`, `write`, and `is_decoded` are never used [INFO] [stdout] --> src/dex/dex_file.rs:743:12 [INFO] [stdout] | [INFO] [stdout] 741 | impl DexString [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 742 | { [INFO] [stdout] 743 | pub fn from_string(s: &str) -> DexString [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 748 | pub fn to_string(&self) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 759 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 778 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | pub fn is_decoded(&self) -> bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_uleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn encode_uleb128(value: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_uleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn decode_uleb128(encoded: &[u8]) -> (u32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn encode_sleb128(value: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_uleb128p1` is never used [INFO] [stdout] --> src/dex/leb.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | pub(crate) fn encode_uleb128p1(value: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_uleb128p1` is never used [INFO] [stdout] --> src/dex/leb.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | pub(crate) fn decode_uleb128p1(encoded: &[u8]) -> (i32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedAnnotation` is never constructed [INFO] [stdout] --> src/dex/encoded_values.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EncodedAnnotation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedAnnotation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EncodedAnnotation { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | // Read an EncodedAnnotation from bytes [INFO] [stdout] 14 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnotationElement` is never constructed [INFO] [stdout] --> src/dex/encoded_values.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct AnnotationElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnnotationElement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AnnotationElement { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 50 | // Read an AnnotationElement from bytes [INFO] [stdout] 51 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EncodedValue` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum EncodedValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_string`, `read`, and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl EncodedValue [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn to_string(&self, strings: &Vec) -> String [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_u16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn read_var_u16(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_u32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn read_var_u32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_i64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn read_var_i64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_f32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:333:4 [INFO] [stdout] | [INFO] [stdout] 333 | fn read_var_f32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_f64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn read_var_f64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn byte_size_i16(v: i16) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_u16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:357:4 [INFO] [stdout] | [INFO] [stdout] 357 | fn byte_size_u16(v: u16) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn byte_size_i32(v: i32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_u32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn byte_size_u32(v: u32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn byte_size_i64(v: i64) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_f32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:381:4 [INFO] [stdout] | [INFO] [stdout] 381 | fn byte_size_f32(v: f32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_f64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:388:4 [INFO] [stdout] | [INFO] [stdout] 388 | fn byte_size_f64(v: f64) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_encoded_array` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:397:8 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn write_encoded_array(encoded_array: &[EncodedValue], bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_encoded_array` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | pub fn read_encoded_array(bytes: &[u8], ix: &mut usize) -> Result, DexError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceType` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ReferenceType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferenceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Opcode` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Opcode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VersionConstraint` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct VersionConstraint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dex/opcode_format.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Opcode { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn new_no_flags( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn first_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub(crate) fn last_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub(crate) fn between_api(opcode_value: u16, min_api: i32, max_api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub(crate) fn first_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn last_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn all_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn all_apis(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn all_art_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) fn combine(constraints: Vec, other: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn get_opcode_value(&self, api: i32, art_version: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:256:10 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum Format { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `size` and `is_payload_format` are never used [INFO] [stdout] --> src/dex/opcode_format.rs:298:18 [INFO] [stdout] | [INFO] [stdout] 296 | impl Format { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 297 | /// Returns the size associated with the format. [INFO] [stdout] 298 | pub const fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OPCODES` is never used [INFO] [stdout] --> src/dex/opcodes.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static OPCODES: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unused` is never used [INFO] [stdout] --> src/smali_instructions.rs:1033:4 [INFO] [stdout] | [INFO] [stdout] 1033 | fn parse_unused(input: &str) -> IResult<&str, DexInstruction> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.20s [INFO] running `Command { std: "docker" "inspect" "6c4f25a835a9229d046930820472868b31f5c9f4a27d32f2aa613a7e5b4749da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c4f25a835a9229d046930820472868b31f5c9f4a27d32f2aa613a7e5b4749da", kill_on_drop: false }` [INFO] [stdout] 6c4f25a835a9229d046930820472868b31f5c9f4a27d32f2aa613a7e5b4749da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ade6e62e3aa96cf857bf5e63d098caa1de2f97bb10575f06f1ca951f5a5a49e7 [INFO] running `Command { std: "docker" "start" "-a" "ade6e62e3aa96cf857bf5e63d098caa1de2f97bb10575f06f1ca951f5a5a49e7", kill_on_drop: false }` [INFO] [stdout] warning: unused macro definition: `err` [INFO] [stdout] --> src/dex/error.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! err { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/dex/opcode_format.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | /// Defines various flags that can be associated with an opcode. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RangeBounds` [INFO] [stdout] --> src/dex/opcode_format.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{ RangeBounds, RangeInclusive }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `annotations_offset` [INFO] [stdout] --> src/dex/dex_file.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let annotations_offset = read_u4(bytes, ix)? as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_annotations_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/dex/dex_file.rs:421:25 [INFO] [stdout] | [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/dex/dex_file.rs:490:39 [INFO] [stdout] | [INFO] [stdout] 490 | if let DexString::Decoded(s) = &dex.strings[type_id] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dex/dex_file.rs:614:22 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, f) in class_data.instance_fields.iter().enumerate() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `PrototypeItem::parameters` [INFO] [stdout] --> src/dex/dex_file.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub parameters: TypeList [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `PrototypeItem::parameters` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `ClassDefItem::interfaces` [INFO] [stdout] --> src/dex/dex_file.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | pub interfaces: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `ClassDefItem::interfaces` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_hex_digit` is never used [INFO] [stdout] --> src/smali_parse.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn is_hex_digit(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_element` is never used [INFO] [stdout] --> src/smali_parse.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn parse_element(input: &str) -> IResult<&str, i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u1` is never used [INFO] [stdout] --> src/dex/mod.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn read_u1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u2` is never used [INFO] [stdout] --> src/dex/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn read_u2(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u4` is never used [INFO] [stdout] --> src/dex/mod.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn read_u4(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_uleb128` is never used [INFO] [stdout] --> src/dex/mod.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn read_uleb128(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_uleb128p1` is never used [INFO] [stdout] --> src/dex/mod.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn read_uleb128p1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_x` is never used [INFO] [stdout] --> src/dex/mod.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) fn read_x(bytes: &[u8], ix: &mut usize, length: usize) -> Result, DexError> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u1` is never used [INFO] [stdout] --> src/dex/mod.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | pub(crate) fn write_u1(buffer: &mut Vec, val: u8) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u2` is never used [INFO] [stdout] --> src/dex/mod.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) fn write_u2(buffer: &mut Vec, val: u16) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u4` is never used [INFO] [stdout] --> src/dex/mod.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn write_u4(buffer: &mut Vec, val: u32) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_uleb128` is never used [INFO] [stdout] --> src/dex/mod.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn write_uleb128(buffer: &mut Vec, val: u32) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_uleb128p1` is never used [INFO] [stdout] --> src/dex/mod.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | pub(crate) fn write_uleb128p1(buffer: &mut Vec, val: i32) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_x` is never used [INFO] [stdout] --> src/dex/mod.rs:120:15 [INFO] [stdout] | [INFO] [stdout] 120 | pub(crate) fn write_x(buffer: &mut Vec, val: &[u8]) -> usize [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DexError` is never constructed [INFO] [stdout] --> src/dex/error.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DexError [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_context` are never used [INFO] [stdout] --> src/dex/error.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl DexError [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 53 | { [INFO] [stdout] 54 | pub(crate) fn new(msg: &str) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) fn with_context(base: DexError, context: String) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ENDIAN_CONSTANT: u32 = 0x12345678; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REVERSE_ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_INDEX` is never used [INFO] [stdout] --> src/dex/dex_file.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const NO_INDEX: usize = 0xffffffff; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StringId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | type StringId = usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | type TypeId = StringId; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ProtoId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | type ProtoId = usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling smali v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type alias `FieldId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type FieldId = usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MethodId` is never used [INFO] [stdout] --> src/dex/dex_file.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type MethodId = usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeList` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl TypeList [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 51 | { [INFO] [stdout] 52 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrototypeItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct PrototypeItem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrototypeItem` 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 `to_string` is never used [INFO] [stdout] --> src/dex/dex_file.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl PrototypeItem [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 80 | { [INFO] [stdout] 81 | pub fn to_string(&self, dex_file: &DexFile) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FieldItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct FieldItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FieldItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl FieldItem [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 102 | { [INFO] [stdout] 103 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct MethodItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl crate::dex::dex_file::MethodItem [INFO] [stdout] | ------------------------------------- associated items in this implementation [INFO] [stdout] 131 | { [INFO] [stdout] 132 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedField` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct EncodedField [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebugInfo` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DebugInfo [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebugInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 169 | impl crate::dex::dex_file::DebugInfo [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 170 | { [INFO] [stdout] 171 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 212 | pub struct CodeItem [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl crate::dex::dex_file::CodeItem [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 226 | { [INFO] [stdout] 227 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedMethod` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct EncodedMethod [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedMethod` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassDataItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct ClassDataItem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassDataItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 293 | impl ClassDataItem [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 294 | { [INFO] [stdout] 295 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassDefItem` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | pub struct ClassDefItem { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassDefItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 391 | impl ClassDefItem [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 392 | { [INFO] [stdout] 393 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSiteId` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:432:12 [INFO] [stdout] | [INFO] [stdout] 432 | pub struct CallSiteId { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CallSiteId` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodHandle` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 437 | pub struct MethodHandle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodHandle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DexFile` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub struct DexFile { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read`, `get_string`, `get_type`, and `to_smali` are never used [INFO] [stdout] --> src/dex/dex_file.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 456 | impl DexFile { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 457 | [INFO] [stdout] 458 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | fn get_string(&self, id: StringId) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | fn get_type(&self, id: TypeId) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub fn to_smali(&self) -> Result, DexError> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/dex/dex_file.rs:636:12 [INFO] [stdout] | [INFO] [stdout] 636 | pub struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/dex_file.rs:665:12 [INFO] [stdout] | [INFO] [stdout] 662 | impl Header [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 665 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 701 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DexString` is never used [INFO] [stdout] --> src/dex/dex_file.rs:735:10 [INFO] [stdout] | [INFO] [stdout] 735 | pub enum DexString [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexString` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string`, `to_string`, `read`, `write`, and `is_decoded` are never used [INFO] [stdout] --> src/dex/dex_file.rs:743:12 [INFO] [stdout] | [INFO] [stdout] 741 | impl DexString [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 742 | { [INFO] [stdout] 743 | pub fn from_string(s: &str) -> DexString [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 748 | pub fn to_string(&self) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 759 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 778 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | pub fn is_decoded(&self) -> bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_uleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn encode_uleb128(value: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_uleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn decode_uleb128(encoded: &[u8]) -> (u32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn encode_sleb128(value: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_uleb128p1` is never used [INFO] [stdout] --> src/dex/leb.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | pub(crate) fn encode_uleb128p1(value: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_uleb128p1` is never used [INFO] [stdout] --> src/dex/leb.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | pub(crate) fn decode_uleb128p1(encoded: &[u8]) -> (i32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncodedAnnotation` is never constructed [INFO] [stdout] --> src/dex/encoded_values.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EncodedAnnotation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedAnnotation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EncodedAnnotation { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | // Read an EncodedAnnotation from bytes [INFO] [stdout] 14 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnotationElement` is never constructed [INFO] [stdout] --> src/dex/encoded_values.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct AnnotationElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnnotationElement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read` and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AnnotationElement { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 50 | // Read an AnnotationElement from bytes [INFO] [stdout] 51 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EncodedValue` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum EncodedValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_string`, `read`, and `write` are never used [INFO] [stdout] --> src/dex/encoded_values.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl EncodedValue [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn to_string(&self, strings: &Vec) -> String [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_u16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn read_var_u16(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_u32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn read_var_u32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_i64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:321:4 [INFO] [stdout] | [INFO] [stdout] 321 | fn read_var_i64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_f32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:333:4 [INFO] [stdout] | [INFO] [stdout] 333 | fn read_var_f32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_var_f64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn read_var_f64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn byte_size_i16(v: i16) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_u16` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:357:4 [INFO] [stdout] | [INFO] [stdout] 357 | fn byte_size_u16(v: u16) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn byte_size_i32(v: i32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_u32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn byte_size_u32(v: u32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_i64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn byte_size_i64(v: i64) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_f32` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:381:4 [INFO] [stdout] | [INFO] [stdout] 381 | fn byte_size_f32(v: f32) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_size_f64` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:388:4 [INFO] [stdout] | [INFO] [stdout] 388 | fn byte_size_f64(v: f64) -> u8 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_encoded_array` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:397:8 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn write_encoded_array(encoded_array: &[EncodedValue], bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_encoded_array` is never used [INFO] [stdout] --> src/dex/encoded_values.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | pub fn read_encoded_array(bytes: &[u8], ix: &mut usize) -> Result, DexError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceType` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ReferenceType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferenceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Opcode` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Opcode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VersionConstraint` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct VersionConstraint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dex/opcode_format.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Opcode { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn new_no_flags( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn first_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub(crate) fn last_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub(crate) fn between_api(opcode_value: u16, min_api: i32, max_api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub(crate) fn first_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn last_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn all_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn all_apis(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn all_art_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) fn combine(constraints: Vec, other: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn get_opcode_value(&self, api: i32, art_version: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:256:10 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum Format { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `size` and `is_payload_format` are never used [INFO] [stdout] --> src/dex/opcode_format.rs:298:18 [INFO] [stdout] | [INFO] [stdout] 296 | impl Format { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 297 | /// Returns the size associated with the format. [INFO] [stdout] 298 | pub const fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OPCODES` is never used [INFO] [stdout] --> src/dex/opcodes.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static OPCODES: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unused` is never used [INFO] [stdout] --> src/smali_instructions.rs:1033:4 [INFO] [stdout] | [INFO] [stdout] 1033 | fn parse_unused(input: &str) -> IResult<&str, DexInstruction> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `p` [INFO] [stdout] --> examples/main.rs:9:53 [INFO] [stdout] | [INFO] [stdout] 9 | use smali::smali_instructions::{ DexInstruction, v, p }; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `err` [INFO] [stdout] --> src/dex/error.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! err { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/dex/opcode_format.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | /// Defines various flags that can be associated with an opcode. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RangeBounds` [INFO] [stdout] --> src/dex/opcode_format.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{ RangeBounds, RangeInclusive }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `annotations_offset` [INFO] [stdout] --> src/dex/dex_file.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let annotations_offset = read_u4(bytes, ix)? as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_annotations_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/dex/dex_file.rs:421:25 [INFO] [stdout] | [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/dex/dex_file.rs:490:39 [INFO] [stdout] | [INFO] [stdout] 490 | if let DexString::Decoded(s) = &dex.strings[type_id] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dex/dex_file.rs:614:22 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, f) in class_data.instance_fields.iter().enumerate() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_size` [INFO] [stdout] --> src/dex/dex_file.rs:820:13 [INFO] [stdout] | [INFO] [stdout] 820 | let encoded_size = header.write(&mut encoded_bytes); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | let mut bytes = vec![0x00, 0x7F]; // 0x00 is the header, 0x7F (127) is the value [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | let mut bytes = vec![34, 0x34, 0x12]; // 0x10 is the header, 0x1234 in little-endian [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let mut bytes = vec![35, 0x34, 0x12]; // 0x30 is the header, 0x1234 in little-endian [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | let mut bytes = vec![0x64, 0x78, 0x56, 0x34, 0x12]; // 0x40 is the header, 0x12345678 in little-endian [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:495:13 [INFO] [stdout] | [INFO] [stdout] 495 | let mut bytes = vec![0x1E]; // 0x1E is the header for null [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:511:13 [INFO] [stdout] | [INFO] [stdout] 511 | let mut bytes = vec![0x1F | (1 << 5)]; // 0x1F is the header for boolean, 1 << 5 is the value_arg [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dex/encoded_values.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let mut bytes = vec![0x1F]; // 0x1F is the header for boolean with value_arg = 0 [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `PrototypeItem::parameters` [INFO] [stdout] --> src/dex/dex_file.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub parameters: TypeList [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `PrototypeItem::parameters` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeList` is more private than the item `ClassDefItem::interfaces` [INFO] [stdout] --> src/dex/dex_file.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | pub interfaces: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `ClassDefItem::interfaces` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/dex/dex_file.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | struct TypeList(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_hex_digit` is never used [INFO] [stdout] --> src/smali_parse.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn is_hex_digit(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_element` is never used [INFO] [stdout] --> src/smali_parse.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn parse_element(input: &str) -> IResult<&str, i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_u2` is never used [INFO] [stdout] --> src/dex/mod.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) fn write_u2(buffer: &mut Vec, val: u16) -> usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_uleb128p1` is never used [INFO] [stdout] --> src/dex/mod.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | pub(crate) fn write_uleb128p1(buffer: &mut Vec, val: i32) -> usize [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_context` is never used [INFO] [stdout] --> src/dex/error.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl DexError [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) fn with_context(base: DexError, context: String) -> Self [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ENDIAN_CONSTANT: u32 = 0x12345678; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REVERSE_ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl TypeList [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `shorty_idx`, `return_type_idx`, and `parameters` are never read [INFO] [stdout] --> src/dex/dex_file.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct PrototypeItem { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 73 | // The proto_id_item struct [INFO] [stdout] 74 | pub shorty_idx: StringId, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 75 | pub return_type_idx: TypeId, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | pub parameters: TypeList [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrototypeItem` 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 `to_string` is never used [INFO] [stdout] --> src/dex/dex_file.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl PrototypeItem [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 80 | { [INFO] [stdout] 81 | pub fn to_string(&self, dex_file: &DexFile) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl FieldItem [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl crate::dex::dex_file::MethodItem [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_start` and `parameter_names` are never read [INFO] [stdout] --> src/dex/dex_file.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DebugInfo [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 161 | { [INFO] [stdout] 162 | pub line_start: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 163 | pub parameter_names: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebugInfo` 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 `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 169 | impl crate::dex::dex_file::DebugInfo [INFO] [stdout] | ------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dex/dex_file.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 212 | pub struct CodeItem [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 213 | { [INFO] [stdout] 214 | registers_size: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 215 | args_in_size: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 216 | args_out_size: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 217 | tries_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 218 | debug_info: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 219 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 220 | padding: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeItem` 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 `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:244:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl crate::dex::dex_file::CodeItem [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `method_idx`, `access_flags`, and `code` are never read [INFO] [stdout] --> src/dex/dex_file.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct EncodedMethod [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 277 | { [INFO] [stdout] 278 | pub method_idx: FieldId, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 279 | pub access_flags: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 280 | pub code: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncodedMethod` 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 `direct_methods` and `virtual_methods` are never read [INFO] [stdout] --> src/dex/dex_file.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct ClassDataItem { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 289 | pub direct_methods: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 290 | pub virtual_methods: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassDataItem` 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 `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 293 | impl ClassDataItem [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/dex_file.rs:421:12 [INFO] [stdout] | [INFO] [stdout] 391 | impl ClassDefItem [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `call_site_ids`, `method_handles`, `data`, and `link_data` are never read [INFO] [stdout] --> src/dex/dex_file.rs:450:9 [INFO] [stdout] | [INFO] [stdout] 442 | pub struct DexFile { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 450 | pub call_site_ids: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 451 | pub method_handles: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 452 | pub data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 453 | pub link_data: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string`, `to_string`, `write`, and `is_decoded` are never used [INFO] [stdout] --> src/dex/dex_file.rs:743:12 [INFO] [stdout] | [INFO] [stdout] 741 | impl DexString [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 742 | { [INFO] [stdout] 743 | pub fn from_string(s: &str) -> DexString [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 748 | pub fn to_string(&self) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 778 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | pub fn is_decoded(&self) -> bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_uleb128p1` is never used [INFO] [stdout] --> src/dex/leb.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | pub(crate) fn encode_uleb128p1(value: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceType` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ReferenceType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferenceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Opcode` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Opcode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VersionConstraint` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct VersionConstraint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dex/opcode_format.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Opcode { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn new_no_flags( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn first_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub(crate) fn last_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub(crate) fn between_api(opcode_value: u16, min_api: i32, max_api: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub(crate) fn first_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub(crate) fn last_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn all_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn all_apis(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn all_art_versions(opcode_value: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) fn combine(constraints: Vec, other: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn get_opcode_value(&self, api: i32, art_version: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:256:10 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum Format { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `size` and `is_payload_format` are never used [INFO] [stdout] --> src/dex/opcode_format.rs:298:18 [INFO] [stdout] | [INFO] [stdout] 296 | impl Format { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 297 | /// Returns the size associated with the format. [INFO] [stdout] 298 | pub const fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OPCODES` is never used [INFO] [stdout] --> src/dex/opcodes.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static OPCODES: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unused` is never used [INFO] [stdout] --> src/smali_instructions.rs:1033:4 [INFO] [stdout] | [INFO] [stdout] 1033 | fn parse_unused(input: &str) -> IResult<&str, DexInstruction> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.05s [INFO] running `Command { std: "docker" "inspect" "ade6e62e3aa96cf857bf5e63d098caa1de2f97bb10575f06f1ca951f5a5a49e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ade6e62e3aa96cf857bf5e63d098caa1de2f97bb10575f06f1ca951f5a5a49e7", kill_on_drop: false }` [INFO] [stdout] ade6e62e3aa96cf857bf5e63d098caa1de2f97bb10575f06f1ca951f5a5a49e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e816fb67a41b74dc366deab1bdd09707755c085ec3da6340759bacffad29a970 [INFO] running `Command { std: "docker" "start" "-a" "e816fb67a41b74dc366deab1bdd09707755c085ec3da6340759bacffad29a970", kill_on_drop: false }` [INFO] [stderr] warning: unused macro definition: `err` [INFO] [stderr] --> src/dex/error.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | macro_rules! err { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/dex/opcode_format.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | /// Defines various flags that can be associated with an opcode. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `RangeBounds` [INFO] [stderr] --> src/dex/opcode_format.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use std::ops::{ RangeBounds, RangeInclusive }; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `annotations_offset` [INFO] [stderr] --> src/dex/dex_file.rs:402:13 [INFO] [stderr] | [INFO] [stderr] 402 | let annotations_offset = read_u4(bytes, ix)? as usize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_annotations_offset` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bytes` [INFO] [stderr] --> src/dex/dex_file.rs:421:25 [INFO] [stderr] | [INFO] [stderr] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/dex/dex_file.rs:490:39 [INFO] [stderr] | [INFO] [stderr] 490 | if let DexString::Decoded(s) = &dex.strings[type_id] [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/dex/dex_file.rs:614:22 [INFO] [stderr] | [INFO] [stderr] 614 | for (i, f) in class_data.instance_fields.iter().enumerate() [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: type `TypeList` is more private than the item `PrototypeItem::parameters` [INFO] [stderr] --> src/dex/dex_file.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | pub parameters: TypeList [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `PrototypeItem::parameters` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/dex/dex_file.rs:48:1 [INFO] [stderr] | [INFO] [stderr] 48 | struct TypeList(Vec); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `TypeList` is more private than the item `ClassDefItem::interfaces` [INFO] [stderr] --> src/dex/dex_file.rs:384:5 [INFO] [stderr] | [INFO] [stderr] 384 | pub interfaces: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `ClassDefItem::interfaces` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `TypeList` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/dex/dex_file.rs:48:1 [INFO] [stderr] | [INFO] [stderr] 48 | struct TypeList(Vec); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_hex_digit` is never used [INFO] [stderr] --> src/smali_parse.rs:376:4 [INFO] [stderr] | [INFO] [stderr] 376 | fn is_hex_digit(c: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `parse_element` is never used [INFO] [stderr] --> src/smali_parse.rs:383:4 [INFO] [stderr] | [INFO] [stderr] 383 | fn parse_element(input: &str) -> IResult<&str, i64> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_u1` is never used [INFO] [stderr] --> src/dex/mod.rs:17:15 [INFO] [stderr] | [INFO] [stderr] 17 | pub(crate) fn read_u1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_u2` is never used [INFO] [stderr] --> src/dex/mod.rs:28:15 [INFO] [stderr] | [INFO] [stderr] 28 | pub(crate) fn read_u2(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_u4` is never used [INFO] [stderr] --> src/dex/mod.rs:39:15 [INFO] [stderr] | [INFO] [stderr] 39 | pub(crate) fn read_u4(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_uleb128` is never used [INFO] [stderr] --> src/dex/mod.rs:51:15 [INFO] [stderr] | [INFO] [stderr] 51 | pub(crate) fn read_uleb128(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_uleb128p1` is never used [INFO] [stderr] --> src/dex/mod.rs:58:15 [INFO] [stderr] | [INFO] [stderr] 58 | pub(crate) fn read_uleb128p1(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_x` is never used [INFO] [stderr] --> src/dex/mod.rs:65:15 [INFO] [stderr] | [INFO] [stderr] 65 | pub(crate) fn read_x(bytes: &[u8], ix: &mut usize, length: usize) -> Result, DexError> [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_u1` is never used [INFO] [stderr] --> src/dex/mod.rs:82:15 [INFO] [stderr] | [INFO] [stderr] 82 | pub(crate) fn write_u1(buffer: &mut Vec, val: u8) -> usize [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_u2` is never used [INFO] [stderr] --> src/dex/mod.rs:88:15 [INFO] [stderr] | [INFO] [stderr] 88 | pub(crate) fn write_u2(buffer: &mut Vec, val: u16) -> usize [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_u4` is never used [INFO] [stderr] --> src/dex/mod.rs:95:15 [INFO] [stderr] | [INFO] [stderr] 95 | pub(crate) fn write_u4(buffer: &mut Vec, val: u32) -> usize [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_uleb128` is never used [INFO] [stderr] --> src/dex/mod.rs:104:15 [INFO] [stderr] | [INFO] [stderr] 104 | pub(crate) fn write_uleb128(buffer: &mut Vec, val: u32) -> usize [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_uleb128p1` is never used [INFO] [stderr] --> src/dex/mod.rs:112:15 [INFO] [stderr] | [INFO] [stderr] 112 | pub(crate) fn write_uleb128p1(buffer: &mut Vec, val: i32) -> usize [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_x` is never used [INFO] [stderr] --> src/dex/mod.rs:120:15 [INFO] [stderr] | [INFO] [stderr] 120 | pub(crate) fn write_x(buffer: &mut Vec, val: &[u8]) -> usize [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DexError` is never constructed [INFO] [stderr] --> src/dex/error.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct DexError [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DexError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `new` and `with_context` are never used [INFO] [stderr] --> src/dex/error.rs:54:19 [INFO] [stderr] | [INFO] [stderr] 52 | impl DexError [INFO] [stderr] | ------------- associated functions in this implementation [INFO] [stderr] 53 | { [INFO] [stderr] 54 | pub(crate) fn new(msg: &str) -> Self [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | pub(crate) fn with_context(base: DexError, context: String) -> Self [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stderr] --> src/dex/dex_file.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stderr] --> src/dex/dex_file.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | pub const ENDIAN_CONSTANT: u32 = 0x12345678; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `REVERSE_ENDIAN_CONSTANT` is never used [INFO] [stderr] --> src/dex/dex_file.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `NO_INDEX` is never used [INFO] [stderr] --> src/dex/dex_file.rs:14:11 [INFO] [stderr] | [INFO] [stderr] 14 | pub const NO_INDEX: usize = 0xffffffff; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `StringId` is never used [INFO] [stderr] --> src/dex/dex_file.rs:41:6 [INFO] [stderr] | [INFO] [stderr] 41 | type StringId = usize; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `TypeId` is never used [INFO] [stderr] --> src/dex/dex_file.rs:42:6 [INFO] [stderr] | [INFO] [stderr] 42 | type TypeId = StringId; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `ProtoId` is never used [INFO] [stderr] --> src/dex/dex_file.rs:43:6 [INFO] [stderr] | [INFO] [stderr] 43 | type ProtoId = usize; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `FieldId` is never used [INFO] [stderr] --> src/dex/dex_file.rs:44:6 [INFO] [stderr] | [INFO] [stderr] 44 | type FieldId = usize; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `MethodId` is never used [INFO] [stderr] --> src/dex/dex_file.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | type MethodId = usize; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TypeList` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | struct TypeList(Vec); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TypeList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 50 | impl TypeList [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 51 | { [INFO] [stderr] 52 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PrototypeItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 72 | pub struct PrototypeItem { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PrototypeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `to_string` is never used [INFO] [stderr] --> src/dex/dex_file.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 79 | impl PrototypeItem [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] 80 | { [INFO] [stderr] 81 | pub fn to_string(&self, dex_file: &DexFile) -> Result [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FieldItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:94:12 [INFO] [stderr] | [INFO] [stderr] 94 | pub struct FieldItem { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FieldItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:103:12 [INFO] [stderr] | [INFO] [stderr] 101 | impl FieldItem [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 102 | { [INFO] [stderr] 103 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 112 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MethodItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | pub struct MethodItem { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MethodItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:132:12 [INFO] [stderr] | [INFO] [stderr] 130 | impl crate::dex::dex_file::MethodItem [INFO] [stderr] | ------------------------------------- associated items in this implementation [INFO] [stderr] 131 | { [INFO] [stderr] 132 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EncodedField` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub struct EncodedField [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EncodedField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `DebugInfo` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:160:12 [INFO] [stderr] | [INFO] [stderr] 160 | pub struct DebugInfo [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DebugInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:171:12 [INFO] [stderr] | [INFO] [stderr] 169 | impl crate::dex::dex_file::DebugInfo [INFO] [stderr] | ------------------------------------ associated items in this implementation [INFO] [stderr] 170 | { [INFO] [stderr] 171 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 189 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CodeItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:212:12 [INFO] [stderr] | [INFO] [stderr] 212 | pub struct CodeItem [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CodeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:227:12 [INFO] [stderr] | [INFO] [stderr] 225 | impl crate::dex::dex_file::CodeItem [INFO] [stderr] | ----------------------------------- associated items in this implementation [INFO] [stderr] 226 | { [INFO] [stderr] 227 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 244 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EncodedMethod` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:276:12 [INFO] [stderr] | [INFO] [stderr] 276 | pub struct EncodedMethod [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EncodedMethod` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ClassDataItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:285:12 [INFO] [stderr] | [INFO] [stderr] 285 | pub struct ClassDataItem { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ClassDataItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:295:12 [INFO] [stderr] | [INFO] [stderr] 293 | impl ClassDataItem [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 294 | { [INFO] [stderr] 295 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 342 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ClassDefItem` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:379:12 [INFO] [stderr] | [INFO] [stderr] 379 | pub struct ClassDefItem { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ClassDefItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:393:12 [INFO] [stderr] | [INFO] [stderr] 391 | impl ClassDefItem [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] 392 | { [INFO] [stderr] 393 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CallSiteId` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:432:12 [INFO] [stderr] | [INFO] [stderr] 432 | pub struct CallSiteId { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CallSiteId` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `MethodHandle` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:437:12 [INFO] [stderr] | [INFO] [stderr] 437 | pub struct MethodHandle { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MethodHandle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `DexFile` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:442:12 [INFO] [stderr] | [INFO] [stderr] 442 | pub struct DexFile { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DexFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read`, `get_string`, `get_type`, and `to_smali` are never used [INFO] [stderr] --> src/dex/dex_file.rs:458:12 [INFO] [stderr] | [INFO] [stderr] 456 | impl DexFile { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] 457 | [INFO] [stderr] 458 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 537 | fn get_string(&self, id: StringId) -> Result [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 549 | fn get_type(&self, id: TypeId) -> Result [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 555 | pub fn to_smali(&self) -> Result, DexError> [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Header` is never constructed [INFO] [stderr] --> src/dex/dex_file.rs:636:12 [INFO] [stderr] | [INFO] [stderr] 636 | pub struct Header { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/dex_file.rs:665:12 [INFO] [stderr] | [INFO] [stderr] 662 | impl Header [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 665 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 701 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `DexString` is never used [INFO] [stderr] --> src/dex/dex_file.rs:735:10 [INFO] [stderr] | [INFO] [stderr] 735 | pub enum DexString [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DexString` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `from_string`, `to_string`, `read`, `write`, and `is_decoded` are never used [INFO] [stderr] --> src/dex/dex_file.rs:743:12 [INFO] [stderr] | [INFO] [stderr] 741 | impl DexString [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 742 | { [INFO] [stderr] 743 | pub fn from_string(s: &str) -> DexString [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 748 | pub fn to_string(&self) -> Result [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 759 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 778 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 800 | pub fn is_decoded(&self) -> bool [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_uleb128` is never used [INFO] [stderr] --> src/dex/leb.rs:3:15 [INFO] [stderr] | [INFO] [stderr] 3 | pub(crate) fn encode_uleb128(value: u32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_uleb128` is never used [INFO] [stderr] --> src/dex/leb.rs:26:15 [INFO] [stderr] | [INFO] [stderr] 26 | pub(crate) fn decode_uleb128(encoded: &[u8]) -> (u32, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_sleb128` is never used [INFO] [stderr] --> src/dex/leb.rs:44:15 [INFO] [stderr] | [INFO] [stderr] 44 | pub(crate) fn encode_sleb128(value: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_sleb128` is never used [INFO] [stderr] --> src/dex/leb.rs:69:15 [INFO] [stderr] | [INFO] [stderr] 69 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_uleb128p1` is never used [INFO] [stderr] --> src/dex/leb.rs:90:15 [INFO] [stderr] | [INFO] [stderr] 90 | pub(crate) fn encode_uleb128p1(value: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_uleb128p1` is never used [INFO] [stderr] --> src/dex/leb.rs:94:15 [INFO] [stderr] | [INFO] [stderr] 94 | pub(crate) fn decode_uleb128p1(encoded: &[u8]) -> (i32, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EncodedAnnotation` is never constructed [INFO] [stderr] --> src/dex/encoded_values.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct EncodedAnnotation { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EncodedAnnotation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/encoded_values.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl EncodedAnnotation { [INFO] [stderr] | ---------------------- associated items in this implementation [INFO] [stderr] 13 | // Read an EncodedAnnotation from bytes [INFO] [stderr] 14 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AnnotationElement` is never constructed [INFO] [stderr] --> src/dex/encoded_values.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub struct AnnotationElement { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AnnotationElement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `read` and `write` are never used [INFO] [stderr] --> src/dex/encoded_values.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 49 | impl AnnotationElement { [INFO] [stderr] | ---------------------- associated items in this implementation [INFO] [stderr] 50 | // Read an AnnotationElement from bytes [INFO] [stderr] 51 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `EncodedValue` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:71:10 [INFO] [stderr] | [INFO] [stderr] 71 | pub enum EncodedValue { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EncodedValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `to_string`, `read`, and `write` are never used [INFO] [stderr] --> src/dex/encoded_values.rs:95:12 [INFO] [stderr] | [INFO] [stderr] 92 | impl EncodedValue [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn to_string(&self, strings: &Vec) -> String [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | pub fn read(bytes: &[u8], ix: &mut usize) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 205 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_var_u16` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:299:4 [INFO] [stderr] | [INFO] [stderr] 299 | fn read_var_u16(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_var_u32` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:311:4 [INFO] [stderr] | [INFO] [stderr] 311 | fn read_var_u32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_var_i64` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:321:4 [INFO] [stderr] | [INFO] [stderr] 321 | fn read_var_i64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_var_f32` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:333:4 [INFO] [stderr] | [INFO] [stderr] 333 | fn read_var_f32(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_var_f64` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:342:4 [INFO] [stderr] | [INFO] [stderr] 342 | fn read_var_f64(bytes: &[u8], ix: &mut usize, size: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_i16` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:351:4 [INFO] [stderr] | [INFO] [stderr] 351 | fn byte_size_i16(v: i16) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_u16` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:357:4 [INFO] [stderr] | [INFO] [stderr] 357 | fn byte_size_u16(v: u16) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_i32` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:363:4 [INFO] [stderr] | [INFO] [stderr] 363 | fn byte_size_i32(v: i32) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_u32` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:369:4 [INFO] [stderr] | [INFO] [stderr] 369 | fn byte_size_u32(v: u32) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_i64` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:375:4 [INFO] [stderr] | [INFO] [stderr] 375 | fn byte_size_i64(v: i64) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_f32` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:381:4 [INFO] [stderr] | [INFO] [stderr] 381 | fn byte_size_f32(v: f32) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `byte_size_f64` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:388:4 [INFO] [stderr] | [INFO] [stderr] 388 | fn byte_size_f64(v: f64) -> u8 [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_encoded_array` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:397:8 [INFO] [stderr] | [INFO] [stderr] 397 | pub fn write_encoded_array(encoded_array: &[EncodedValue], bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_encoded_array` is never used [INFO] [stderr] --> src/dex/encoded_values.rs:409:8 [INFO] [stderr] | [INFO] [stderr] 409 | pub fn read_encoded_array(bytes: &[u8], ix: &mut usize) -> Result, DexError> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ReferenceType` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum ReferenceType { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ReferenceType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `Opcode` is never constructed [INFO] [stderr] --> src/dex/opcode_format.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct Opcode { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `VersionConstraint` is never constructed [INFO] [stderr] --> src/dex/opcode_format.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub struct VersionConstraint { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/dex/opcode_format.rs:56:19 [INFO] [stderr] | [INFO] [stderr] 53 | impl Opcode { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 56 | pub(crate) fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub(crate) fn new_no_flags( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 109 | pub(crate) fn first_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | pub(crate) fn last_api(opcode_value: u16, api: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 127 | pub(crate) fn between_api(opcode_value: u16, min_api: i32, max_api: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | pub(crate) fn first_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 145 | pub(crate) fn last_art_version(opcode_value: u16, art_version: i32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 154 | pub(crate) fn all_versions(opcode_value: u16) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 163 | pub(crate) fn all_apis(opcode_value: u16) -> Vec { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 172 | pub(crate) fn all_art_versions(opcode_value: u16) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 181 | pub(crate) fn combine(constraints: Vec, other: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | pub fn can_throw(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 193 | pub fn odex_only(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 198 | pub fn can_continue(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 203 | pub fn sets_result(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 208 | pub fn sets_register(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | pub fn sets_wide_register(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 218 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 223 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 228 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 233 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 238 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 243 | pub fn get_opcode_value(&self, api: i32, art_version: i32) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Format` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:256:10 [INFO] [stderr] | [INFO] [stderr] 256 | pub enum Format { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Format` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `size` and `is_payload_format` are never used [INFO] [stderr] --> src/dex/opcode_format.rs:298:18 [INFO] [stderr] | [INFO] [stderr] 296 | impl Format { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] 297 | /// Returns the size associated with the format. [INFO] [stderr] 298 | pub const fn size(&self) -> i32 { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 351 | pub const fn is_payload_format(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: static `OPCODES` is never used [INFO] [stdout] running 46 tests [INFO] [stderr] --> src/dex/opcodes.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | static OPCODES: Lazy> = Lazy::new(|| { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_unused` is never used [INFO] [stderr] --> src/smali_instructions.rs:1033:4 [INFO] [stderr] | [INFO] [stderr] 1033 | fn parse_unused(input: &str) -> IResult<&str, DexInstruction> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `encoded_size` [INFO] [stderr] --> src/dex/dex_file.rs:820:13 [INFO] [stderr] | [INFO] [stderr] 820 | let encoded_size = header.write(&mut encoded_bytes); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_size` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:431:13 [INFO] [stderr] | [INFO] [stderr] 431 | let mut bytes = vec![0x00, 0x7F]; // 0x00 is the header, 0x7F (127) is the value [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:447:13 [INFO] [stderr] | [INFO] [stderr] 447 | let mut bytes = vec![34, 0x34, 0x12]; // 0x10 is the header, 0x1234 in little-endian [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:463:13 [INFO] [stderr] | [INFO] [stderr] 463 | let mut bytes = vec![35, 0x34, 0x12]; // 0x30 is the header, 0x1234 in little-endian [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:479:13 [INFO] [stderr] | [INFO] [stderr] 479 | let mut bytes = vec![0x64, 0x78, 0x56, 0x34, 0x12]; // 0x40 is the header, 0x12345678 in little-endian [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:495:13 [INFO] [stderr] | [INFO] [stderr] 495 | let mut bytes = vec![0x1E]; // 0x1E is the header for null [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:511:13 [INFO] [stderr] | [INFO] [stderr] 511 | let mut bytes = vec![0x1F | (1 << 5)]; // 0x1F is the header for boolean, 1 << 5 is the value_arg [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/dex/encoded_values.rs:527:13 [INFO] [stderr] | [INFO] [stderr] 527 | let mut bytes = vec![0x1F]; // 0x1F is the header for boolean with value_arg = 0 [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function `with_context` is never used [INFO] [stderr] --> src/dex/error.rs:62:19 [INFO] [stderr] | [INFO] [stderr] 52 | impl DexError [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 62 | pub(crate) fn with_context(base: DexError, context: String) -> Self [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 50 | impl TypeList [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `shorty_idx`, `return_type_idx`, and `parameters` are never read [INFO] [stderr] --> src/dex/dex_file.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 72 | pub struct PrototypeItem { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 73 | // The proto_id_item struct [INFO] [stderr] 74 | pub shorty_idx: StringId, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 75 | pub return_type_idx: TypeId, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 76 | pub parameters: TypeList [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PrototypeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 101 | impl FieldItem [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 112 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:141:12 [INFO] [stderr] | [INFO] [stderr] 130 | impl crate::dex::dex_file::MethodItem [INFO] [stderr] | ------------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 141 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `line_start` and `parameter_names` are never read [INFO] [stderr] --> src/dex/dex_file.rs:162:9 [INFO] [stderr] | [INFO] [stderr] 160 | pub struct DebugInfo [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 161 | { [INFO] [stderr] 162 | pub line_start: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 163 | pub parameter_names: Vec [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DebugInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:189:12 [INFO] [stderr] | [INFO] [stderr] 169 | impl crate::dex::dex_file::DebugInfo [INFO] [stderr] | ------------------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 189 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/dex/dex_file.rs:214:5 [INFO] [stderr] | [INFO] [stderr] 212 | pub struct CodeItem [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 213 | { [INFO] [stderr] 214 | registers_size: u16, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 215 | args_in_size: u16, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 216 | args_out_size: u16, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 217 | tries_size: u16, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 218 | debug_info: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 219 | instructions: Vec, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 220 | padding: u16, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CodeItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:244:12 [INFO] [stderr] | [INFO] [stderr] 225 | impl crate::dex::dex_file::CodeItem [INFO] [stderr] | ----------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 244 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `method_idx`, `access_flags`, and `code` are never read [INFO] [stderr] --> src/dex/dex_file.rs:278:9 [INFO] [stderr] | [INFO] [stderr] 276 | pub struct EncodedMethod [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 277 | { [INFO] [stderr] 278 | pub method_idx: FieldId, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 279 | pub access_flags: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 280 | pub code: Option [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EncodedMethod` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `direct_methods` and `virtual_methods` are never read [INFO] [stderr] --> src/dex/dex_file.rs:289:9 [INFO] [stderr] | [INFO] [stderr] 285 | pub struct ClassDataItem { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 289 | pub direct_methods: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 290 | pub virtual_methods: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ClassDataItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:342:12 [INFO] [stderr] | [INFO] [stderr] 293 | impl ClassDataItem [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 342 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/dex_file.rs:421:12 [INFO] [stderr] | [INFO] [stderr] 391 | impl ClassDefItem [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 421 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `call_site_ids`, `method_handles`, `data`, and `link_data` are never read [INFO] [stderr] --> src/dex/dex_file.rs:450:9 [INFO] [stderr] | [INFO] [stderr] 442 | pub struct DexFile { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 450 | pub call_site_ids: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 451 | pub method_handles: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 452 | pub data: Vec, [INFO] [stderr] | ^^^^ [INFO] [stderr] 453 | pub link_data: Vec, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DexFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `from_string`, `to_string`, `write`, and `is_decoded` are never used [INFO] [stderr] --> src/dex/dex_file.rs:743:12 [INFO] [stderr] | [INFO] [stderr] 741 | impl DexString [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 742 | { [INFO] [stderr] 743 | pub fn from_string(s: &str) -> DexString [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 748 | pub fn to_string(&self) -> Result [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 778 | pub fn write(&self, bytes: &mut Vec) -> usize [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 800 | pub fn is_decoded(&self) -> bool [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `smali` (lib) generated 94 warnings [INFO] [stderr] warning: `smali` (lib test) generated 49 warnings (26 duplicates) (run `cargo fix --lib -p smali --tests` to apply 7 suggestions) [INFO] [stderr] warning: unused import: `p` [INFO] [stderr] --> examples/main.rs:9:53 [INFO] [stderr] | [INFO] [stderr] 9 | use smali::smali_instructions::{ DexInstruction, v, p }; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `smali` (example "main") generated 1 warning (run `cargo fix --example "main"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/smali-035aaefbe0101dbc) [INFO] [stdout] test dex::encoded_values::tests::test_encoded_annotation_read_write ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_boolean_false ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_boolean_true ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_byte ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_char ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_null ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_int ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_short ... ok [INFO] [stdout] test dex::leb::tests::test_decode_sleb128 ... ok [INFO] [stdout] test dex::leb::tests::test_decode_uleb128 ... ok [INFO] [stdout] test dex::leb::tests::test_encode_uleb128 ... ok [INFO] [stdout] test dex::leb::tests::test_encode_sleb128 ... ok [INFO] [stdout] test smali_instructions::tests::test_const_string ... ok [INFO] [stdout] test smali_instructions::tests::test_invoke_direct ... ok [INFO] [stdout] test smali_instructions::tests::test_invoke_static ... ok [INFO] [stdout] test smali_instructions::tests::test_parse_method_ref ... ok [INFO] [stdout] test smali_instructions::tests::test_parse_literal_int ... ok [INFO] [stdout] test smali_parse::tests::test_methodsignature ... ok [INFO] [stdout] test smali_parse::tests::test_array_data ... ok [INFO] [stdout] test smali_parse::tests::test_parse_annotation_element_array ... ok [INFO] [stdout] test smali_parse::tests::test_parse_annotation_element_single ... ok [INFO] [stdout] test smali_parse::tests::test_parse_annotation_build ... ok [INFO] [stdout] test smali_parse::tests::test_parse_class_line ... ok [INFO] [stdout] test smali_parse::tests::test_parse_enum ... ok [INFO] [stdout] test smali_parse::tests::test_parse_field ... ok [INFO] [stdout] test smali_parse::tests::test_parse_implements_line ... ok [INFO] [stdout] test smali_parse::tests::test_parse_super_line ... ok [INFO] [stdout] test smali_parse::tests::test_typesignature ... ok [INFO] [stdout] test tests::object_identifier_to_jni ... ok [INFO] [stdout] test tests::object_identifier_to_java ... ok [INFO] [stdout] test smali_parse::tests::test_quoted ... ok [INFO] [stdout] test smali_parse::tests::test_take_until_eol ... ok [INFO] [stdout] test smali_parse::tests::test_parse_java_array ... ok [INFO] [stdout] test tests::signatures ... ok [INFO] [stdout] test types::tests::test_method_signature3 ... ok [INFO] [stdout] test types::tests::test_signature ... ok [INFO] [stdout] test types::tests::test_method_signature5 ... ok [INFO] [stdout] test types::tests::test_signature3 ... ok [INFO] [stdout] test types::tests::test_method_signature2 ... ok [INFO] [stdout] test types::tests::test_method_signature1 ... ok [INFO] [stdout] test types::tests::test_method_signature4 ... ok [INFO] [stdout] test types::tests::test_signature2 ... ok [INFO] [stdout] test smali_parse::tests::test_parse_class ... ok [INFO] [stdout] test dex::dex_file::tests::test_header_from_bytes ... FAILED [INFO] [stdout] test tests::parse_write ... ok [INFO] [stdout] test dex::dex_file::tests::test_decode_dexfile ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- dex::dex_file::tests::test_header_from_bytes stdout ---- [INFO] [stdout] Header { magic: [64, 65, 78, a, 30, 33, 35, 0], checksum: 52a3b711, signature: [6c, 8f, 85, 62, c0, 58, 37, 1b, c9, 95, 8a, 7f, 9, 4, d8, 44, 7b, 57, 87, 9b], file_size: 6e40a4, header_size: 70, endian_tag: 12345678, link_size: 0, link_off: 0, map_off: 6e3fd4, string_ids_size: bc85, string_ids_off: 70, type_ids_size: 17d8, type_ids_off: 2f284, proto_ids_size: 27bc, proto_ids_off: 351e4, field_ids_size: 81f9, field_ids_off: 52eb4, method_ids_size: bc93, method_ids_off: 93e7c, class_defs_size: 137a, class_defs_off: f2314, data_size: 5cae50, data_off: 119254 } [INFO] [stdout] [INFO] [stdout] thread 'dex::dex_file::tests::test_header_from_bytes' panicked at src/dex/dex_file.rs:826:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 120 [INFO] [stdout] right: 112 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x70861138e702 - std::backtrace_rs::backtrace::libunwind::trace::h559918daaaf51ab7 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x70861138e702 - std::backtrace_rs::backtrace::trace_unsynchronized::hb04fbcf80d07af8b [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x70861138e702 - std::sys::backtrace::_print_fmt::h7c0bbbbfac0065d4 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x70861138e702 - ::fmt::hb62c8ed31943daa5 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x7086113c9823 - core::fmt::rt::Argument::fmt::he5eaa7dd607ed4c9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x7086113c9823 - core::fmt::write::h375399f8cb90b45a [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/mod.rs:1460:25 [INFO] [stdout] 6: 0x70861138ba33 - std::io::default_write_fmt::hdc1b4dd565dd0099 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x70861138ba33 - std::io::Write::write_fmt::h29f6044e9bc43c23 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x70861138e552 - std::sys::backtrace::BacktraceLock::print::ha189c586374f916a [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x70861138fccc - std::panicking::default_hook::{{closure}}::ha3a26c98ff210e12 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x70861138fb22 - std::panicking::default_hook::h8c8a86b4390ab794 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x708611356434 - as core::ops::function::Fn>::call::ha39ae63ed1e9a130 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x708611356434 - test::test_main_with_exit_callback::{{closure}}::h9df7c328ebe18c28 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x708611390653 - as core::ops::function::Fn>::call::h96b7201b552e9069 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x708611390653 - std::panicking::rust_panic_with_hook::hb3b66c2e80efa371 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x70861139041a - std::panicking::begin_panic_handler::{{closure}}::h9c68d0f839e62070 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x70861138ebf9 - std::sys::backtrace::__rust_end_short_backtrace::h68d22ddde4a73ad6 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x7086113900ad - __rustc[f4ffc7196a45a630]::rust_begin_unwind [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x708611223e20 - core::panicking::panic_fmt::h8cdd4c81eb9069aa [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x708611224173 - core::panicking::assert_failed_inner::h483faaa3ae844fd5 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x7086112240c5 - core::panicking::assert_failed::hf8b169ac4b7bfd88 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x7086112cd69e - smali::dex::dex_file::tests::test_header_from_bytes::ha882706e461e9fcf [INFO] [stdout] at /opt/rustwide/workdir/src/dex/dex_file.rs:826:9 [INFO] [stdout] 22: 0x7086112cd2e7 - smali::dex::dex_file::tests::test_header_from_bytes::{{closure}}::h433458599b3e4145 [INFO] [stdout] at /opt/rustwide/workdir/src/dex/dex_file.rs:813:32 [INFO] [stdout] 23: 0x7086112e9566 - core::ops::function::FnOnce::call_once::h60bdf31cd08ecf1d [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x70861135bb2b - core::ops::function::FnOnce::call_once::h9633dcf760ae81b2 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x70861135bb2b - test::__rust_begin_short_backtrace::h12ad5e04c8d7b4a5 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x70861135ad9e - test::run_test_in_process::{{closure}}::he596b4fd3fa4893c [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x70861135ad9e - as core::ops::function::FnOnce<()>>::call_once::hc746bc3fa75190e0 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x70861135ad9e - std::panicking::catch_unwind::do_call::hf4843906108d6299 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x70861135ad9e - std::panicking::catch_unwind::h849d4e8b03577bb9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x70861135ad9e - std::panic::catch_unwind::ha1f814c1dec025d2 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x70861135ad9e - test::run_test_in_process::h542aad3fe61255e7 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x70861135ad9e - test::run_test::{{closure}}::h612788d75908cb63 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x70861131fc24 - test::run_test::{{closure}}::hbfeea3bcb7245123 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x70861131fc24 - std::sys::backtrace::__rust_begin_short_backtrace::h72542b83b4f87d5b [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x70861132341a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hff26a7547ea762c9 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x70861132341a - as core::ops::function::FnOnce<()>>::call_once::hbee49bc759312884 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x70861132341a - std::panicking::catch_unwind::do_call::h61de12ce5e04e28f [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x70861132341a - std::panicking::catch_unwind::h454dd49873d22e18 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x70861132341a - std::panic::catch_unwind::h5c15187324f8cebb [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x70861132341a - std::thread::Builder::spawn_unchecked_::{{closure}}::hbc9d9c7427673d42 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x70861132341a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hefd458a129ddca13 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x7086113930a7 - as core::ops::function::FnOnce>::call_once::h2d6e2e526b02c3da [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x7086113930a7 - as core::ops::function::FnOnce>::call_once::h1aefced482b33c72 [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x7086113930a7 - std::sys::pal::unix::thread::Thread::new::thread_start::h7c9c6951b48f721d [INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] dex::dex_file::tests::test_header_from_bytes [INFO] [stdout] [INFO] [stdout] test result: FAILED. 45 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "e816fb67a41b74dc366deab1bdd09707755c085ec3da6340759bacffad29a970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e816fb67a41b74dc366deab1bdd09707755c085ec3da6340759bacffad29a970", kill_on_drop: false }` [INFO] [stdout] e816fb67a41b74dc366deab1bdd09707755c085ec3da6340759bacffad29a970