We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9b3c0 commit 964f2e1Copy full SHA for 964f2e1
reference/src/glossary.md
@@ -78,7 +78,9 @@ let raw2_wrong = raw1.wrapping_add(raw2.wrapping_sub(raw1 as usize) as usize);
78
// In other words, raw2 and raw2_wrong have same *address*...
79
assert_eq!(raw2 as usize, raw2_wrong as usize);
80
// ...but it would be UB to use raw2_wrong, as it was obtained by
81
-// cross-allocation arithmetic. raw2_wrong has the wrong *provenance*.
+// cross-allocation arithmetic. raw2_wrong has the wrong *provenance*:
82
+// it points to address 0x200 in allocation @2, but the pointer
83
+// has provenance @1.
84
```
85
86
Another example of pointer provenance is the "tag" from [Stacked Borrows][stacked-borrows].
0 commit comments