]> git.lizzy.rs Git - rust.git/commitdiff
fmt
authorRalf Jung <post@ralfj.de>
Mon, 13 Apr 2020 16:05:05 +0000 (18:05 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 13 Apr 2020 16:05:05 +0000 (18:05 +0200)
src/librustc_mir/const_eval/eval_queries.rs

index 33f8397887336ebff02aa03d9de98f14a30715a4..3f0774767fd7a4ede2666ff6c41cd1c4bc2226bb 100644 (file)
@@ -158,7 +158,8 @@ pub(super) fn op_to_const<'tcx>(
                         (ecx.tcx.alloc_map.lock().unwrap_memory(ptr.alloc_id), ptr.offset.bytes())
                     }
                     Scalar::Raw { .. } => (
-                        ecx.tcx.intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
+                        ecx.tcx
+                            .intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
                         0,
                     ),
                 };
@@ -167,7 +168,7 @@ pub(super) fn op_to_const<'tcx>(
                 let len: usize = len.try_into().unwrap();
                 ConstValue::Slice { data, start, end: start + len }
             }
-        }
+        },
     }
 }