about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorChris Wong <lambda.fairy@gmail.com>2015-02-14 12:56:32 +1300
committerChris Wong <lambda.fairy@gmail.com>2015-02-14 12:56:32 +1300
commitbc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb (patch)
tree7eca299eb3e3c7f1494f067bc6dcb4c119c279dd /src/test
parentcf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff)
downloadrust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.tar.gz
rust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.zip
Rename `fmt::Writer` to `fmt::Write`
This brings it in line with its namesake in `std::io`.

[breaking-change]
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/colorful-write-macros.rs4
-rw-r--r--src/test/run-pass/ifmt.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/colorful-write-macros.rs b/src/test/run-pass/colorful-write-macros.rs
index bcb2e492041..841aaa94e9b 100644
--- a/src/test/run-pass/colorful-write-macros.rs
+++ b/src/test/run-pass/colorful-write-macros.rs
@@ -21,7 +21,7 @@ struct Foo<'a> {
 
 struct Bar;
 
-impl fmt::Writer for Bar {
+impl fmt::Write for Bar {
     fn write_str(&mut self, _: &str) -> fmt::Result {
         Ok(())
     }
@@ -39,7 +39,7 @@ fn main() {
 
     let mut s = Bar;
     {
-        use std::fmt::Writer;
+        use std::fmt::Write;
         write!(&mut s, "test");
     }
 }
diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs
index 5d157d875fa..e5aade792ed 100644
--- a/src/test/run-pass/ifmt.rs
+++ b/src/test/run-pass/ifmt.rs
@@ -165,9 +165,9 @@ pub fn main() {
 }
 
 // Basic test to make sure that we can invoke the `write!` macro with an
-// io::Writer instance.
+// fmt::Write instance.
 fn test_write() {
-    use std::fmt::Writer;
+    use std::fmt::Write;
     let mut buf = String::new();
     write!(&mut buf, "{}", 3);
     {
@@ -194,7 +194,7 @@ fn test_print() {
 // Just make sure that the macros are defined, there's not really a lot that we
 // can do with them just yet (to test the output)
 fn test_format_args() {
-    use std::fmt::Writer;
+    use std::fmt::Write;
     let mut buf = String::new();
     {
         let w = &mut buf;