diff options
| author | Ralf Jung <post@ralfj.de> | 2020-04-13 18:05:05 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-04-13 18:05:05 +0200 |
| commit | f2d4c93c6c56d8cfe1d69646ba1f788823e6bc35 (patch) | |
| tree | 8e117cd89385d00f67f9884a4beaa69787f7948c | |
| parent | 7b90ff9ae68cc23fe002c92f30a4aaf2039c5a8f (diff) | |
| download | rust-f2d4c93c6c56d8cfe1d69646ba1f788823e6bc35.tar.gz rust-f2d4c93c6c56d8cfe1d69646ba1f788823e6bc35.zip | |
fmt
| -rw-r--r-- | src/librustc_mir/const_eval/eval_queries.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_mir/const_eval/eval_queries.rs b/src/librustc_mir/const_eval/eval_queries.rs index 33f83978873..3f0774767fd 100644 --- a/src/librustc_mir/const_eval/eval_queries.rs +++ b/src/librustc_mir/const_eval/eval_queries.rs @@ -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 } } - } + }, } } |
