Skip to content

Commit 45d5a42

Browse files
committed
Correct a few stability attributes
1 parent 39abcc0 commit 45d5a42

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/libcore/num/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,7 @@ pub enum FpCategory {
28812881
issue = "32110")]
28822882
pub trait Float: Sized {
28832883
/// Type used by `to_bits` and `from_bits`.
2884-
#[stable(feature = "core_float_bits", since = "1.24.0")]
2884+
#[stable(feature = "core_float_bits", since = "1.25.0")]
28852885
type Bits;
28862886

28872887
/// Returns `true` if this value is NaN and false otherwise.
@@ -2947,10 +2947,10 @@ pub trait Float: Sized {
29472947
fn min(self, other: Self) -> Self;
29482948

29492949
/// Raw transmutation to integer.
2950-
#[stable(feature = "core_float_bits", since="1.24.0")]
2950+
#[stable(feature = "core_float_bits", since="1.25.0")]
29512951
fn to_bits(self) -> Self::Bits;
29522952
/// Raw transmutation from integer.
2953-
#[stable(feature = "core_float_bits", since="1.24.0")]
2953+
#[stable(feature = "core_float_bits", since="1.25.0")]
29542954
fn from_bits(v: Self::Bits) -> Self;
29552955
}
29562956

src/libcore/ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,7 @@ impl<T: ?Sized> Clone for NonNull<T> {
25732573
#[stable(feature = "nonnull", since = "1.25.0")]
25742574
impl<T: ?Sized> Copy for NonNull<T> { }
25752575

2576-
#[stable(feature = "nonnull", since = "1.25.0")]
2576+
#[unstable(feature = "coerce_unsized", issue = "27732")]
25772577
impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> { }
25782578

25792579
#[stable(feature = "nonnull", since = "1.25.0")]
@@ -2621,7 +2621,7 @@ impl<T: ?Sized> hash::Hash for NonNull<T> {
26212621
}
26222622
}
26232623

2624-
#[stable(feature = "nonnull", since = "1.25.0")]
2624+
#[unstable(feature = "ptr_internals", issue = "0")]
26252625
impl<T: ?Sized> From<Unique<T>> for NonNull<T> {
26262626
fn from(unique: Unique<T>) -> Self {
26272627
NonNull { pointer: unique.pointer }

src/libcore/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
#![stable(feature = "duration_core", since = "1.24.0")]
10+
#![stable(feature = "duration_core", since = "1.25.0")]
1111

1212
//! Temporal quantification.
1313
//!
@@ -58,7 +58,7 @@ const MICROS_PER_SEC: u64 = 1_000_000;
5858
///
5959
/// let ten_millis = Duration::from_millis(10);
6060
/// ```
61-
#[stable(feature = "duration_core", since = "1.24.0")]
61+
#[stable(feature = "duration", since = "1.3.0")]
6262
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash, Default)]
6363
pub struct Duration {
6464
secs: u64,

src/libstd/io/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> {
296296
fn flush(&mut self) -> io::Result<()> { Ok(()) }
297297
}
298298

299-
#[unstable(feature = "cursor_mut_vec", issue = "30132")]
299+
#[stable(feature = "cursor_mut_vec", since = "1.25.0")]
300300
impl<'a> Write for Cursor<&'a mut Vec<u8>> {
301301
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
302302
vec_write(&mut self.pos, self.inner, buf)

src/libstd/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ impl<'a> AsRef<OsStr> for Component<'a> {
576576
}
577577
}
578578

579-
#[stable(feature = "path_component_asref", since = "1.24.0")]
579+
#[stable(feature = "path_component_asref", since = "1.25.0")]
580580
impl<'a> AsRef<Path> for Component<'a> {
581581
fn as_ref(&self) -> &Path {
582582
self.as_os_str().as_ref()

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ declare_features! (
538538
// instead of just the platforms on which it is the C ABI
539539
(accepted, abi_sysv64, "1.24.0", Some(36167)),
540540
// Allows `repr(align(16))` struct attribute (RFC 1358)
541-
(accepted, repr_align, "1.24.0", Some(33626)),
541+
(accepted, repr_align, "1.25.0", Some(33626)),
542542
// allow '|' at beginning of match arms (RFC 1925)
543543
(accepted, match_beginning_vert, "1.25.0", Some(44101)),
544544
// Nested groups in `use` (RFC 2128)

0 commit comments

Comments
 (0)