Skip to content

Commit

Permalink
Update safety section
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 24, 2023
1 parent e20eca4 commit 4762e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arc_borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ impl<'a, T> ArcBorrow<'a, T> {
/// e.g. if we obtain such a reference over FFI
/// TODO: should from_ref be relaxed to unsized types? It can't be
/// converted back to an Arc right now for unsized types.
/// # Safety
/// - The reference to `T` must have come from a Triomphe Arc, UniqueArc, or ArcBorrow.
#[inline]
pub unsafe fn from_ref(r: &'a T) -> Self {
ArcBorrow(r)
Expand Down

0 comments on commit 4762e2c

Please sign in to comment.