[INFO] cloning repository https://github.com/lkitching/rsdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lkitching/rsdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkitching%2Frsdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkitching%2Frsdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ed4fdc5ab6e5f641e4b51b26a011cffec80a47a [INFO] checking lkitching/rsdb against 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flkitching%2Frsdb" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/lkitching/rsdb [INFO] finished tweaking git repo https://github.com/lkitching/rsdb [INFO] tweaked toml for git repo https://github.com/lkitching/rsdb written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lkitching/rsdb on toolchain 8006091eb71ae7d9e9bccb66c6122c9d68af4466 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lkitching/rsdb 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" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zydis-sys v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3 [INFO] running `Command { std: "docker" "start" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking strum v0.27.1 [INFO] [stderr] Compiling registers-macro v0.1.0 (/opt/rustwide/workdir/registers-macro) [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking fd-lock v4.0.2 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking rustyline v15.0.0 [INFO] [stderr] Compiling strum_macros v0.27.1 [INFO] [stderr] Compiling zydis-sys v0.1.2 [INFO] [stderr] Checking rsdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `write_gprs` is never used [INFO] [stdout] --> src/register.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl Registers { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | fn write_gprs(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file` and `path` are never read [INFO] [stdout] --> src/elf.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Elf { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 26 | file: File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | file_len: u64, [INFO] [stdout] 28 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/dwarf/mod.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Abbrev { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 257 | code: NonZeroU64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Abbrev` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `i16`, `i32`, and `i64` are never used [INFO] [stdout] --> src/dwarf/mod.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 280 | impl<'a> Cursor<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 310 | fn i16(&mut self) -> i16 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] 311 | fn i32(&mut self) -> i32 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] 312 | fn i64(&mut self) -> i64 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attr_type` is never read [INFO] [stdout] --> src/dwarf/mod.rs:540:5 [INFO] [stdout] | [INFO] [stdout] 539 | pub struct Attribute { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 540 | attr_type: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Attribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_entry_position` is never used [INFO] [stdout] --> src/dwarf/mod.rs:885:8 [INFO] [stdout] | [INFO] [stdout] 883 | impl DIEEntry { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 884 | // returns the position of the next DIE entry [INFO] [stdout] 885 | fn next_entry_position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `version` and `address_size` are never read [INFO] [stdout] --> src/dwarf/mod.rs:898:5 [INFO] [stdout] | [INFO] [stdout] 894 | pub struct CompileUnitHeader { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 898 | version: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 899 | abbrev_offset: usize, [INFO] [stdout] 900 | address_size: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompileUnitHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `data_len` and `data_offset` are never used [INFO] [stdout] --> src/dwarf/mod.rs:942:8 [INFO] [stdout] | [INFO] [stdout] 903 | impl CompileUnitHeader { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 942 | fn data_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | fn data_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dwarf/mod.rs:967:8 [INFO] [stdout] | [INFO] [stdout] 966 | impl CompileUnit { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 967 | fn new(header: CompileUnitHeader) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `line_entry_at_address` is never used [INFO] [stdout] --> src/dwarf/mod.rs:1451:8 [INFO] [stdout] | [INFO] [stdout] 1158 | impl Dwarf { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1451 | fn line_entry_at_address(&self, address: &FileAddress) -> Option src/dwarf/line_table.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct SourceFile { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 50 | path: PathBuf, [INFO] [stdout] 51 | modification_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | file_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceFile` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source_file` and `line` are never read [INFO] [stdout] --> src/dwarf/line_table.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct SourceLocation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 69 | source_file: SourceFile, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 70 | line: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dwarf/line_table.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct LineTable { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 81 | compile_unit_id: CompileUnitId, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | program_span: Range, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 86 | [INFO] [stdout] 87 | default_is_statement: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | line_base: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 89 | line_range: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 90 | opcode_base: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 91 | include_directories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `entries`, `get_entry_by_address`, `get_entries_by_line`, and `get_file` are never used [INFO] [stdout] --> src/dwarf/line_table.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl LineTable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn entries<'a, 'b>(&'a self, debug_line_data: &'b [u8]) -> LineTableIterator> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_entry_by_address<'a, 'b>(&'a self, debug_line_data: &'b [u8], address: &FileAddress) -> LineTableIterator(&'a self, debug_line_data: &'b [u8], path: &Path, line: u64) -> Vec &SourceFile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineTableEntry` is never constructed [INFO] [stdout] --> src/dwarf/line_table.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct LineTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_line` and `get_file_entry` are never used [INFO] [stdout] --> src/dwarf/line_table.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl LineTableEntry { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 200 | fn update_line(&mut self, offset: i64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn get_file_entry<'a, 'b>(&'a self, table: &'b LineTable) -> &'b SourceFile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DwarfStandardOpcode` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:246:6 [INFO] [stdout] | [INFO] [stdout] 246 | enum DwarfStandardOpcode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DwarfExtendedOpcode` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:264:10 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum DwarfExtendedOpcode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StandardInstruction` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:272:10 [INFO] [stdout] | [INFO] [stdout] 272 | pub enum StandardInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExtendedInstruction` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:289:10 [INFO] [stdout] | [INFO] [stdout] 289 | pub enum ExtendedInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpecialInstruction` is never constructed [INFO] [stdout] --> src/dwarf/line_table.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct SpecialInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Instruction` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 303 | pub enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InstructionParser` is never constructed [INFO] [stdout] --> src/dwarf/line_table.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 310 | struct InstructionParser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LineTableExecutionError` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:318:10 [INFO] [stdout] | [INFO] [stdout] 318 | pub enum LineTableExecutionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `special` and `parse` are never used [INFO] [stdout] --> src/dwarf/line_table.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 337 | impl InstructionParser { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 338 | fn special(&self, entry: u8) -> SpecialInstruction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | fn parse(&self, cursor: &mut Cursor) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineTableInstructionIterator` is never constructed [INFO] [stdout] --> src/dwarf/line_table.rs:429:12 [INFO] [stdout] | [INFO] [stdout] 429 | pub struct LineTableInstructionIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `for_table` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 447 | impl <'a> LineTableInstructionIterator<'a> { [INFO] [stdout] | ------------------------------------------ associated function in this implementation [INFO] [stdout] 448 | pub fn for_table(table: &LineTable, debug_line_data: &'a [u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineTableIterator` is never constructed [INFO] [stdout] --> src/dwarf/line_table.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | pub struct LineTableIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EvaluationAction` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:470:6 [INFO] [stdout] | [INFO] [stdout] 470 | enum EvaluationAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/dwarf/line_table.rs:476:8 [INFO] [stdout] | [INFO] [stdout] 475 | impl LineTableIterator { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 476 | fn execute(&mut self, instruction: &Instruction) -> EvaluationAction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/interop/ptrace.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 85 - let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] 85 + let word: usize = unsafe { i64::cast_unsigned(data) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/interop/ptrace.rs:105:36 [INFO] [stdout] | [INFO] [stdout] 105 | let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 105 - let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] 105 + let word: usize = unsafe { i64::cast_unsigned(data) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/dwarf/mod.rs:393:18 [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { mem::transmute(res) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 393 - unsafe { mem::transmute(res) } [INFO] [stdout] 393 + unsafe { u64::cast_signed(res) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_gprs` is never used [INFO] [stdout] --> src/register.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl Registers { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | fn write_gprs(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file` and `path` are never read [INFO] [stdout] --> src/elf.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Elf { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 26 | file: File, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | file_len: u64, [INFO] [stdout] 28 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/dwarf/mod.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Abbrev { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 257 | code: NonZeroU64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Abbrev` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `i16`, `i32`, and `i64` are never used [INFO] [stdout] --> src/dwarf/mod.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 280 | impl<'a> Cursor<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 310 | fn i16(&mut self) -> i16 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] 311 | fn i32(&mut self) -> i32 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] 312 | fn i64(&mut self) -> i64 { self.fixed_int::() } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attr_type` is never read [INFO] [stdout] --> src/dwarf/mod.rs:540:5 [INFO] [stdout] | [INFO] [stdout] 539 | pub struct Attribute { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 540 | attr_type: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Attribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_entry_position` is never used [INFO] [stdout] --> src/dwarf/mod.rs:885:8 [INFO] [stdout] | [INFO] [stdout] 883 | impl DIEEntry { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 884 | // returns the position of the next DIE entry [INFO] [stdout] 885 | fn next_entry_position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `version` and `address_size` are never read [INFO] [stdout] --> src/dwarf/mod.rs:898:5 [INFO] [stdout] | [INFO] [stdout] 894 | pub struct CompileUnitHeader { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 898 | version: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 899 | abbrev_offset: usize, [INFO] [stdout] 900 | address_size: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompileUnitHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `data_len` and `data_offset` are never used [INFO] [stdout] --> src/dwarf/mod.rs:942:8 [INFO] [stdout] | [INFO] [stdout] 903 | impl CompileUnitHeader { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 942 | fn data_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | fn data_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dwarf/mod.rs:967:8 [INFO] [stdout] | [INFO] [stdout] 966 | impl CompileUnit { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 967 | fn new(header: CompileUnitHeader) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `line_entry_at_address` is never used [INFO] [stdout] --> src/dwarf/mod.rs:1451:8 [INFO] [stdout] | [INFO] [stdout] 1158 | impl Dwarf { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1451 | fn line_entry_at_address(&self, address: &FileAddress) -> Option src/dwarf/line_table.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct SourceFile { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 50 | path: PathBuf, [INFO] [stdout] 51 | modification_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | file_length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceFile` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source_file` and `line` are never read [INFO] [stdout] --> src/dwarf/line_table.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct SourceLocation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 69 | source_file: SourceFile, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 70 | line: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `compile_unit_id` and `include_directories` are never read [INFO] [stdout] --> src/dwarf/line_table.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct LineTable { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 81 | compile_unit_id: CompileUnitId, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | include_directories: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_entry_by_address` and `get_entries_by_line` are never used [INFO] [stdout] --> src/dwarf/line_table.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl LineTable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_entry_by_address<'a, 'b>(&'a self, debug_line_data: &'b [u8], address: &FileAddress) -> LineTableIterator(&'a self, debug_line_data: &'b [u8], path: &Path, line: u64) -> Vec src/dwarf/line_table.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl LineTableEntry { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 208 | fn get_file_entry<'a, 'b>(&'a self, table: &'b LineTable) -> &'b SourceFile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/interop/ptrace.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 85 - let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] 85 + let word: usize = unsafe { i64::cast_unsigned(data) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/interop/ptrace.rs:105:36 [INFO] [stdout] | [INFO] [stdout] 105 | let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 105 - let word: usize = unsafe { mem::transmute(data) }; [INFO] [stdout] 105 + let word: usize = unsafe { i64::cast_unsigned(data) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/dwarf/mod.rs:393:18 [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { mem::transmute(res) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 393 - unsafe { mem::transmute(res) } [INFO] [stdout] 393 + unsafe { u64::cast_signed(res) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `strum` [INFO] [stderr] --> Cargo.toml:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | strum = "0.27" [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `strum` [INFO] [stderr] warning: `rsdb` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.14s [INFO] running `Command { std: "docker" "inspect" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3", kill_on_drop: false }` [INFO] [stdout] ff24640bb93209bccad0010c09665ff301a81590f410df7bd2059634336f81d3