Codebase list rust-regex / 21703ff
Update addr2line to object 0.11 Ximin Luo 5 years ago
2 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 update-dep-object.patch
0 --- a/Cargo.toml
1 +++ b/Cargo.toml
2 @@ -51,7 +51,7 @@
3 version = "1.0"
4
5 [dependencies.object]
6 -version = "0.9"
7 +version = "0.11"
8
9 [dependencies.rustc-demangle]
10 version = "0.1"
11 --- a/src/lib.rs
12 +++ b/src/lib.rs
13 @@ -121,16 +121,16 @@
14 ///
15 /// Performance sensitive applications may want to use `Context::from_sections`
16 /// with a more specialised `gimli::Reader` implementation.
17 - pub fn new<'input, 'data, O: object::Object<'input, 'data>>(file: &O) -> Result<Self, Error> {
18 + pub fn new<'data, 'file, O: object::Object<'data, 'file>>(file: &'file O) -> Result<Self, Error> {
19 let endian = if file.is_little_endian() {
20 gimli::RunTimeEndian::Little
21 } else {
22 gimli::RunTimeEndian::Big
23 };
24
25 - fn load_section<'input, 'data, O, S, Endian>(file: &O, endian: Endian) -> S
26 + fn load_section<'data, 'file, O, S, Endian>(file: &'file O, endian: Endian) -> S
27 where
28 - O: object::Object<'input, 'data>,
29 + O: object::Object<'data, 'file>,
30 S: gimli::Section<gimli::EndianRcSlice<Endian>>,
31 Endian: gimli::Endianity,
32 {