mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Fix two run-fail tests for asmjs
Use eprintln!() to make sure stdio is flushed.
This commit is contained in:
@@ -17,7 +17,7 @@ fn drop(&mut self) {
|
||||
if self.0 == 1 {
|
||||
panic!("panic 1");
|
||||
} else {
|
||||
eprint!("drop {}", self.0);
|
||||
eprintln!("drop {}", self.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
fn main() {
|
||||
panic::set_hook(Box::new(|i| {
|
||||
eprint!("greetings from the panic handler");
|
||||
eprintln!("greetings from the panic handler");
|
||||
}));
|
||||
panic!("foobar");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user