diff options
| author | Esteban Küber <esteban@commure.com> | 2018-07-21 17:59:17 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@commure.com> | 2018-07-21 17:59:17 -0700 |
| commit | 6aa17a3c687c3e78ba65953f88d763ab2b437384 (patch) | |
| tree | 88f75d939dcd15d68bf32bfd8b60d8dd886e4192 | |
| parent | 118b0f9a02113fe7462ca5c94780912919dbce02 (diff) | |
| download | rust-6aa17a3c687c3e78ba65953f88d763ab2b437384.tar.gz rust-6aa17a3c687c3e78ba65953f88d763ab2b437384.zip | |
Don't use the new `eprintln` for stage0 and stage1
I'm not entirely sure why (or if) this is needed.
| -rw-r--r-- | src/libstd/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index f06b8f621f2..6309ca069fe 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -221,10 +221,10 @@ macro_rules! eprint { macro_rules! eprintln { () => (eprint!("\n")); ($($arg:tt)*) => ({ - #[cfg(not(stage0))] { + #[cfg(all(not(stage0), not(stage1)))] { ($crate::io::_eprint(format_args_nl!($($arg)*))); } - #[cfg(stage0)] { + #[cfg(any(stage0, stage1))] { eprint!("{}\n", format_args!($($arg)*)) } }) |
