Skip to content

Commit

Permalink
adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 23, 2019
1 parent 6116f19 commit 8d4e7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ impl<T: ?Sized> Box<T> {
// Stacked Borrows. This function here corresponds to "reborrowing to
// a raw pointer", but there is no actual reborrow here -- so
// without some care, the pointer we are returning here still carries
// the `Uniq` tag. We round-trip through a mutable reference to avoid that.
// the tag of `b`, with `Unique` permission.
// We round-trip through a mutable reference to avoid that.
unsafe { Unique::new_unchecked(unique.as_mut() as *mut T) }
}

Expand Down

0 comments on commit 8d4e7fd

Please sign in to comment.