about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-02-14 16:14:38 +0800
committerkennytm <kennytm@gmail.com>2018-02-14 18:25:16 +0800
commit3bcaaf47a1a79db109d97df7f68ac647a78f4141 (patch)
tree4946ad2c2c0ddcec895c396fa4716e6efdbb44ca /src/libstd
parent83bed7d3a7f388422cced710ec5cc82a185c1345 (diff)
parent45d5a420ada9c11f61347fd4c63c7f0234adaea7 (diff)
downloadrust-3bcaaf47a1a79db109d97df7f68ac647a78f4141.tar.gz
rust-3bcaaf47a1a79db109d97df7f68ac647a78f4141.zip
Rollup merge of #48130 - ollie27:stab, r=Mark-Simulacrum
Correct a few stability attributes

* `core_float_bits`, `duration_core`, `path_component_asref`, and `repr_align` were stabalized in 1.25.0 not 1.24.0.
* Impls for `NonNull` involving unstable things should remain unstable.
* `Duration` should remain stable since 1.3.0 so it appears correctly in the `std` docs.
* `cursor_mut_vec` is an impl on only stable things so should be marked stable.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/cursor.rs2
-rw-r--r--src/libstd/path.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/cursor.rs b/src/libstd/io/cursor.rs
index c8447707d5b..76bcb5fedc9 100644
--- a/src/libstd/io/cursor.rs
+++ b/src/libstd/io/cursor.rs
@@ -296,7 +296,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> {
     fn flush(&mut self) -> io::Result<()> { Ok(()) }
 }
 
-#[unstable(feature = "cursor_mut_vec", issue = "30132")]
+#[stable(feature = "cursor_mut_vec", since = "1.25.0")]
 impl<'a> Write for Cursor<&'a mut Vec<u8>> {
     fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
         vec_write(&mut self.pos, self.inner, buf)
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index ed102c2949e..e03a182653e 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -576,7 +576,7 @@ impl<'a> AsRef<OsStr> for Component<'a> {
     }
 }
 
-#[stable(feature = "path_component_asref", since = "1.24.0")]
+#[stable(feature = "path_component_asref", since = "1.25.0")]
 impl<'a> AsRef<Path> for Component<'a> {
     fn as_ref(&self) -> &Path {
         self.as_os_str().as_ref()