Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/common/non_utf8/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mod display;

use alloc::borrow::{Cow, ToOwned};
use alloc::rc::Rc;
#[cfg(target_has_atomic = "ptr")]
use alloc::sync::Arc;
use core::hash::{Hash, Hasher};
use core::marker::PhantomData;
Expand Down Expand Up @@ -1259,6 +1260,7 @@ where
}
}

#[cfg(target_has_atomic = "ptr")]
impl<T> From<PathBuf<T>> for Arc<Path<T>>
where
T: Encoding,
Expand All @@ -1272,6 +1274,7 @@ where
}
}

#[cfg(target_has_atomic = "ptr")]
impl<T> From<&Path<T>> for Arc<Path<T>>
where
T: Encoding,
Expand Down
3 changes: 3 additions & 0 deletions src/common/utf8/path.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use alloc::borrow::{Cow, ToOwned};
use alloc::rc::Rc;
#[cfg(target_has_atomic = "ptr")]
use alloc::sync::Arc;
use core::hash::{Hash, Hasher};
use core::marker::PhantomData;
Expand Down Expand Up @@ -1245,6 +1246,7 @@ where
}
}

#[cfg(target_has_atomic = "ptr")]
impl<T> From<Utf8PathBuf<T>> for Arc<Utf8Path<T>>
where
T: Utf8Encoding,
Expand All @@ -1258,6 +1260,7 @@ where
}
}

#[cfg(target_has_atomic = "ptr")]
impl<T> From<&Utf8Path<T>> for Arc<Utf8Path<T>>
where
T: Utf8Encoding,
Expand Down
Loading