Update Rust crate addr2line to 0.22 (#633)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [addr2line](https://togithub.com/gimli-rs/addr2line) | dependencies |
minor | `0.21` -> `0.22` |

---

### Release Notes

<details>
<summary>gimli-rs/addr2line (addr2line)</summary>

###
[`v0.22.0`](https://togithub.com/gimli-rs/addr2line/blob/HEAD/CHANGELOG.md#0220-20240411)

[Compare
Source](https://togithub.com/gimli-rs/addr2line/compare/0.21.0...0.22.0)

##### Breaking changes

-   Updated `gimli` and `object` dependencies.

***

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log [here](https://developer.mend.io/github/agbrs/agb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
This commit is contained in:
Gwilym Inzani 2024-04-13 16:06:13 +01:00 committed by GitHub
commit e7bf7bba94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,7 @@ repository = "https://github.com/agbrs/agb"
[dependencies]
anyhow = "1"
clap = { version = "4", features = ["derive"] }
addr2line = { version = "0.21", default-features = false, features = [
addr2line = { version = "0.22", default-features = false, features = [
"rustc-demangle",
"std-object",
] }

View file

@ -61,13 +61,12 @@ fn load_from_object<'file>(
gimli::RunTimeEndian::Big
};
fn load_section<'data: 'file, 'file, O, Endian>(
fn load_section<'data, Endian>(
id: gimli::SectionId,
file: &'file O,
file: &impl object::Object<'data>,
endian: Endian,
) -> Result<gimli::EndianRcSlice<Endian>, gimli::Error>
where
O: object::Object<'data, 'file>,
Endian: gimli::Endianity,
{
use object::ObjectSection;