@@ -1204,13 +1204,12 @@ impl OsStr {
1204
1204
/// # Examples
1205
1205
///
1206
1206
/// ```
1207
- /// #![feature(os_str_display)]
1208
1207
/// use std::ffi::OsStr;
1209
1208
///
1210
1209
/// let s = OsStr::new("Hello, world!");
1211
1210
/// println!("{}", s.display());
1212
1211
/// ```
1213
- #[unstable (feature = "os_str_display", issue = "120048 ")]
1212
+ #[stable (feature = "os_str_display", since = "CURRENT_RUSTC_VERSION ")]
1214
1213
#[must_use = "this does not display the `OsStr`; \
1215
1214
it returns an object that can be displayed"]
1216
1215
#[inline]
@@ -1559,7 +1558,6 @@ impl fmt::Debug for OsStr {
1559
1558
/// # Examples
1560
1559
///
1561
1560
/// ```
1562
- /// #![feature(os_str_display)]
1563
1561
/// use std::ffi::OsStr;
1564
1562
///
1565
1563
/// let s = OsStr::new("Hello, world!");
@@ -1568,19 +1566,19 @@ impl fmt::Debug for OsStr {
1568
1566
///
1569
1567
/// [`Display`]: fmt::Display
1570
1568
/// [`format!`]: crate::format
1571
- #[unstable (feature = "os_str_display", issue = "120048 ")]
1569
+ #[stable (feature = "os_str_display", since = "CURRENT_RUSTC_VERSION ")]
1572
1570
pub struct Display<'a> {
1573
1571
os_str: &'a OsStr,
1574
1572
}
1575
1573
1576
- #[unstable (feature = "os_str_display", issue = "120048 ")]
1574
+ #[stable (feature = "os_str_display", since = "CURRENT_RUSTC_VERSION ")]
1577
1575
impl fmt::Debug for Display<'_> {
1578
1576
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1579
1577
fmt::Debug::fmt(&self.os_str, f)
1580
1578
}
1581
1579
}
1582
1580
1583
- #[unstable (feature = "os_str_display", issue = "120048 ")]
1581
+ #[stable (feature = "os_str_display", since = "CURRENT_RUSTC_VERSION ")]
1584
1582
impl fmt::Display for Display<'_> {
1585
1583
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1586
1584
fmt::Display::fmt(&self.os_str.inner, f)
0 commit comments