Fix tidy
This commit is contained in:
parent
d9ac0c67ed
commit
34e7a3cc4d
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
|
|||
id: AllocId,
|
||||
liveness: AllocCheck,
|
||||
) -> InterpResult<'static, (Size, Align)> {
|
||||
let alloc_or_size_align = self.alloc_map.get_or(id, || -> Result<_, InterpResult<'static, (Size, Align)>> {
|
||||
let alloc_or_size_align = self.alloc_map.get_or(id, || {
|
||||
// Can't do this in the match argument, we may get cycle errors since the lock would
|
||||
// be held throughout the match.
|
||||
let alloc = self.tcx.alloc_map.lock().get(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue