Skip to content

Commit 8235756

Browse files
committed
remove gate
1 parent 7cd9505 commit 8235756

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

library/std/src/path.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,6 @@ impl Path {
26782678
/// # Examples
26792679
///
26802680
/// ```
2681-
/// # #![feature(path_file_prefix)]
26822681
/// use std::path::Path;
26832682
///
26842683
/// assert_eq!("foo", Path::new("foo.rs").file_prefix().unwrap());
@@ -2691,7 +2690,7 @@ impl Path {
26912690
///
26922691
/// [`Path::file_stem`]: Path::file_stem
26932692
///
2694-
#[unstable(feature = "path_file_prefix", issue = "86319")]
2693+
#[stable(feature = "path_file_prefix", since = "CURRENT_RUSTC_VERSION")]
26952694
#[must_use]
26962695
pub fn file_prefix(&self) -> Option<&OsStr> {
26972696
self.file_name().map(split_file_at_dot).and_then(|(before, _after)| Some(before))

library/std/tests/path.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
#![feature(
2-
clone_to_uninit,
3-
path_add_extension,
4-
path_file_prefix,
5-
maybe_uninit_slice,
6-
normalize_lexically
7-
)]
1+
#![feature(clone_to_uninit, path_add_extension, maybe_uninit_slice, normalize_lexically)]
82

93
use std::clone::CloneToUninit;
104
use std::ffi::OsStr;

0 commit comments

Comments
 (0)