Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e81f85f

Browse files
committedSep 16, 2023
Auto merge of #115520 - Finomnis:const_transmute_copy, r=dtolnay
Stabilize const_transmute_copy Closes #83165
2 parents c48e6ff + 0bb5481 commit e81f85f

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
@@ -166,7 +166,6 @@
166166
#![feature(const_slice_split_at_mut)]
167167
#![feature(const_str_from_utf8_unchecked_mut)]
168168
#![feature(const_swap)]
169-
#![feature(const_transmute_copy)]
170169
#![feature(const_try)]
171170
#![feature(const_type_id)]
172171
#![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)
Failed to load comments.