diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-07-26 08:10:09 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-07-26 08:10:09 +0200 |
| commit | 34e7a3cc4dcb7ddd404b9566047a78d1e234f137 (patch) | |
| tree | 63f6afa146791bf2643d079c86ad22d8cdfa232c | |
| parent | d9ac0c67ed5a3ea7d708894a4636a6e83c5aec49 (diff) | |
| download | rust-34e7a3cc4dcb7ddd404b9566047a78d1e234f137.tar.gz rust-34e7a3cc4dcb7ddd404b9566047a78d1e234f137.zip | |
Fix tidy
| -rw-r--r-- | src/librustc_mir/interpret/memory.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs index c8e09ca4a1a..4ac5920c60e 100644 --- a/src/librustc_mir/interpret/memory.rs +++ b/src/librustc_mir/interpret/memory.rs @@ -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); |
