[INFO] fetching crate smali 0.2.0... [INFO] checking smali-0.2.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate smali 0.2.0 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate smali 0.2.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ba20bd3bcfd8cbc196396b481ae2e36a6b91555a7f338db3c28b6f089993a5b [INFO] running `Command { std: "docker" "start" "-a" "5ba20bd3bcfd8cbc196396b481ae2e36a6b91555a7f338db3c28b6f089993a5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ba20bd3bcfd8cbc196396b481ae2e36a6b91555a7f338db3c28b6f089993a5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ba20bd3bcfd8cbc196396b481ae2e36a6b91555a7f338db3c28b6f089993a5b", kill_on_drop: false }` [INFO] [stdout] 5ba20bd3bcfd8cbc196396b481ae2e36a6b91555a7f338db3c28b6f089993a5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf41d8c01648f3539bce3adca8b50aee0900c181f4ce0b02bb250172b7f463ca [INFO] running `Command { std: "docker" "start" "-a" "bf41d8c01648f3539bce3adca8b50aee0900c181f4ce0b02bb250172b7f463ca", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking cesu8 v1.1.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking rangemap v1.5.1 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking rand_core v0.9.0-alpha.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.2 [INFO] [stderr] Checking rand v0.9.0-alpha.2 [INFO] [stderr] Checking 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 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 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: `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: `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: `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 `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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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: 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] [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] [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 17.99s [INFO] running `Command { std: "docker" "inspect" "bf41d8c01648f3539bce3adca8b50aee0900c181f4ce0b02bb250172b7f463ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf41d8c01648f3539bce3adca8b50aee0900c181f4ce0b02bb250172b7f463ca", kill_on_drop: false }` [INFO] [stdout] bf41d8c01648f3539bce3adca8b50aee0900c181f4ce0b02bb250172b7f463ca