Register new snapshots

This commit is contained in:
Alex Crichton
2014-05-17 21:54:11 -07:00
parent 639759b7f4
commit 4a1d21ab7b
4 changed files with 8 additions and 13 deletions

View File

@@ -251,19 +251,11 @@ macro_rules! format_strbuf(
/// write!(&mut w, "formatted {}", "arguments");
/// ```
#[macro_export]
#[cfg(not(stage0))]
macro_rules! write(
($dst:expr, $($arg:tt)*) => ({
format_args_method!($dst, write_fmt, $($arg)*)
})
)
#[cfg(stage0)]
#[macro_export]
macro_rules! write(
($dst:expr, $($arg:tt)*) => ({
format_args!(|args| { $dst.write_fmt(args) }, $($arg)*)
})
)
/// Equivalent to the `write!` macro, except that a newline is appended after
/// the message is written.