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 a394b60 commit fc1a539Copy full SHA for fc1a539
src/stacked_borrows.rs
@@ -102,7 +102,8 @@ pub struct GlobalStateInner {
102
base_ptr_tags: FxHashMap<AllocId, SbTag>,
103
/// Next unused call ID (for protectors).
104
next_call_id: CallId,
105
- /// All tags currently protected
+ /// All currently protected tags.
106
+ /// An item is protected if its tag is in this set, *and* it has the "protected" bit set.
107
/// We add tags to this when they are created with a protector in `reborrow`, and
108
/// we remove tags from this when the call which is protecting them returns, in
109
/// `GlobalStateInner::end_call`. See `Stack::item_popped` for more details.
0 commit comments