Skip to content

Commit 7508454

Browse files
committed
it's just monotone counters
1 parent 7377782 commit 7508454

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wip/stacked-borrows.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ pub struct Stack {
6060
}
6161

6262
/// Extra per-call-frame state: an ID uniquely identifying a stack frame.
63+
/// (The order of `CallId` does not matter, they are only ever compared for equality.)
6364
type CallId = nat;
6465

65-
/// Extra global state: the next unused `Timestamp`, as well as the next unused `CallId`.
66+
/// Extra global state: the next `Timestamp`, as well as the next `CallId`.
67+
/// Both are just monotonically increasing counters, ensuring they are unique
68+
/// (for `CallId`) and properly ordered (for `Timestamp`).
6669
pub struct Tracking {
6770
clock: Timestamp,
6871
next_call: CallId,

0 commit comments

Comments
 (0)