Skip to content

Commit f56afa0

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

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
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() {

src/tools/miri/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![feature(let_chains)]
1313
#![feature(lint_reasons)]
1414
#![feature(trait_upcasting)]
15-
#![feature(absolute_path)]
1615
// Configure clippy and other lints
1716
#![allow(
1817
clippy::collapsible_else_if,

src/tools/miri/tests/pass/shims/path.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@compile-flags: -Zmiri-disable-isolation
2-
#![feature(absolute_path)]
32
use std::path::{absolute, Path};
43

54
#[track_caller]

0 commit comments

Comments
 (0)