Skip to content

Commit f3e858a

Browse files
committed
Update the stable attributes to use the current nightly version number
1 parent d87b039 commit f3e858a

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ impl<'a> From<String> for Cow<'a, str> {
22392239
}
22402240
}
22412241

2242-
#[stable(feature = "cow_from_string_ref", since = "1.28.0")]
2242+
#[stable(feature = "cow_from_string_ref", since = "1.27.0")]
22432243
impl<'a> From<&'a String> for Cow<'a, str> {
22442244
#[inline]
22452245
fn from(s: &'a String) -> Cow<'a, str> {

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,7 @@ impl<'a, T: Clone> From<Vec<T>> for Cow<'a, [T]> {
22852285
}
22862286
}
22872287

2288-
#[stable(feature = "cow_from_vec_ref", since = "1.28.0")]
2288+
#[stable(feature = "cow_from_vec_ref", since = "1.27.0")]
22892289
impl<'a, T: Clone> From<&'a Vec<T>> for Cow<'a, [T]> {
22902290
fn from(v: &'a Vec<T>) -> Cow<'a, [T]> {
22912291
Cow::Borrowed(v.as_slice())

src/libstd/ffi/c_str.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ impl Borrow<CStr> for CString {
682682
fn borrow(&self) -> &CStr { self }
683683
}
684684

685-
#[stable(feature = "cstring_from_cow_cstr", since = "1.28.0")]
685+
#[stable(feature = "cstring_from_cow_cstr", since = "1.27.0")]
686686
impl<'a> From<Cow<'a, CStr>> for CString {
687687
#[inline]
688688
fn from(s: Cow<'a, CStr>) -> Self {
@@ -714,23 +714,23 @@ impl From<CString> for Box<CStr> {
714714
}
715715
}
716716

717-
#[stable(feature = "cow_from_cstr", since = "1.28.0")]
717+
#[stable(feature = "cow_from_cstr", since = "1.27.0")]
718718
impl<'a> From<CString> for Cow<'a, CStr> {
719719
#[inline]
720720
fn from(s: CString) -> Cow<'a, CStr> {
721721
Cow::Owned(s)
722722
}
723723
}
724724

725-
#[stable(feature = "cow_from_cstr", since = "1.28.0")]
725+
#[stable(feature = "cow_from_cstr", since = "1.27.0")]
726726
impl<'a> From<&'a CStr> for Cow<'a, CStr> {
727727
#[inline]
728728
fn from(s: &'a CStr) -> Cow<'a, CStr> {
729729
Cow::Borrowed(s)
730730
}
731731
}
732732

733-
#[stable(feature = "cow_from_cstr", since = "1.28.0")]
733+
#[stable(feature = "cow_from_cstr", since = "1.27.0")]
734734
impl<'a> From<&'a CString> for Cow<'a, CStr> {
735735
#[inline]
736736
fn from(s: &'a CString) -> Cow<'a, CStr> {

src/libstd/ffi/os_str.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -664,31 +664,31 @@ impl<'a> From<&'a OsStr> for Rc<OsStr> {
664664
}
665665
}
666666

667-
#[stable(feature = "cow_from_osstr", since = "1.28.0")]
667+
#[stable(feature = "cow_from_osstr", since = "1.27.0")]
668668
impl<'a> From<OsString> for Cow<'a, OsStr> {
669669
#[inline]
670670
fn from(s: OsString) -> Cow<'a, OsStr> {
671671
Cow::Owned(s)
672672
}
673673
}
674674

675-
#[stable(feature = "cow_from_osstr", since = "1.28.0")]
675+
#[stable(feature = "cow_from_osstr", since = "1.27.0")]
676676
impl<'a> From<&'a OsStr> for Cow<'a, OsStr> {
677677
#[inline]
678678
fn from(s: &'a OsStr) -> Cow<'a, OsStr> {
679679
Cow::Borrowed(s)
680680
}
681681
}
682682

683-
#[stable(feature = "cow_from_osstr", since = "1.28.0")]
683+
#[stable(feature = "cow_from_osstr", since = "1.27.0")]
684684
impl<'a> From<&'a OsString> for Cow<'a, OsStr> {
685685
#[inline]
686686
fn from(s: &'a OsString) -> Cow<'a, OsStr> {
687687
Cow::Borrowed(s.as_os_str())
688688
}
689689
}
690690

691-
#[stable(feature = "osstring_from_cow_osstr", since = "1.28.0")]
691+
#[stable(feature = "osstring_from_cow_osstr", since = "1.27.0")]
692692
impl<'a> From<Cow<'a, OsStr>> for OsString {
693693
#[inline]
694694
fn from(s: Cow<'a, OsStr>) -> Self {

src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1532,15 +1532,15 @@ impl<'a> From<PathBuf> for Cow<'a, Path> {
15321532
}
15331533
}
15341534

1535-
#[stable(feature = "cow_from_pathbuf_ref", since = "1.28.0")]
1535+
#[stable(feature = "cow_from_pathbuf_ref", since = "1.27.0")]
15361536
impl<'a> From<&'a PathBuf> for Cow<'a, Path> {
15371537
#[inline]
15381538
fn from(p: &'a PathBuf) -> Cow<'a, Path> {
15391539
Cow::Borrowed(p.as_path())
15401540
}
15411541
}
15421542

1543-
#[stable(feature = "pathbuf_from_cow_path", since = "1.28.0")]
1543+
#[stable(feature = "pathbuf_from_cow_path", since = "1.27.0")]
15441544
impl<'a> From<Cow<'a, Path>> for PathBuf {
15451545
#[inline]
15461546
fn from(p: Cow<'a, Path>) -> Self {

0 commit comments

Comments
 (0)