Skip to content
Permalink
Browse files

fix for tidy

  • Loading branch information...
RalfJung committed Jun 30, 2019
1 parent 486720f commit b4be08a66692e5f9aa15b14b233d88e626f5c605
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc_mir/interpret/memory.rs
@@ -154,7 +154,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
let id = match fn_val {
FnVal::Instance(instance) => self.tcx.alloc_map.lock().create_fn_alloc(instance),
FnVal::Other(extra) => {
// TODO: Should we have a cache here?
// FIXME(RalfJung): Should we have a cache here?
let id = self.tcx.alloc_map.lock().reserve();
let old = self.extra_fn_ptr_map.insert(id, extra);
assert!(old.is_none());

0 comments on commit b4be08a

Please sign in to comment.
You can’t perform that action at this time.