diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-12 12:35:43 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-12 12:35:43 +0000 |
| commit | 5e4577ec65a3dc327feee9618fa91a44797771d4 (patch) | |
| tree | 37fba971b3ee83e3e531e8ab265bdb4e02e71725 /compiler/rustc_data_structures/src | |
| parent | 6f64ae3fbcf7a353537d250f91981ac336e12880 (diff) | |
| download | rust-5e4577ec65a3dc327feee9618fa91a44797771d4.tar.gz rust-5e4577ec65a3dc327feee9618fa91a44797771d4.zip | |
Add `TaggedPtr::set_tag`
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/tagged_ptr/drop.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<P, T, const CP: bool> Clone for TaggedPtr<P, T, CP> |
