Skip to content

Commit 5e4577e

Browse files
committed
Add TaggedPtr::set_tag
1 parent 6f64ae3 commit 5e4577e

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_data_structures/src/tagged_ptr

1 file changed

+4
-0
lines changed

compiler/rustc_data_structures/src/tagged_ptr/drop.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ where
3434
pub fn tag(&self) -> T {
3535
self.raw.tag()
3636
}
37+
38+
pub fn set_tag(&mut self, tag: T) {
39+
self.raw.set_tag(tag)
40+
}
3741
}
3842

3943
impl<P, T, const CP: bool> Clone for TaggedPtr<P, T, CP>

0 commit comments

Comments
 (0)