We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6116f19 commit 8d4e7fdCopy full SHA for 8d4e7fd
src/liballoc/boxed.rs
@@ -260,7 +260,8 @@ impl<T: ?Sized> Box<T> {
260
// Stacked Borrows. This function here corresponds to "reborrowing to
261
// a raw pointer", but there is no actual reborrow here -- so
262
// without some care, the pointer we are returning here still carries
263
- // the `Uniq` tag. We round-trip through a mutable reference to avoid that.
+ // the tag of `b`, with `Unique` permission.
264
+ // We round-trip through a mutable reference to avoid that.
265
unsafe { Unique::new_unchecked(unique.as_mut() as *mut T) }
266
}
267
0 commit comments