diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop.rs index 60f3e1d2461..de253a0b255 100644 --- a/compiler/rustc_data_structures/src/tagged_ptr/drop.rs +++ b/compiler/rustc_data_structures/src/tagged_ptr/drop.rs @@ -34,6 +34,10 @@ where pub fn tag(&self) -> T { self.raw.tag() } + + pub fn set_tag(&mut self, tag: T) { + self.raw.set_tag(tag) + } } impl Clone for TaggedPtr