[INFO] fetching crate smali 0.3.2... [INFO] testing smali-0.3.2 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate smali 0.3.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate smali 0.3.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate smali 0.3.2 [INFO] tweaked toml for crates.io crate smali 0.3.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate smali 0.3.2 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate smali 0.3.2 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67b8ab9f6ede8358ca8556d434a3087f2e59ff1b8b40e175f1fda0c8f63d4886 [INFO] running `Command { std: "docker" "start" "-a" "67b8ab9f6ede8358ca8556d434a3087f2e59ff1b8b40e175f1fda0c8f63d4886", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67b8ab9f6ede8358ca8556d434a3087f2e59ff1b8b40e175f1fda0c8f63d4886", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67b8ab9f6ede8358ca8556d434a3087f2e59ff1b8b40e175f1fda0c8f63d4886", kill_on_drop: false }` [INFO] [stdout] 67b8ab9f6ede8358ca8556d434a3087f2e59ff1b8b40e175f1fda0c8f63d4886 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d0ac30d0e529e88d32b492dd336d0122d0682033613433c4b0612aeeaf9dccb [INFO] running `Command { std: "docker" "start" "-a" "0d0ac30d0e529e88d32b492dd336d0122d0682033613433c4b0612aeeaf9dccb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling rangemap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nom v8.0.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling smali v0.3.2 (/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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/dex/dex_file.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/dex/opcode_format.rs:694:29 [INFO] [stdout] | [INFO] [stdout] 694 | if let Some(id) = code.get(tgt) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/dex/opcode_format.rs:709:21 [INFO] [stdout] | [INFO] [stdout] 709 | let label = labels.entry(tgt).or_insert_with(|| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | 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:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tries_size` and `padding` are never read [INFO] [stdout] --> src/dex/dex_file.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct CodeItem [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 296 | tries_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | 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: function `encode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | 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:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/annotations.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl AnnotationItem { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | 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/annotations.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl AnnotationSetItem { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | 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/annotations.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl AnnotationSetRefList { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceholderResolver` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct PlaceholderResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reference_type2` and `flags` are never read [INFO] [stdout] --> src/dex/opcode_format.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct Opcode { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | pub reference_type2: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub format: Format, [INFO] [stdout] 121 | pub flags: OpcodeFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/dex/opcode_format.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl Opcode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnresolvedOdexInstruction` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum Format { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 373 | UnresolvedOdexInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_payload_format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:431:18 [INFO] [stdout] | [INFO] [stdout] 376 | impl Format { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 431 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16_at_opt` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:442:4 [INFO] [stdout] | [INFO] [stdout] 442 | fn u16_at_opt(code: &[u16], pc: usize) -> Option { code.get(pc).copied() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_with_resolver` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:1676:8 [INFO] [stdout] | [INFO] [stdout] 1676 | pub fn decode_with_resolver( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:1685:8 [INFO] [stdout] | [INFO] [stdout] 1685 | pub fn decode(bytecode: &[u8], api:i32, art_version: i32) -> Result, DexError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.43s [INFO] running `Command { std: "docker" "inspect" "0d0ac30d0e529e88d32b492dd336d0122d0682033613433c4b0612aeeaf9dccb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d0ac30d0e529e88d32b492dd336d0122d0682033613433c4b0612aeeaf9dccb", kill_on_drop: false }` [INFO] [stdout] 0d0ac30d0e529e88d32b492dd336d0122d0682033613433c4b0612aeeaf9dccb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 030e6e67c3f0a49e12c57538f8b4138d4035369f3bcbc83660ff9d9588a5a2a8 [INFO] running `Command { std: "docker" "start" "-a" "030e6e67c3f0a49e12c57538f8b4138d4035369f3bcbc83660ff9d9588a5a2a8", 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/dex/dex_file.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/dex/opcode_format.rs:694:29 [INFO] [stdout] | [INFO] [stdout] 694 | if let Some(id) = code.get(tgt) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/dex/opcode_format.rs:709:21 [INFO] [stdout] | [INFO] [stdout] 709 | let label = labels.entry(tgt).or_insert_with(|| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | 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:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tries_size` and `padding` are never read [INFO] [stdout] --> src/dex/dex_file.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct CodeItem [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 296 | tries_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | 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: function `encode_sleb128` is never used [INFO] [stdout] --> src/dex/leb.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | 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:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/dex/annotations.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl AnnotationItem { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | 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/annotations.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl AnnotationSetItem { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | 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/annotations.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl AnnotationSetRefList { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceholderResolver` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct PlaceholderResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reference_type2` and `flags` are never read [INFO] [stdout] --> src/dex/opcode_format.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct Opcode { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | pub reference_type2: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub format: Format, [INFO] [stdout] 121 | pub flags: OpcodeFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/dex/opcode_format.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl Opcode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnresolvedOdexInstruction` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum Format { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 373 | UnresolvedOdexInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_payload_format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:431:18 [INFO] [stdout] | [INFO] [stdout] 376 | impl Format { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 431 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling smali v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `u16_at_opt` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:442:4 [INFO] [stdout] | [INFO] [stdout] 442 | fn u16_at_opt(code: &[u16], pc: usize) -> Option { code.get(pc).copied() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_with_resolver` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:1676:8 [INFO] [stdout] | [INFO] [stdout] 1676 | pub fn decode_with_resolver( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:1685:8 [INFO] [stdout] | [INFO] [stdout] 1685 | pub fn decode(bytecode: &[u8], api:i32, art_version: i32) -> Result, DexError> { [INFO] [stdout] | ^^^^^^ [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/dex/dex_file.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `smali` [INFO] [stdout] --> src/dex/dex_file.rs:1492:13 [INFO] [stdout] | [INFO] [stdout] 1492 | let smali = dex.to_smali().expect("Failed to generate smali"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_smali` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/dex/opcode_format.rs:694:29 [INFO] [stdout] | [INFO] [stdout] 694 | if let Some(id) = code.get(tgt) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/dex/opcode_format.rs:709:21 [INFO] [stdout] | [INFO] [stdout] 709 | let label = labels.entry(tgt).or_insert_with(|| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stdout] --> src/dex/dex_file.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stdout] --> src/dex/dex_file.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | 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:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tries_size` and `padding` are never read [INFO] [stdout] --> src/dex/dex_file.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 291 | pub struct CodeItem [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 296 | tries_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | 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/annotations.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl AnnotationSetRefList { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reference_type2` and `flags` are never read [INFO] [stdout] --> src/dex/opcode_format.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct Opcode { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | pub reference_type2: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub format: Format, [INFO] [stdout] 121 | pub flags: OpcodeFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/dex/opcode_format.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl Opcode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn can_throw(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn odex_only(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn can_continue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn sets_result(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn sets_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn sets_wide_register(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnresolvedOdexInstruction` is never constructed [INFO] [stdout] --> src/dex/opcode_format.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum Format { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 373 | UnresolvedOdexInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Format` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_payload_format` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:431:18 [INFO] [stdout] | [INFO] [stdout] 376 | impl Format { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 431 | pub const fn is_payload_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16_at_opt` is never used [INFO] [stdout] --> src/dex/opcode_format.rs:442:4 [INFO] [stdout] | [INFO] [stdout] 442 | fn u16_at_opt(code: &[u16], pc: usize) -> Option { code.get(pc).copied() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.80s [INFO] running `Command { std: "docker" "inspect" "030e6e67c3f0a49e12c57538f8b4138d4035369f3bcbc83660ff9d9588a5a2a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "030e6e67c3f0a49e12c57538f8b4138d4035369f3bcbc83660ff9d9588a5a2a8", kill_on_drop: false }` [INFO] [stdout] 030e6e67c3f0a49e12c57538f8b4138d4035369f3bcbc83660ff9d9588a5a2a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c7bd4656e0a637323de512b0efc10602ac01ddf00fe9905debb963656243969c [INFO] running `Command { std: "docker" "start" "-a" "c7bd4656e0a637323de512b0efc10602ac01ddf00fe9905debb963656243969c", 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `info` [INFO] [stderr] --> src/dex/dex_file.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | use log::{error, info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/dex/opcode_format.rs:694:29 [INFO] [stderr] | [INFO] [stderr] 694 | if let Some(id) = code.get(tgt) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/dex/opcode_format.rs:709:21 [INFO] [stderr] | [INFO] [stderr] 709 | let label = labels.entry(tgt).or_insert_with(|| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stderr] [INFO] [stderr] warning: constant `DEX_FILE_MAGIC` is never used [INFO] [stderr] --> src/dex/dex_file.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | pub const DEX_FILE_MAGIC: [u8; 8] = [ 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x39, 0x00 ]; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `ENDIAN_CONSTANT` is never used [INFO] [stderr] --> src/dex/dex_file.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | 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:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | pub const REVERSE_ENDIAN_CONSTANT: u32 = 0x78563412; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `tries_size` and `padding` are never read [INFO] [stderr] --> src/dex/dex_file.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 291 | pub struct CodeItem [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 296 | tries_size: u16, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 299 | 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: function `encode_sleb128` is never used [INFO] [stderr] --> src/dex/leb.rs:52:15 [INFO] [stderr] | [INFO] [stderr] 52 | 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:76:15 [INFO] [stderr] | [INFO] [stderr] 76 | pub(crate) fn decode_sleb128(encoded: &[u8]) -> (i32, usize) [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/annotations.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 27 | impl AnnotationItem { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/annotations.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 51 | impl AnnotationSetItem { [INFO] [stderr] | ---------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 61 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write` is never used [INFO] [stderr] --> src/dex/annotations.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 77 | impl AnnotationSetRefList { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn write(&self, bytes: &mut Vec) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PlaceholderResolver` is never constructed [INFO] [stderr] --> src/dex/opcode_format.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub struct PlaceholderResolver; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `reference_type2` and `flags` are never read [INFO] [stderr] --> src/dex/opcode_format.rs:119:9 [INFO] [stderr] | [INFO] [stderr] 116 | pub struct Opcode { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 119 | pub reference_type2: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 120 | pub format: Format, [INFO] [stderr] 121 | pub flags: OpcodeFlags, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/dex/opcode_format.rs:268:12 [INFO] [stderr] | [INFO] [stderr] 133 | impl Opcode { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 268 | pub fn can_throw(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 273 | pub fn odex_only(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 278 | pub fn can_continue(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 283 | pub fn sets_result(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 288 | pub fn sets_register(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 293 | pub fn sets_wide_register(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 298 | pub fn is_quick_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 303 | pub fn is_volatile_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 308 | pub fn is_static_field_accessor(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 313 | pub fn is_jumbo_opcode(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 318 | pub fn can_initialize_reference(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `UnresolvedOdexInstruction` is never constructed [INFO] [stderr] --> src/dex/opcode_format.rs:373:5 [INFO] [stderr] | [INFO] [stderr] 336 | pub enum Format { [INFO] [stderr] | ------ variant in this enum [INFO] [stderr] ... [INFO] [stderr] 373 | UnresolvedOdexInstruction, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Format` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `is_payload_format` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:431:18 [INFO] [stderr] | [INFO] [stderr] 376 | impl Format { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 431 | pub const fn is_payload_format(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `u16_at_opt` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:442:4 [INFO] [stderr] | [INFO] [stderr] 442 | fn u16_at_opt(code: &[u16], pc: usize) -> Option { code.get(pc).copied() } [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_with_resolver` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:1676:8 [INFO] [stderr] | [INFO] [stderr] 1676 | pub fn decode_with_resolver( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode` is never used [INFO] [stderr] --> src/dex/opcode_format.rs:1685:8 [INFO] [stderr] | [INFO] [stderr] 1685 | pub fn decode(bytecode: &[u8], api:i32, art_version: i32) -> Result, DexError> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `smali` (lib) generated 21 warnings (run `cargo fix --lib -p smali` to apply 1 suggestion) [INFO] [stderr] warning: unused variable: `smali` [INFO] [stderr] --> src/dex/dex_file.rs:1492:13 [INFO] [stderr] | [INFO] [stderr] 1492 | let smali = dex.to_smali().expect("Failed to generate smali"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_smali` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/dex/opcode_format.rs:694:29 [INFO] [stderr] | [INFO] [stderr] 694 | if let Some(id) = code.get(tgt) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: `smali` (lib test) generated 15 warnings (13 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/smali-11678e250a54bd0f) [INFO] [stdout] [INFO] [stdout] running 60 tests [INFO] [stdout] test dex::annotations::tests::test_annotation_item_roundtrip ... ok [INFO] [stdout] test dex::annotations::tests::test_annotation_set_item_roundtrip ... ok [INFO] [stdout] test dex::annotations::tests::test_annotations_directory_roundtrip ... ok [INFO] [stdout] test dex::dex_file::tests::test_encoded_catch_handler_roundtrip_no_catch_all ... ok [INFO] [stdout] test dex::dex_file::tests::test_encoded_catch_handler_roundtrip_with_catch_all ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_annotation_read_write ... ok [INFO] [stdout] test dex::dex_file::tests::test_try_item_roundtrip ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_boolean_true ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_char ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_int ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_byte ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_short ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_boolean_false ... 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_sleb128 ... ok [INFO] [stdout] test dex::encoded_values::tests::test_encoded_value_null ... ok [INFO] [stdout] test smali_ops::tests::test_const_string ... ok [INFO] [stdout] test dex::leb::tests::test_encode_uleb128 ... ok [INFO] [stdout] test dex::opcode_format::tests::test_decode_bytecode_2 ... ok [INFO] [stdout] test smali_ops::tests::test_filled_new_array ... ok [INFO] [stdout] test smali_ops::tests::test_parse_literal_int ... ok [INFO] [stdout] test smali_ops::tests::test_invoke_static ... ok [INFO] [stdout] test smali_ops::tests::test_filled_new_array_range ... ok [INFO] [stdout] test smali_ops::tests::test_parse_method_ref ... ok [INFO] [stdout] test smali_ops::tests::test_invoke_direct_2 ... ok [INFO] [stdout] test smali_parse::tests::test_array_data ... ok [INFO] [stdout] test smali_parse::tests::test_method_with_param_annotation ... ok [INFO] [stdout] test smali_ops::tests::test_invoke_direct ... ok [INFO] [stdout] test dex::opcode_format::tests::test_decode_bytecode_1 ... ok [INFO] [stdout] test smali_parse::tests::test_parse_annotation_element_array ... ok [INFO] [stdout] test smali_parse::tests::test_methodsignature ... 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_annotation_element_single ... 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_param_block_with_annotation ... ok [INFO] [stdout] test smali_parse::tests::test_parse_param_with_string ... ok [INFO] [stdout] test smali_parse::tests::test_take_until_eol ... ok [INFO] [stdout] test smali_parse::tests::test_quoted ... ok [INFO] [stdout] test smali_parse::tests::test_typesignature ... ok [INFO] [stdout] test smali_parse::tests::test_parse_super_line ... ok [INFO] [stdout] test tests::object_identifier_to_jni ... ok [INFO] [stdout] test tests::signatures ... ok [INFO] [stdout] test types::tests::test_method_signature1 ... ok [INFO] [stdout] test types::tests::test_method_signature3 ... ok [INFO] [stdout] test types::tests::test_method_signature2 ... ok [INFO] [stdout] test types::tests::test_method_signature4 ... ok [INFO] [stdout] test types::tests::test_method_signature5 ... ok [INFO] [stdout] test tests::object_identifier_to_java ... ok [INFO] [stdout] test smali_parse::tests::test_parse_java_array ... ok [INFO] [stdout] test types::tests::test_signature ... ok [INFO] [stdout] test types::tests::test_signature3 ... ok [INFO] [stdout] test dex::dex_file::tests::test_header_from_bytes ... ok [INFO] [stdout] test types::tests::test_signature2 ... ok [INFO] [stdout] test tests::parse_write ... ok [INFO] [stdout] test smali_parse::tests::test_parse_class ... ok [INFO] [stdout] test dex::dex_file::tests::test_decode_dexfile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 60 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.78s [INFO] [stdout] [INFO] [stderr] Doc-tests smali [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/lib.rs - find_smali_files (line 18) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass (line 847) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::read_from_file (line 927) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::from_smali (line 903) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::write_to_file (line 967) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::save (line 1024) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::to_smali (line 951) - compile ... ok [INFO] [stdout] test src/types.rs - types::SmaliClass::write_to_directory (line 990) - compile ... ok [INFO] [stdout] test src/types.rs - types::MethodSignature (line 255) ... ok [INFO] [stdout] test src/types.rs - types::TypeSignature (line 150) ... ok [INFO] [stdout] test src/types.rs - types::ObjectIdentifier (line 54) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c7bd4656e0a637323de512b0efc10602ac01ddf00fe9905debb963656243969c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7bd4656e0a637323de512b0efc10602ac01ddf00fe9905debb963656243969c", kill_on_drop: false }` [INFO] [stdout] c7bd4656e0a637323de512b0efc10602ac01ddf00fe9905debb963656243969c