Skip to content

Commit 2567af6

Browse files
authored
Rollup merge of rust-lang#62713 - SimonSapin:cast, r=Centril
Stabilize <*mut _>::cast and <*const _>::cast Fixes rust-lang#60602. FCP: rust-lang#60602 (comment)
2 parents 0de90c6 + 8040c54 commit 2567af6

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)