-
Notifications
You must be signed in to change notification settings - Fork 13.4k
MIR dump: print pointers consistently with Miri output #71590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c427438
19eb934
96cfb20
5163f09
b12faeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,19 +30,19 @@ fn main() -> () { | |
} | ||
|
||
alloc0 (static: FOO, size: 8, align: 4) { | ||
╾alloc17+0╼ 03 00 00 00 │ ╾──╼.... | ||
╾─a17+0x0─╼ 03 00 00 00 │ ╾──╼.... | ||
} | ||
|
||
alloc17 (size: 48, align: 4) { | ||
0x00 │ 00 00 00 00 __ __ __ __ ╾alloc4+0─╼ 00 00 00 00 │ ....░░░░╾──╼.... | ||
0x10 │ 00 00 00 00 __ __ __ __ ╾alloc8+0─╼ 02 00 00 00 │ ....░░░░╾──╼.... | ||
0x20 │ 01 00 00 00 2a 00 00 00 ╾alloc13+0╼ 03 00 00 00 │ ....*...╾──╼.... | ||
0x00 │ 00 00 00 00 __ __ __ __ ╾─a4+0x0──╼ 00 00 00 00 │ ....░░░░╾──╼.... | ||
0x10 │ 00 00 00 00 __ __ __ __ ╾─a8+0x0──╼ 02 00 00 00 │ ....░░░░╾──╼.... | ||
0x20 │ 01 00 00 00 2a 00 00 00 ╾─a13+0x0─╼ 03 00 00 00 │ ....*...╾──╼.... | ||
Comment on lines
+37
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmpf, for the common case (offset is I know @RalfJung doesn't like it, but my preferred approach of printing arbitrary integers involves using a decimal digit when unambiguous (i.e. But maybe this won't matter long-term, if we improve our There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm okay introducing a special case for 0, to not print the offset at all. But |
||
} | ||
|
||
alloc4 (size: 0, align: 4) {} | ||
|
||
alloc8 (size: 16, align: 4) { | ||
╾alloc7+0─╼ 03 00 00 00 ╾alloc9+0─╼ 03 00 00 00 │ ╾──╼....╾──╼.... | ||
╾─a7+0x0──╼ 03 00 00 00 ╾─a9+0x0──╼ 03 00 00 00 │ ╾──╼....╾──╼.... | ||
} | ||
|
||
alloc7 (size: 3, align: 1) { | ||
|
@@ -54,8 +54,8 @@ alloc9 (size: 3, align: 1) { | |
} | ||
|
||
alloc13 (size: 24, align: 4) { | ||
0x00 │ ╾alloc12+0╼ 03 00 00 00 ╾alloc14+0╼ 03 00 00 00 │ ╾──╼....╾──╼.... | ||
0x10 │ ╾alloc15+0╼ 04 00 00 00 │ ╾──╼.... | ||
0x00 │ ╾─a12+0x0─╼ 03 00 00 00 ╾─a14+0x0─╼ 03 00 00 00 │ ╾──╼....╾──╼.... | ||
0x10 │ ╾─a15+0x0─╼ 04 00 00 00 │ ╾──╼.... | ||
} | ||
|
||
alloc12 (size: 3, align: 1) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.