Skip to content

Commit 56db316

Browse files
authored
Unrolled build for rust-lang#137336
Rollup merge of rust-lang#137336 - riverbl:stabilise-os-str-display, r=tgross35 Stabilise `os_str_display` Closes rust-lang#120048.
2 parents 71e06b9 + 5112ecb commit 56db316

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

library/std/src/ffi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,5 @@ pub use self::c_str::{CStr, CString};
201201
#[doc(inline)]
202202
pub use self::os_str::{OsStr, OsString};
203203

204-
#[unstable(feature = "os_str_display", issue = "120048")]
204+
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
205205
pub mod os_str;

library/std/src/ffi/os_str.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1204,13 +1204,12 @@ impl OsStr {
12041204
/// # Examples
12051205
///
12061206
/// ```
1207-
/// #![feature(os_str_display)]
12081207
/// use std::ffi::OsStr;
12091208
///
12101209
/// let s = OsStr::new("Hello, world!");
12111210
/// println!("{}", s.display());
12121211
/// ```
1213-
#[unstable(feature = "os_str_display", issue = "120048")]
1212+
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
12141213
#[must_use = "this does not display the `OsStr`; \
12151214
it returns an object that can be displayed"]
12161215
#[inline]
@@ -1559,7 +1558,6 @@ impl fmt::Debug for OsStr {
15591558
/// # Examples
15601559
///
15611560
/// ```
1562-
/// #![feature(os_str_display)]
15631561
/// use std::ffi::OsStr;
15641562
///
15651563
/// let s = OsStr::new("Hello, world!");
@@ -1568,19 +1566,19 @@ impl fmt::Debug for OsStr {
15681566
///
15691567
/// [`Display`]: fmt::Display
15701568
/// [`format!`]: crate::format
1571-
#[unstable(feature = "os_str_display", issue = "120048")]
1569+
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
15721570
pub struct Display<'a> {
15731571
os_str: &'a OsStr,
15741572
}
15751573

1576-
#[unstable(feature = "os_str_display", issue = "120048")]
1574+
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
15771575
impl fmt::Debug for Display<'_> {
15781576
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
15791577
fmt::Debug::fmt(&self.os_str, f)
15801578
}
15811579
}
15821580

1583-
#[unstable(feature = "os_str_display", issue = "120048")]
1581+
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
15841582
impl fmt::Display for Display<'_> {
15851583
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
15861584
fmt::Display::fmt(&self.os_str.inner, f)

src/librustdoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![feature(iter_intersperse)]
1414
#![feature(let_chains)]
1515
#![feature(never_type)]
16-
#![feature(os_str_display)]
1716
#![feature(round_char_boundary)]
1817
#![feature(test)]
1918
#![feature(type_alias_impl_trait)]

0 commit comments

Comments
 (0)