Skip to content

Commit 35d8c44

Browse files
Changed feature gate for new PathBuf methods
Feature gate changed to `path_buf_capacity` as per advice from @Mark-Simulacrum
1 parent dbf60d9 commit 35d8c44

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libstd/path.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ impl PathBuf {
11641164
///
11651165
/// [`with_capacity`]: ../ffi/struct.OsString.html#method.with_capacity
11661166
/// [`OsString`]: ../ffi/struct.OsString.html
1167-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1167+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
11681168
pub fn with_capacity(capacity: usize) -> PathBuf {
11691169
PathBuf {
11701170
inner: OsString::with_capacity(capacity)
@@ -1404,7 +1404,7 @@ impl PathBuf {
14041404
///
14051405
/// [`capacity`]: ../ffi/struct.OsString.html#method.capacity
14061406
/// [`OsString`]: ../ffi/struct.OsString.html
1407-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1407+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14081408
pub fn capacity(&self) -> usize {
14091409
self.inner.capacity()
14101410
}
@@ -1413,7 +1413,7 @@ impl PathBuf {
14131413
///
14141414
/// [`clear`]: ../ffi/struct.OsString.html#method.clear
14151415
/// [`OsString`]: ../ffi/struct.OsString.html
1416-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1416+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14171417
pub fn clear(&mut self) {
14181418
self.inner.clear()
14191419
}
@@ -1422,7 +1422,7 @@ impl PathBuf {
14221422
///
14231423
/// [`reserve`]: ../ffi/struct.OsString.html#method.reserve
14241424
/// [`OsString`]: ../ffi/struct.OsString.html
1425-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1425+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14261426
pub fn reserve(&mut self, additional: usize) {
14271427
self.inner.reserve(additional)
14281428
}
@@ -1431,7 +1431,7 @@ impl PathBuf {
14311431
///
14321432
/// [`reserve_exact`]: ../ffi/struct.OsString.html#method.reserve_exact
14331433
/// [`OsString`]: ../ffi/struct.OsString.html
1434-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1434+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14351435
pub fn reserve_exact(&mut self, additional: usize) {
14361436
self.inner.reserve_exact(additional)
14371437
}
@@ -1440,7 +1440,7 @@ impl PathBuf {
14401440
///
14411441
/// [`shrink_to_fit`]: ../ffi/struct.OsString.html#method.shrink_to_fit
14421442
/// [`OsString`]: ../ffi/struct.OsString.html
1443-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1443+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14441444
pub fn shrink_to_fit(&mut self) {
14451445
self.inner.shrink_to_fit()
14461446
}
@@ -1449,7 +1449,7 @@ impl PathBuf {
14491449
///
14501450
/// [`shrink_to`]: ../ffi/struct.OsString.html#method.shrink_to
14511451
/// [`OsString`]: ../ffi/struct.OsString.html
1452-
#[unstable(feature = "path_buf_alias_os_string_methods", issue = "58234")]
1452+
#[unstable(feature = "path_buf_capacity", issue = "58234")]
14531453
pub fn shrink_to(&mut self, min_capacity: usize) {
14541454
self.inner.shrink_to(min_capacity)
14551455
}

0 commit comments

Comments
 (0)