This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +1
-7
lines changed
compiler/rustc_fs_util/src Expand file tree Collapse file tree 4 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
- #![feature(absolute_path)]
2
-
3
1
use std::ffi::CString;
4
2
use std::fs;
5
3
use std::io;
Original file line number Diff line number Diff line change @@ -3332,7 +3332,6 @@ impl Error for StripPrefixError {
3332
3332
/// ## Posix paths
3333
3333
///
3334
3334
/// ```
3335
- /// #![feature(absolute_path)]
3336
3335
/// # #[cfg(unix)]
3337
3336
/// fn main() -> std::io::Result<()> {
3338
3337
/// use std::path::{self, Path};
@@ -3357,7 +3356,6 @@ impl Error for StripPrefixError {
3357
3356
/// ## Windows paths
3358
3357
///
3359
3358
/// ```
3360
- /// #![feature(absolute_path)]
3361
3359
/// # #[cfg(windows)]
3362
3360
/// fn main() -> std::io::Result<()> {
3363
3361
/// use std::path::{self, Path};
@@ -3382,7 +3380,7 @@ impl Error for StripPrefixError {
3382
3380
///
3383
3381
/// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
3384
3382
/// [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 ")]
3386
3384
pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
3387
3385
let path = path.as_ref();
3388
3386
if path.as_os_str().is_empty() {
Original file line number Diff line number Diff line change 12
12
#![feature(let_chains)]
13
13
#![feature(lint_reasons)]
14
14
#![feature(trait_upcasting)]
15
- #![feature(absolute_path)]
16
15
// Configure clippy and other lints
17
16
#![allow(
18
17
clippy::collapsible_else_if,
Original file line number Diff line number Diff line change 1
1
//@compile-flags: -Zmiri-disable-isolation
2
- #![feature(absolute_path)]
3
2
use std::path::{absolute, Path};
4
3
5
4
#[track_caller]
You can’t perform that action at this time.
0 commit comments