about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBastian Gruber <gruberbastian@me.com>2018-06-25 14:24:39 +0200
committerBastian Gruber <gruberbastian@me.com>2018-11-21 09:59:01 +0100
commit072bca3ff5a3907a71c22fba041825cfa3eb321e (patch)
treec03159d4d16af3c6171f6c8a42cbdd8272717df1 /src/libstd
parent700c83bc05ebeddbe3d3a10c2e309826d563b12b (diff)
downloadrust-072bca3ff5a3907a71c22fba041825cfa3eb321e.tar.gz
rust-072bca3ff5a3907a71c22fba041825cfa3eb321e.zip
Remove 'unsafe' comments
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index ab37bb75209..9145eeb6063 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1551,7 +1551,6 @@ impl From<PathBuf> for Arc<Path> {
     /// Converts a `PathBuf` into a `Arc<Path>`.
     /// This conversion happens in place.
     /// This conversion does not allocate memory.
-    /// This function is unsafe. Data can't be moved from this reference.
     #[inline]
     fn from(s: PathBuf) -> Arc<Path> {
         let arc: Arc<OsStr> = Arc::from(s.into_os_string());
@@ -1564,7 +1563,6 @@ impl<'a> From<&'a Path> for Arc<Path> {
     /// Converts a `PathBuf` into a `Arc<Path>`.
     /// This conversion happens in place.
     /// This conversion does not allocate memory.
-    /// This function is unsafe. Data can't be moved from this reference.
     #[inline]
     fn from(s: &Path) -> Arc<Path> {
         let arc: Arc<OsStr> = Arc::from(s.as_os_str());
@@ -1577,7 +1575,6 @@ impl From<PathBuf> for Rc<Path> {
     /// Converts a `PathBuf` into a `Rc<Path>`.
     /// This conversion happens in place.
     /// This conversion does not allocate memory.
-    /// This function is unsafe. Data can't be moved from this reference.
     #[inline]
     fn from(s: PathBuf) -> Rc<Path> {
         let rc: Rc<OsStr> = Rc::from(s.into_os_string());