Skip to content

Commit 0bb5481

Browse files
committed
Stabilize const_transmute_copy
1 parent 2a1af89 commit 0bb5481

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156
#![feature(const_slice_split_at_mut)]
157157
#![feature(const_str_from_utf8_unchecked_mut)]
158158
#![feature(const_swap)]
159-
#![feature(const_transmute_copy)]
160159
#![feature(const_try)]
161160
#![feature(const_type_id)]
162161
#![feature(const_type_name)]

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ pub const fn copy<T: Copy>(x: &T) -> T {
10511051
#[inline]
10521052
#[must_use]
10531053
#[stable(feature = "rust1", since = "1.0.0")]
1054-
#[rustc_const_unstable(feature = "const_transmute_copy", issue = "83165")]
1054+
#[rustc_const_stable(feature = "const_transmute_copy", since = "CURRENT_RUSTC_VERSION")]
10551055
pub const unsafe fn transmute_copy<Src, Dst>(src: &Src) -> Dst {
10561056
assert!(
10571057
size_of::<Src>() >= size_of::<Dst>(),

0 commit comments

Comments
 (0)