Package: dwarf2sources Version: 0.2.0 Severity: important
I have prepared updates of rust-backtrace and friends, specifically. rust-backtrace -> 0.3.51 rust-addr2line -> 0.13.0 rust-gimli -> 0.22.0 rust-cpp-demangle -> 0.3.3 rust-object -> 0.20.0 I did not update to the latest versions because debcaro refused to package the latest version of gimli, complaining about a lack of authors metadata. So I decided to instead update to the minimum version that would satisfy the dependencies of librust-anyhow+backtrace-dev Unfortunately I found that when I tried to build dwarf2sources with the new packages I got the following error.
error[E0599]: no method named `section_data_by_name` found for reference `&'file object::File<'input>` in the current scope --> src/main.rs:29:14 | 29 | .section_data_by_name(S::section_name()) | ^^^^^^^^^^^^^^^^^^^^ method not found in `&'file object::File<'input>` For more information about this error, try `rustc --explain E0599`. error: could not compile `dwarf2sources` due to previous error
Digging in the upstream commit log lead me to https://github.com/gimli-rs/object/commit/85abdca55d62c3fa77bfb85a6d4089d57b139759 reading though that commit suggested that I would replace section_data_by_name with section_by_name, however when I tried that I got the following error.
error[E0308]: mismatched types --> src/main.rs:30:24 | 30 | .unwrap_or(Cow::Borrowed(&[])); | ^^^^^^^^^^^^^^^^^^ expected struct `object::Section`, found enum `Cow` | = note: expected struct `object::Section<'_, '_>` found enum `Cow<'_, [_; 0]>` error[E0308]: mismatched types --> src/main.rs:31:38 | 31 | let data_ref = (*arena.alloc(data)).borrow(); | ^^^^ expected enum `Cow`, found struct `object::Section` | = note: expected enum `Cow<'file, [u8]>` found struct `object::Section<'_, '_>` For more information about this error, try `rustc --explain E0308`. error: could not compile `dwarf2sources` due to 2 previous errors
Which I have no clue how to fix. I have uploaded rust-backtrace and related packages to experimental for now.