Skip to content

Commit 5e49a41

Browse files
authored
Add track_caller to transmute_copy
1 parent 42e1e12 commit 5e49a41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/core/src/mem/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ pub const fn copy<T: Copy>(x: &T) -> T {
10541054
/// ```
10551055
#[inline]
10561056
#[must_use]
1057+
#[track_caller]
10571058
#[stable(feature = "rust1", since = "1.0.0")]
10581059
#[rustc_const_stable(feature = "const_transmute_copy", since = "1.74.0")]
10591060
pub const unsafe fn transmute_copy<Src, Dst>(src: &Src) -> Dst {

0 commit comments

Comments
 (0)