Skip to content

Commit 8040c54

Browse files
committed
Stabilize <*mut _>::cast and <*const _>::cast
FCP: #60602 (comment)
1 parent 4b65a86 commit 8040c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ impl<T: ?Sized> *const T {
10431043
}
10441044

10451045
/// Cast to a pointer to a different type
1046-
#[unstable(feature = "ptr_cast", issue = "60602")]
1046+
#[stable(feature = "ptr_cast", since = "1.38.0")]
10471047
#[inline]
10481048
pub const fn cast<U>(self) -> *const U {
10491049
self as _
@@ -1678,7 +1678,7 @@ impl<T: ?Sized> *mut T {
16781678
}
16791679

16801680
/// Cast to a pointer to a different type
1681-
#[unstable(feature = "ptr_cast", issue = "60602")]
1681+
#[stable(feature = "ptr_cast", since = "1.38.0")]
16821682
#[inline]
16831683
pub const fn cast<U>(self) -> *mut U {
16841684
self as _

0 commit comments

Comments
 (0)