Skip to content

Commit

Permalink
Remove 'unsafe' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Gruber committed Nov 21, 2018
1 parent 700c83b commit 072bca3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libstd/path.rs
Expand Up @@ -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());
Expand All @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit 072bca3

Please sign in to comment.