Skip to content

Commit fc1a539

Browse files
saethlinRalfJung
andauthored
Update src/stacked_borrows.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent a394b60 commit fc1a539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stacked_borrows.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ pub struct GlobalStateInner {
102102
base_ptr_tags: FxHashMap<AllocId, SbTag>,
103103
/// Next unused call ID (for protectors).
104104
next_call_id: CallId,
105-
/// All tags currently protected
105+
/// All currently protected tags.
106+
/// An item is protected if its tag is in this set, *and* it has the "protected" bit set.
106107
/// We add tags to this when they are created with a protector in `reborrow`, and
107108
/// we remove tags from this when the call which is protecting them returns, in
108109
/// `GlobalStateInner::end_call`. See `Stack::item_popped` for more details.

0 commit comments

Comments
 (0)