Skip to content

Commit

Permalink
Add track_caller to transmute_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed Nov 2, 2023
1 parent 42e1e12 commit 5e49a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5e49a41

Please sign in to comment.