1
Fork 0

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

@ -3113,6 +3113,7 @@ impl Path {
#[unstable(feature = "clone_to_uninit", issue = "126799")]
unsafe impl CloneToUninit for Path {
#[inline]
#[cfg_attr(debug_assertions, track_caller)]
unsafe fn clone_to_uninit(&self, dst: *mut Self) {
// SAFETY: Path is just a wrapper around OsStr