diff options
author | Wedson Almeida Filho <[email protected]> | 2023-08-28 10:48:01 +0000 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2023-09-25 09:46:41 -1000 |
commit | a8321776ca0b13ec4d4fc817144fe1b3f6ba4625 (patch) | |
tree | ae3da57a8aa504d6cea518e6306b8b42333f86cd /scripts/generate_rust_analyzer.py | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) |
rust: sync: add `Arc::{from_raw, into_raw}`
These methods can be used to turn an `Arc` into a raw pointer and back,
in a way that preserves the metadata for fat pointers.
This is done using the unstable ptr_metadata feature [1]. However, it
could also be done using the unstable pointer_byte_offsets feature [2],
which is likely to have a shorter path to stabilization than
ptr_metadata.
Link: https://github.com/rust-lang/rust/issues/81513 [1]
Link: https://github.com/rust-lang/rust/issues/96283 [2]
Signed-off-by: Wedson Almeida Filho <[email protected]>
Co-developed-by: Alice Ryhl <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions