portable-atomic-util: Arc::{into_raw,as_ptr} should not take self #139
Labels
A-portable-atomic-util
Area: related to portable-atomic-util crate
C-bug
Category: related to a bug.
It should match with std' APIs.
https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.into_raw
https://docs.rs/portable-atomic-util/latest/portable_atomic_util/struct.Arc.html#method.into_raw
The current APIs cause Arc::as_ptr to be called in code that tries to call T::as_ptr, so the semantics will change when using std and when using portable-atomic-util.
I was aware that #41 uses a different implementation than std, but I missed the difference in API.
The text was updated successfully, but these errors were encountered: