mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 04:56:58 +00:00
Add track_caller to transmute_copy
This commit is contained in:
parent
42e1e1208b
commit
5e49a4165e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user