Skip to content

Commit 388fce9

Browse files
Rollup merge of #43137 - ollie27:stab, r=aturon
Correct some stability attributes These show up in rustdoc so need to be correct.
2 parents cc20ab1 + f2566bb commit 388fce9

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

src/liballoc/boxed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ impl<T: Clone> Clone for Box<[T]> {
726726
}
727727
}
728728

729-
#[stable(feature = "rust1", since = "1.0.0")]
729+
#[stable(feature = "box_borrow", since = "1.1.0")]
730730
impl<T: ?Sized> borrow::Borrow<T> for Box<T> {
731731
fn borrow(&self) -> &T {
732732
&**self
733733
}
734734
}
735735

736-
#[stable(feature = "rust1", since = "1.0.0")]
736+
#[stable(feature = "box_borrow", since = "1.1.0")]
737737
impl<T: ?Sized> borrow::BorrowMut<T> for Box<T> {
738738
fn borrow_mut(&mut self) -> &mut T {
739739
&mut **self

src/libcore/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ impl<'b, T: ?Sized> Ref<'b, T> {
942942
#[unstable(feature = "coerce_unsized", issue = "27732")]
943943
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Ref<'b, U>> for Ref<'b, T> {}
944944

945-
#[stable(feature = "std_guard_impls", since = "1.20")]
945+
#[stable(feature = "std_guard_impls", since = "1.20.0")]
946946
impl<'a, T: ?Sized + fmt::Display> fmt::Display for Ref<'a, T> {
947947
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
948948
self.value.fmt(f)
@@ -1041,7 +1041,7 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> {
10411041
#[unstable(feature = "coerce_unsized", issue = "27732")]
10421042
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<RefMut<'b, U>> for RefMut<'b, T> {}
10431043

1044-
#[stable(feature = "std_guard_impls", since = "1.20")]
1044+
#[stable(feature = "std_guard_impls", since = "1.20.0")]
10451045
impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> {
10461046
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10471047
self.value.fmt(f)

src/libcore/char.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl From<u8> for char {
210210

211211

212212
/// An error which can be returned when parsing a char.
213-
#[stable(feature = "char_from_str", since = "1.19.0")]
213+
#[stable(feature = "char_from_str", since = "1.20.0")]
214214
#[derive(Clone, Debug)]
215215
pub struct ParseCharError {
216216
kind: CharErrorKind,
@@ -237,15 +237,15 @@ enum CharErrorKind {
237237
TooManyChars,
238238
}
239239

240-
#[stable(feature = "char_from_str", since = "1.19.0")]
240+
#[stable(feature = "char_from_str", since = "1.20.0")]
241241
impl fmt::Display for ParseCharError {
242242
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
243243
self.__description().fmt(f)
244244
}
245245
}
246246

247247

248-
#[stable(feature = "char_from_str", since = "1.19.0")]
248+
#[stable(feature = "char_from_str", since = "1.20.0")]
249249
impl FromStr for char {
250250
type Err = ParseCharError;
251251

src/libstd/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl Error for char::CharTryFromError {
340340
}
341341
}
342342

343-
#[stable(feature = "char_from_str", since = "1.19.0")]
343+
#[stable(feature = "char_from_str", since = "1.20.0")]
344344
impl Error for char::ParseCharError {
345345
fn description(&self) -> &str {
346346
self.__description()

src/libstd/sync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl<'a, T: ?Sized + fmt::Debug> fmt::Debug for MutexGuard<'a, T> {
440440
}
441441
}
442442

443-
#[stable(feature = "std_guard_impls", since = "1.20")]
443+
#[stable(feature = "std_guard_impls", since = "1.20.0")]
444444
impl<'a, T: ?Sized + fmt::Display> fmt::Display for MutexGuard<'a, T> {
445445
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
446446
(**self).fmt(f)

src/libstd/sync/rwlock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl<'a, T: fmt::Debug> fmt::Debug for RwLockReadGuard<'a, T> {
370370
}
371371
}
372372

373-
#[stable(feature = "std_guard_impls", since = "1.20")]
373+
#[stable(feature = "std_guard_impls", since = "1.20.0")]
374374
impl<'a, T: ?Sized + fmt::Display> fmt::Display for RwLockReadGuard<'a, T> {
375375
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
376376
(**self).fmt(f)
@@ -386,7 +386,7 @@ impl<'a, T: fmt::Debug> fmt::Debug for RwLockWriteGuard<'a, T> {
386386
}
387387
}
388388

389-
#[stable(feature = "std_guard_impls", since = "1.20")]
389+
#[stable(feature = "std_guard_impls", since = "1.20.0")]
390390
impl<'a, T: ?Sized + fmt::Display> fmt::Display for RwLockWriteGuard<'a, T> {
391391
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
392392
(**self).fmt(f)

src/libstd_unicode/char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use tables::{conversions, derived_property, general_category, property};
3838
pub use core::char::{MAX, from_digit, from_u32, from_u32_unchecked};
3939
#[stable(feature = "rust1", since = "1.0.0")]
4040
pub use core::char::{EscapeDebug, EscapeDefault, EscapeUnicode};
41-
#[stable(feature = "char_from_str", since = "1.19.0")]
41+
#[stable(feature = "char_from_str", since = "1.20.0")]
4242
pub use core::char::ParseCharError;
4343

4444
// unstable reexports

0 commit comments

Comments
 (0)