Skip to content

Commit 547d875

Browse files
committed
Stabilize std::path::absolute
1 parent 5557f8c commit 547d875

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

compiler/rustc_fs_util/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(absolute_path)]
2-
31
use std::ffi::CString;
42
use std::fs;
53
use std::io;

library/std/src/path.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3332,7 +3332,6 @@ impl Error for StripPrefixError {
33323332
/// ## Posix paths
33333333
///
33343334
/// ```
3335-
/// #![feature(absolute_path)]
33363335
/// # #[cfg(unix)]
33373336
/// fn main() -> std::io::Result<()> {
33383337
/// use std::path::{self, Path};
@@ -3357,7 +3356,6 @@ impl Error for StripPrefixError {
33573356
/// ## Windows paths
33583357
///
33593358
/// ```
3360-
/// #![feature(absolute_path)]
33613359
/// # #[cfg(windows)]
33623360
/// fn main() -> std::io::Result<()> {
33633361
/// use std::path::{self, Path};
@@ -3382,7 +3380,7 @@ impl Error for StripPrefixError {
33823380
///
33833381
/// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
33843382
/// [windows-path]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
3385-
#[unstable(feature = "absolute_path", issue = "92750")]
3383+
#[stable(feature = "absolute_path", since = "CURRENT_RUSTC_VERSION")]
33863384
pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
33873385
let path = path.as_ref();
33883386
if path.as_os_str().is_empty() {

0 commit comments

Comments
 (0)