You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-addr2line/0001-Update-Object-lifetime...

39 lines
1.4 KiB

From 017a2d92e40dd938a37c6bf08e01f9e98790fdac Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone@redhat.com>
Date: Tue, 27 Nov 2018 12:01:51 -0800
Subject: [PATCH] Update Object lifetimes for 0.11
---
src/lib.rs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index eb9ead251cd3..24e2445f5921 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -121,16 +121,18 @@ impl Context<gimli::EndianRcSlice<gimli::RunTimeEndian>> {
///
/// Performance sensitive applications may want to use `Context::from_sections`
/// with a more specialised `gimli::Reader` implementation.
- pub fn new<'input, 'data, O: object::Object<'input, 'data>>(file: &O) -> Result<Self, Error> {
+ pub fn new<'data, 'file, O: object::Object<'data, 'file>>(
+ file: &'file O,
+ ) -> Result<Self, Error> {
let endian = if file.is_little_endian() {
gimli::RunTimeEndian::Little
} else {
gimli::RunTimeEndian::Big
};
- fn load_section<'input, 'data, O, S, Endian>(file: &O, endian: Endian) -> S
+ fn load_section<'data, 'file, O, S, Endian>(file: &'file O, endian: Endian) -> S
where
- O: object::Object<'input, 'data>,
+ O: object::Object<'data, 'file>,
S: gimli::Section<gimli::EndianRcSlice<Endian>>,
Endian: gimli::Endianity,
{
--
2.19.1