File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -1551,7 +1551,6 @@ impl From<PathBuf> for Arc<Path> {
1551
1551
/// Converts a `PathBuf` into a `Arc<Path>`.
1552
1552
/// This conversion happens in place.
1553
1553
/// This conversion does not allocate memory.
1554
- /// This function is unsafe. Data can't be moved from this reference.
1555
1554
#[ inline]
1556
1555
fn from ( s : PathBuf ) -> Arc < Path > {
1557
1556
let arc: Arc < OsStr > = Arc :: from ( s. into_os_string ( ) ) ;
@@ -1564,7 +1563,6 @@ impl<'a> From<&'a Path> for Arc<Path> {
1564
1563
/// Converts a `PathBuf` into a `Arc<Path>`.
1565
1564
/// This conversion happens in place.
1566
1565
/// This conversion does not allocate memory.
1567
- /// This function is unsafe. Data can't be moved from this reference.
1568
1566
#[ inline]
1569
1567
fn from ( s : & Path ) -> Arc < Path > {
1570
1568
let arc: Arc < OsStr > = Arc :: from ( s. as_os_str ( ) ) ;
@@ -1577,7 +1575,6 @@ impl From<PathBuf> for Rc<Path> {
1577
1575
/// Converts a `PathBuf` into a `Rc<Path>`.
1578
1576
/// This conversion happens in place.
1579
1577
/// This conversion does not allocate memory.
1580
- /// This function is unsafe. Data can't be moved from this reference.
1581
1578
#[ inline]
1582
1579
fn from ( s : PathBuf ) -> Rc < Path > {
1583
1580
let rc: Rc < OsStr > = Rc :: from ( s. into_os_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments