File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
32
refs/heads/beta: 4efc4ec178f6ddf3c8cd268b011f3a04056f9d16
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
- refs/heads/tmp: 15b028c5859f98b32cde69b81dd62468039db0be
35
+ refs/heads/tmp: 63da18b269128c6594b0fa60064b187a9b5d0418
36
36
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
37
37
refs/tags/homu-tmp: bea1c4a78e5233ea6f85a2028a26e08c26635fca
38
38
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
Original file line number Diff line number Diff line change @@ -731,13 +731,6 @@ impl<'a> Formatter<'a> {
731
731
self . buf . write_str ( data)
732
732
}
733
733
734
- /// Writes a `char` to the underlying buffer contained within this
735
- /// formatter.
736
- #[ stable( feature = "fmt_write_char" , since = "1.1.0" ) ]
737
- pub fn write_char ( & mut self , c : char ) -> Result {
738
- self . buf . write_char ( c)
739
- }
740
-
741
734
/// Writes some formatted information into this instance
742
735
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
743
736
pub fn write_fmt ( & mut self , fmt : Arguments ) -> Result {
@@ -899,6 +892,21 @@ impl<'a> Formatter<'a> {
899
892
}
900
893
}
901
894
895
+ #[ stable( since = "1.2.0" , feature = "formatter_write" ) ]
896
+ impl < ' a > Write for Formatter < ' a > {
897
+ fn write_str ( & mut self , s : & str ) -> Result {
898
+ self . buf . write_str ( s)
899
+ }
900
+
901
+ fn write_char ( & mut self , c : char ) -> Result {
902
+ self . buf . write_char ( c)
903
+ }
904
+
905
+ fn write_fmt ( & mut self , args : Arguments ) -> Result {
906
+ write ( self . buf , args)
907
+ }
908
+ }
909
+
902
910
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
903
911
impl Display for Error {
904
912
fn fmt ( & self , f : & mut Formatter ) -> Result {
Original file line number Diff line number Diff line change 15
15
#![ allow( unknown_features) ]
16
16
#![ feature( box_syntax) ]
17
17
18
- use std:: fmt;
18
+ use std:: fmt:: { self , Write } ;
19
19
use std:: usize;
20
20
21
21
struct A ;
You can’t perform that action at this time.
0 commit comments