Add track_caller to transmute_copy

This commit is contained in:
Elichai Turkel 2023-11-02 10:43:59 +02:00 committed by GitHub
parent 42e1e1208b
commit 5e49a4165e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1054,6 +1054,7 @@ pub const fn copy<T: Copy>(x: &T) -> T {
/// ```
#[inline]
#[must_use]
#[track_caller]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_transmute_copy", since = "1.74.0")]
pub const unsafe fn transmute_copy<Src, Dst>(src: &Src) -> Dst {