Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion library/alloctests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#![feature(thin_box)]
#![feature(drain_keep_rest)]
#![feature(local_waker)]
#![feature(str_as_str)]
#![feature(strict_provenance_lints)]
#![feature(string_replace_in_place)]
#![feature(vec_deque_truncate_front)]
Expand Down
2 changes: 0 additions & 2 deletions library/core/src/bstr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl ByteStr {
/// it helps dereferencing other "container" types,
/// for example `Box<ByteStr>` or `Arc<ByteStr>`.
#[inline]
// #[unstable(feature = "str_as_str", issue = "130366")]
#[unstable(feature = "bstr", issue = "134915")]
pub const fn as_byte_str(&self) -> &ByteStr {
self
Expand All @@ -86,7 +85,6 @@ impl ByteStr {
/// it helps dereferencing other "container" types,
/// for example `Box<ByteStr>` or `MutexGuard<ByteStr>`.
#[inline]
// #[unstable(feature = "str_as_str", issue = "130366")]
#[unstable(feature = "bstr", issue = "134915")]
pub const fn as_mut_byte_str(&mut self) -> &mut ByteStr {
self
Expand Down
3 changes: 2 additions & 1 deletion library/core/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ impl CStr {
/// it helps dereferencing other string-like types to string slices,
/// for example references to `Box<CStr>` or `Arc<CStr>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_c_str(&self) -> &CStr {
self
}
Expand Down
6 changes: 4 additions & 2 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5126,7 +5126,8 @@ impl<T> [T] {
/// it helps dereferencing other "container" types to slices,
/// for example `Box<[T]>` or `Arc<[T]>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_slice(&self) -> &[T] {
self
}
Expand All @@ -5137,7 +5138,8 @@ impl<T> [T] {
/// it helps dereferencing other "container" types to slices,
/// for example `Box<[T]>` or `MutexGuard<[T]>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_mut_slice(&mut self) -> &mut [T] {
self
}
Expand Down
3 changes: 2 additions & 1 deletion library/core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3121,7 +3121,8 @@ impl str {
/// it helps dereferencing other string-like types to string slices,
/// for example references to `Box<str>` or `Arc<str>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_str(&self) -> &str {
self
}
Expand Down
3 changes: 2 additions & 1 deletion library/std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,8 @@ impl OsStr {
/// it helps dereferencing other string-like types to string slices,
/// for example references to `Box<OsStr>` or `Arc<OsStr>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_os_str(&self) -> &OsStr {
self
}
Expand Down
3 changes: 2 additions & 1 deletion library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3221,7 +3221,8 @@ impl Path {
/// it helps dereferencing other `PathBuf`-like types to `Path`s,
/// for example references to `Box<Path>` or `Arc<Path>`.
#[inline]
#[unstable(feature = "str_as_str", issue = "130366")]
#[stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "str_as_str", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_path(&self) -> &Path {
self
}
Expand Down
Loading