]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_llvm/src/consts.rs
CTFE/Miri engine Pointer type overhaul: make Scalar-to-Pointer conversion infallible
[rust.git] / compiler / rustc_codegen_llvm / src / consts.rs
index e50d5506e222f5794f7c9ebd194521df8d53e4b7..71a387bfcacd9cab412bc44541b89c7111033890 100644 (file)
@@ -25,7 +25,7 @@ pub fn const_alloc_to_llvm(cx: &CodegenCx<'ll, '_>, alloc: &Allocation) -> &'ll
     let pointer_size = dl.pointer_size.bytes() as usize;
 
     let mut next_offset = 0;
-    for &(offset, ((), alloc_id)) in alloc.relocations().iter() {
+    for &(offset, alloc_id) in alloc.relocations().iter() {
         let offset = offset.bytes();
         assert_eq!(offset as usize as u64, offset);
         let offset = offset as usize;