Skip to content

Commit 16682c7

Browse files
committed
dyn Trait fixes in libbacktrace
1 parent 6ff7f7c commit 16682c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/symbolize/libbacktrace.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ extern "C" fn error_cb(_data: *mut c_void, _msg: *const c_char, _errnum: c_int)
157157

158158
/// Type of the `data` pointer passed into `syminfo_cb`
159159
struct SyminfoState<'a> {
160-
cb: &'a mut (FnMut(&super::Symbol) + 'a),
160+
cb: &'a mut (dyn FnMut(&super::Symbol) + 'a),
161161
pc: usize,
162162
}
163163

@@ -207,7 +207,7 @@ extern "C" fn syminfo_cb(
207207

208208
/// Type of the `data` pointer passed into `pcinfo_cb`
209209
struct PcinfoState<'a> {
210-
cb: &'a mut (FnMut(&super::Symbol) + 'a),
210+
cb: &'a mut (dyn FnMut(&super::Symbol) + 'a),
211211
symname: *const c_char,
212212
called: bool,
213213
}
@@ -438,7 +438,7 @@ unsafe fn init_state() -> *mut bt::backtrace_state {
438438
}
439439
}
440440

441-
pub unsafe fn resolve(what: ResolveWhat, cb: &mut FnMut(&super::Symbol)) {
441+
pub unsafe fn resolve(what: ResolveWhat, cb: &mut dyn FnMut(&super::Symbol)) {
442442
let symaddr = what.address_or_ip() as usize;
443443

444444
// backtrace errors are currently swept under the rug

0 commit comments

Comments
 (0)