We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b90ff9 commit f2d4c93Copy full SHA for f2d4c93
src/librustc_mir/const_eval/eval_queries.rs
@@ -158,7 +158,8 @@ pub(super) fn op_to_const<'tcx>(
158
(ecx.tcx.alloc_map.lock().unwrap_memory(ptr.alloc_id), ptr.offset.bytes())
159
}
160
Scalar::Raw { .. } => (
161
- ecx.tcx.intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
+ ecx.tcx
162
+ .intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
163
0,
164
),
165
};
@@ -167,7 +168,7 @@ pub(super) fn op_to_const<'tcx>(
167
168
let len: usize = len.try_into().unwrap();
169
ConstValue::Slice { data, start, end: start + len }
170
- }
171
+ },
172
173
174
0 commit comments