We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eprintln!()
1 parent 00d5000 commit a7a6837Copy full SHA for a7a6837
src/libstd/macros.rs
@@ -217,10 +217,17 @@ macro_rules! eprint {
217
/// ```
218
#[macro_export]
219
#[stable(feature = "eprint", since = "1.19.0")]
220
+#[allow_internal_unstable]
221
macro_rules! eprintln {
222
() => (eprint!("\n"));
- ($fmt:expr) => (eprint!(concat!($fmt, "\n")));
223
- ($fmt:expr, $($arg:tt)*) => (eprint!(concat!($fmt, "\n"), $($arg)*));
+ ($($arg:tt)*) => ({
224
+ #[cfg(not(stage0))] {
225
+ ($crate::io::_eprint(format_args_nl!($($arg)*)));
226
+ }
227
+ #[cfg(stage0)] {
228
+ eprint!("{}\n", format_args!($($arg)*))
229
230
+ })
231
}
232
233
0 commit comments