@@ -1397,7 +1397,8 @@ impl<'a> From<&'a Path> for Box<Path> {
13971397
13981398#[ stable( feature = "path_buf_from_box" , since = "1.18.0" ) ]
13991399impl From < Box < Path > > for PathBuf {
1400- /// Converts a `Box<Path>` into a `PathBuf`.
1400+ /// Converts a `Box<Path>` into a `PathBuf`
1401+ ///
14011402 /// This conversion does not allocate memory
14021403 fn from ( boxed : Box < Path > ) -> PathBuf {
14031404 boxed. into_path_buf ( )
@@ -1406,7 +1407,8 @@ impl From<Box<Path>> for PathBuf {
14061407
14071408#[ stable( feature = "box_from_path_buf" , since = "1.20.0" ) ]
14081409impl From < PathBuf > for Box < Path > {
1409- /// Converts a `PathBuf` into a `Box<Path>`.
1410+ /// Converts a `PathBuf` into a `Box<Path>`
1411+ ///
14101412 /// This conversion does not allocate memory
14111413 fn from ( p : PathBuf ) -> Box < Path > {
14121414 p. into_boxed_path ( )
@@ -1430,7 +1432,8 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
14301432
14311433#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14321434impl From < OsString > for PathBuf {
1433- /// Converts a `OsString` into a `PathBuf`.
1435+ /// Converts a `OsString` into a `PathBuf`
1436+ ///
14341437 /// This conversion does not allocate memory
14351438 fn from ( s : OsString ) -> PathBuf {
14361439 PathBuf { inner : s }
@@ -1439,7 +1442,8 @@ impl From<OsString> for PathBuf {
14391442
14401443#[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
14411444impl From < PathBuf > for OsString {
1442- /// Converts a `PathBuf` into a `OsString`.
1445+ /// Converts a `PathBuf` into a `OsString`
1446+ ///
14431447 /// This conversion does not allocate memory
14441448 fn from ( path_buf : PathBuf ) -> OsString {
14451449 path_buf. inner
@@ -1448,7 +1452,8 @@ impl From<PathBuf> for OsString {
14481452
14491453#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14501454impl From < String > for PathBuf {
1451- /// Converts a `String` into a `PathBuf`.
1455+ /// Converts a `String` into a `PathBuf`
1456+ ///
14521457 /// This conversion does not allocate memory
14531458 fn from ( s : String ) -> PathBuf {
14541459 PathBuf :: from ( OsString :: from ( s) )
@@ -1546,9 +1551,11 @@ impl<'a> From<Cow<'a, Path>> for PathBuf {
15461551
15471552#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
15481553impl From < PathBuf > for Arc < Path > {
1549- /// Converts a `PathBuf` into a `Arc<Path>`.
1550- /// This conversion happens in place.
1551- /// This conversion does not allocate memory.
1554+ /// Converts a `PathBuf` into a `Arc<Path>`
1555+ ///
1556+ /// This conversion happens in place
1557+ ///
1558+ /// This conversion does not allocate memory
15521559 #[ inline]
15531560 fn from ( s : PathBuf ) -> Arc < Path > {
15541561 let arc: Arc < OsStr > = Arc :: from ( s. into_os_string ( ) ) ;
@@ -1558,9 +1565,12 @@ impl From<PathBuf> for Arc<Path> {
15581565
15591566#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
15601567impl < ' a > From < & ' a Path > for Arc < Path > {
1561- /// Converts a `PathBuf` into a `Arc<Path>`.
1562- /// This conversion happens in place.
1563- /// This conversion does not allocate memory.
1568+ /// Converts a `PathBuf` into a `Arc<Path>`
1569+ ///
1570+ /// This conversion happens in place
1571+ ///
1572+ /// This conversion does not allocate memory
1573+ ///
15641574 #[ inline]
15651575 fn from ( s : & Path ) -> Arc < Path > {
15661576 let arc: Arc < OsStr > = Arc :: from ( s. as_os_str ( ) ) ;
@@ -1570,9 +1580,11 @@ impl<'a> From<&'a Path> for Arc<Path> {
15701580
15711581#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
15721582impl From < PathBuf > for Rc < Path > {
1573- /// Converts a `PathBuf` into a `Rc<Path>`.
1574- /// This conversion happens in place.
1575- /// This conversion does not allocate memory.
1583+ /// Converts a `PathBuf` into a `Rc<Path>`
1584+ ///
1585+ /// This conversion happens in place
1586+ ///
1587+ /// This conversion does not allocate memory
15761588 #[ inline]
15771589 fn from ( s : PathBuf ) -> Rc < Path > {
15781590 let rc: Rc < OsStr > = Rc :: from ( s. into_os_string ( ) ) ;
0 commit comments