We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef5c8a commit 786aeb2Copy full SHA for 786aeb2
src/machine.rs
@@ -260,6 +260,17 @@ impl interpret::Provenance for Provenance {
260
}
261
262
263
+ fn fmt(ptr: &Pointer<Self>, f: &mut fmt::Formatter<'_>) -> fmt::Result {
264
+ let (prov, addr) = ptr.into_parts(); // address is absolute
265
+ write!(f, "{:#x}", addr.bytes())?;
266
+ if f.alternate() {
267
+ write!(f, "{prov:#?}")?;
268
+ } else {
269
+ write!(f, "{prov:?}")?;
270
+ }
271
+ Ok(())
272
273
+
274
fn join(left: Option<Self>, right: Option<Self>) -> Option<Self> {
275
match (left, right) {
276
// If both are the *same* concrete tag, that is the result.
0 commit comments