]> git.lizzy.rs Git - rust.git/commitdiff
std: Stabilize the Write::flush method
authorAlex Crichton <alex@alexcrichton.com>
Mon, 16 Mar 2015 17:56:08 +0000 (10:56 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 16 Mar 2015 18:51:57 +0000 (11:51 -0700)
The [associated RFC][rfc] for possibly splitting out `flush` has been closed and
as a result there are no more blockers for stabilizing this method, so this
commit marks the method as such.

[rfc]: https://github.com/rust-lang/rfcs/pull/950

src/liblog/lib.rs
src/libstd/io/mod.rs
src/libsyntax/lib.rs
src/libterm/lib.rs
src/libtest/lib.rs

index b03d77db4ec9c29e57f3abcc8c73547d1e88472c..c634a46888e56e5d5529a0d061a244f3030849de 100644 (file)
 #![feature(int_uint)]
 #![feature(core)]
 #![feature(std_misc)]
-#![feature(io)]
 
 use std::boxed;
 use std::cell::RefCell;
index 35ef375174ad059fb515b942ccea783990cd0491..2c4bfb8a3d280dc1f1f00c2bad9315c99f3be6f7 100644 (file)
@@ -356,7 +356,7 @@ pub trait Write {
     ///
     /// It is considered an error if not all bytes could be written due to
     /// I/O errors or EOF being reached.
-    #[unstable(feature = "io", reason = "waiting for RFC 950")]
+    #[stable(feature = "rust1", since = "1.0.0")]
     fn flush(&mut self) -> Result<()>;
 
     /// Attempts to write an entire buffer into this write.
index f60ac8f3f33b2f4976589555830e46bd9503f925..b53bb4bc75ee27425e4ee2c4f79e1cd1218092ab 100644 (file)
@@ -37,7 +37,6 @@
 #![feature(staged_api)]
 #![feature(std_misc)]
 #![feature(unicode)]
-#![feature(io)]
 #![feature(path_ext)]
 
 extern crate arena;
index 36225fad2211e4d7b81171b2fcb82d415e03cd8d..89960d5d62f5b2d4367c29da2be457e45537a586 100644 (file)
@@ -57,7 +57,6 @@
 #![feature(box_syntax)]
 #![feature(collections)]
 #![feature(int_uint)]
-#![feature(io)]
 #![feature(rustc_private)]
 #![feature(staged_api)]
 #![feature(std_misc)]
index 8fe0cd6ebd4e0c78e780b0eda1e4c0f7fb2e7baa..02ddeea46bfc8ad14fcf5f20a0308fa93b5447cc 100644 (file)
@@ -42,7 +42,6 @@
 #![feature(rustc_private)]
 #![feature(staged_api)]
 #![feature(std_misc)]
-#![feature(io)]
 #![feature(libc)]
 #![feature(set_stdio)]