Skip to content

Commit

Permalink
fix for tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 4, 2019
1 parent 486720f commit b4be08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/memory.rs
Expand Up @@ -154,7 +154,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
let id = match fn_val { let id = match fn_val {
FnVal::Instance(instance) => self.tcx.alloc_map.lock().create_fn_alloc(instance), FnVal::Instance(instance) => self.tcx.alloc_map.lock().create_fn_alloc(instance),
FnVal::Other(extra) => { 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 id = self.tcx.alloc_map.lock().reserve();
let old = self.extra_fn_ptr_map.insert(id, extra); let old = self.extra_fn_ptr_map.insert(id, extra);
assert!(old.is_none()); assert!(old.is_none());
Expand Down

0 comments on commit b4be08a

Please sign in to comment.