Skip to content

Commit 72e9d09

Browse files
authored
Rollup merge of rust-lang#124335 - ChrisDenton:stabilize-absolute, r=dtolnay
Stabilize `std::path::absolute` FCP complete in rust-lang#92750 (comment)
2 parents 3504c1e + 2a9b748 commit 72e9d09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)