Sparkle some attributes over CloneToUninit stuff

This commit is contained in:
Pavel Grigorenko
2024-06-24 18:09:27 +03:00
parent afabc583f7
commit dbc13fb309
6 changed files with 12 additions and 0 deletions

View File

@@ -1051,6 +1051,7 @@ impl Hash for Wtf8 {
#[unstable(feature = "clone_to_uninit", issue = "126799")]
unsafe impl CloneToUninit for Wtf8 {
#[inline]
#[cfg_attr(debug_assertions, track_caller)]
unsafe fn clone_to_uninit(&self, dst: *mut Self) {
// SAFETY: we're just a wrapper around [u8]