@@ -1116,7 +1116,6 @@ impl PathBuf {
1116
1116
/// # Examples
1117
1117
///
1118
1118
/// ```
1119
- /// #![feature(path_buf_capacity)]
1120
1119
/// use std::path::PathBuf;
1121
1120
///
1122
1121
/// let mut path = PathBuf::with_capacity(10);
@@ -1130,7 +1129,7 @@ impl PathBuf {
1130
1129
///
1131
1130
/// [`with_capacity`]: ../ffi/struct.OsString.html#method.with_capacity
1132
1131
/// [`OsString`]: ../ffi/struct.OsString.html
1133
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1132
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1134
1133
pub fn with_capacity ( capacity : usize ) -> PathBuf {
1135
1134
PathBuf { inner : OsString :: with_capacity ( capacity) }
1136
1135
}
@@ -1374,7 +1373,7 @@ impl PathBuf {
1374
1373
///
1375
1374
/// [`capacity`]: ../ffi/struct.OsString.html#method.capacity
1376
1375
/// [`OsString`]: ../ffi/struct.OsString.html
1377
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1376
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1378
1377
pub fn capacity ( & self ) -> usize {
1379
1378
self . inner . capacity ( )
1380
1379
}
@@ -1383,7 +1382,7 @@ impl PathBuf {
1383
1382
///
1384
1383
/// [`clear`]: ../ffi/struct.OsString.html#method.clear
1385
1384
/// [`OsString`]: ../ffi/struct.OsString.html
1386
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1385
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1387
1386
pub fn clear ( & mut self ) {
1388
1387
self . inner . clear ( )
1389
1388
}
@@ -1392,7 +1391,7 @@ impl PathBuf {
1392
1391
///
1393
1392
/// [`reserve`]: ../ffi/struct.OsString.html#method.reserve
1394
1393
/// [`OsString`]: ../ffi/struct.OsString.html
1395
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1394
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1396
1395
pub fn reserve ( & mut self , additional : usize ) {
1397
1396
self . inner . reserve ( additional)
1398
1397
}
@@ -1401,7 +1400,7 @@ impl PathBuf {
1401
1400
///
1402
1401
/// [`reserve_exact`]: ../ffi/struct.OsString.html#method.reserve_exact
1403
1402
/// [`OsString`]: ../ffi/struct.OsString.html
1404
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1403
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1405
1404
pub fn reserve_exact ( & mut self , additional : usize ) {
1406
1405
self . inner . reserve_exact ( additional)
1407
1406
}
@@ -1410,7 +1409,7 @@ impl PathBuf {
1410
1409
///
1411
1410
/// [`shrink_to_fit`]: ../ffi/struct.OsString.html#method.shrink_to_fit
1412
1411
/// [`OsString`]: ../ffi/struct.OsString.html
1413
- #[ unstable ( feature = "path_buf_capacity" , issue = "58234 " ) ]
1412
+ #[ stable ( feature = "path_buf_capacity" , since = "1.44.0 " ) ]
1414
1413
pub fn shrink_to_fit ( & mut self ) {
1415
1414
self . inner . shrink_to_fit ( )
1416
1415
}
@@ -1419,7 +1418,7 @@ impl PathBuf {
1419
1418
///
1420
1419
/// [`shrink_to`]: ../ffi/struct.OsString.html#method.shrink_to
1421
1420
/// [`OsString`]: ../ffi/struct.OsString.html
1422
- #[ unstable( feature = "path_buf_capacity " , issue = "58234 " ) ]
1421
+ #[ unstable( feature = "shrink_to " , issue = "56431 " ) ]
1423
1422
pub fn shrink_to ( & mut self , min_capacity : usize ) {
1424
1423
self . inner . shrink_to ( min_capacity)
1425
1424
}
0 commit comments