about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2024-04-16 12:51:57 +0000
committerChris Denton <chris@chrisdenton.dev>2024-04-24 14:35:02 +0000
commitf56afa047748e2921f5ff4fe1f6217cd9a5aeeec (patch)
tree33a59c165174e9916816e55216f1e25828b43d64 /library/std/src/path.rs
parent5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea (diff)
downloadrust-f56afa047748e2921f5ff4fe1f6217cd9a5aeeec.tar.gz
rust-f56afa047748e2921f5ff4fe1f6217cd9a5aeeec.zip
Stabilize `std::path::absolute`
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 0636f55771e..1c58671a0cf 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -3332,7 +3332,6 @@ impl Error for StripPrefixError {
 /// ## Posix paths
 ///
 /// ```
-/// #![feature(absolute_path)]
 /// # #[cfg(unix)]
 /// fn main() -> std::io::Result<()> {
 ///   use std::path::{self, Path};
@@ -3357,7 +3356,6 @@ impl Error for StripPrefixError {
 /// ## Windows paths
 ///
 /// ```
-/// #![feature(absolute_path)]
 /// # #[cfg(windows)]
 /// fn main() -> std::io::Result<()> {
 ///   use std::path::{self, Path};
@@ -3382,7 +3380,7 @@ impl Error for StripPrefixError {
 ///
 /// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
 /// [windows-path]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
-#[unstable(feature = "absolute_path", issue = "92750")]
+#[stable(feature = "absolute_path", since = "CURRENT_RUSTC_VERSION")]
 pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
     let path = path.as_ref();
     if path.as_os_str().is_empty() {