File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/tools/miri/src/borrow_tracker Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub struct FrameState {
74
74
75
75
impl VisitTags for FrameState {
76
76
fn visit_tags ( & self , _visit : & mut dyn FnMut ( BorTag ) ) {
77
- // `protected_tags` are fine to GC .
77
+ // `protected_tags` are already recorded by `GlobalStateInner` .
78
78
}
79
79
}
80
80
@@ -108,9 +108,12 @@ pub struct GlobalStateInner {
108
108
}
109
109
110
110
impl VisitTags for GlobalStateInner {
111
- fn visit_tags ( & self , _visit : & mut dyn FnMut ( BorTag ) ) {
112
- // The only candidate is base_ptr_tags, and that does not need visiting since we don't ever
113
- // GC the bottommost tag.
111
+ fn visit_tags ( & self , visit : & mut dyn FnMut ( BorTag ) ) {
112
+ for & tag in self . protected_tags . keys ( ) {
113
+ visit ( tag) ;
114
+ }
115
+ // The only other candidate is base_ptr_tags, and that does not need visiting since we don't ever
116
+ // GC the bottommost/root tag.
114
117
}
115
118
}
116
119
You can’t perform that action at this time.
0 commit comments