Skip to content

Commit 072bca3

Browse files
author
Bastian Gruber
committed
Remove 'unsafe' comments
1 parent 700c83b commit 072bca3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libstd/path.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,6 @@ impl From<PathBuf> for Arc<Path> {
15511551
/// Converts a `PathBuf` into a `Arc<Path>`.
15521552
/// This conversion happens in place.
15531553
/// This conversion does not allocate memory.
1554-
/// This function is unsafe. Data can't be moved from this reference.
15551554
#[inline]
15561555
fn from(s: PathBuf) -> Arc<Path> {
15571556
let arc: Arc<OsStr> = Arc::from(s.into_os_string());
@@ -1564,7 +1563,6 @@ impl<'a> From<&'a Path> for Arc<Path> {
15641563
/// Converts a `PathBuf` into a `Arc<Path>`.
15651564
/// This conversion happens in place.
15661565
/// This conversion does not allocate memory.
1567-
/// This function is unsafe. Data can't be moved from this reference.
15681566
#[inline]
15691567
fn from(s: &Path) -> Arc<Path> {
15701568
let arc: Arc<OsStr> = Arc::from(s.as_os_str());
@@ -1577,7 +1575,6 @@ impl From<PathBuf> for Rc<Path> {
15771575
/// Converts a `PathBuf` into a `Rc<Path>`.
15781576
/// This conversion happens in place.
15791577
/// This conversion does not allocate memory.
1580-
/// This function is unsafe. Data can't be moved from this reference.
15811578
#[inline]
15821579
fn from(s: PathBuf) -> Rc<Path> {
15831580
let rc: Rc<OsStr> = Rc::from(s.into_os_string());

0 commit comments

Comments
 (0)