Skip to content

Commit f8c3dc6

Browse files
committed
Add a debugging aid
1 parent e1e79c3 commit f8c3dc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/mir/interpret/value.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl<'tcx> ConstValue<'tcx> {
5050
#[inline]
5151
pub fn try_get_bytes(&self, hdl: impl HasDataLayout, n: Size, align: Align) -> Option<&[u8]> {
5252
let (_, alloc, offset) = self.try_as_by_ref()?;
53+
trace!("{:?}", alloc.get_bytes(hdl, offset, n, align));
5354
alloc.get_bytes(hdl, offset, n, align).ok()
5455
}
5556

0 commit comments

Comments
 (0)