diff --git a/src/memory.rs b/src/memory.rs index e9748ba62c7..cde494d7aac 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -418,9 +418,9 @@ pub fn dump_allocs(&self, mut allocs: Vec) { let alloc = match (self.alloc_map.get(&id), self.functions.get(&id)) { (Some(a), None) => a, - (None, Some(_)) => { - // FIXME: print function name - trace!("{} function pointer", msg); + (None, Some(fn_def)) => { + let name = ty::tls::with(|tcx| tcx.item_path_str(fn_def.def_id)); + trace!("{} function pointer: {}: {}", msg, name, fn_def.sig); continue; }, (None, None) => {