File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 70
70
//! tuple:
71
71
//! unpin: sized
72
72
//! unsize: sized
73
+ //! write: fmt
73
74
//! todo: panic
74
75
//! unimplemented: panic
75
76
//! column:
@@ -1769,6 +1770,26 @@ mod macros {
1769
1770
}
1770
1771
// endregion:panic
1771
1772
1773
+ // region:write
1774
+ #[ macro_export]
1775
+ macro_rules! write {
1776
+ ( $dst: expr, $( $arg: tt) * ) => {
1777
+ $dst. write_fmt( $crate:: format_args!( $( $arg) * ) )
1778
+ } ;
1779
+ }
1780
+
1781
+ #[ macro_export]
1782
+ #[ allow_internal_unstable( format_args_nl) ]
1783
+ macro_rules! writeln {
1784
+ ( $dst: expr $( , ) ?) => {
1785
+ $crate:: write!( $dst, "\n " )
1786
+ } ;
1787
+ ( $dst: expr, $( $arg: tt) * ) => {
1788
+ $dst. write_fmt( $crate:: format_args_nl!( $( $arg) * ) )
1789
+ } ;
1790
+ }
1791
+ // endregion:write
1792
+
1772
1793
// region:assert
1773
1794
#[ macro_export]
1774
1795
#[ rustc_builtin_macro]
You can’t perform that action at this time.
0 commit comments