Skip to content

Commit 62d4b62

Browse files
committed
Make core::cell::clone_ref accept dynimacally-sized types.
1 parent e64ba12 commit 62d4b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'b, T: ?Sized> Deref for Ref<'b, T> {
548548
#[unstable(feature = "core",
549549
reason = "likely to be moved to a method, pending language changes")]
550550
#[inline]
551-
pub fn clone_ref<'b, T>(orig: &Ref<'b, T>) -> Ref<'b, T> {
551+
pub fn clone_ref<'b, T: ?Sized>(orig: &Ref<'b, T>) -> Ref<'b, T> {
552552
Ref {
553553
_value: orig._value,
554554
_borrow: orig._borrow.clone(),

0 commit comments

Comments
 (0)