File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 13
13
14
14
#![ macro_escape]
15
15
16
- use std:: fmt;
17
-
18
16
// Indicates whether we should perform expensive sanity checks, including rtassert!
19
17
// FIXME: Once the runtime matures remove the `true` below to turn off rtassert, etc.
20
18
pub static ENFORCE_SANITY : bool = true || !cfg ! ( rtopt) || cfg ! ( rtdebug) || cfg ! ( rtassert) ;
21
19
22
20
macro_rules! rterrln (
23
21
( $( $arg: tt) * ) => ( {
24
- format_args!( :: macros:: dumb_println, $( $arg) * )
22
+ use std:: io:: stdio;
23
+ format_args!( stdio:: println_args, $( $arg) * )
25
24
} )
26
25
)
27
26
@@ -51,12 +50,6 @@ macro_rules! rtabort (
51
50
} )
52
51
)
53
52
54
- pub fn dumb_println ( args : & fmt:: Arguments ) {
55
- use std:: rt;
56
- let mut w = rt:: Stderr ;
57
- let _ = writeln ! ( & mut w, "{}" , args) ;
58
- }
59
-
60
53
pub fn abort ( msg : & str ) -> ! {
61
54
let msg = if !msg. is_empty ( ) { msg } else { "aborted" } ;
62
55
let hash = msg. chars ( ) . fold ( 0 , |accum, val| accum + ( val as uint ) ) ;
Original file line number Diff line number Diff line change 10
10
11
11
#![ macro_escape]
12
12
13
- use std:: fmt;
14
-
15
13
macro_rules! uverrln (
16
14
( $( $arg: tt) * ) => ( {
17
- format_args!( :: macros:: dumb_println, $( $arg) * )
15
+ use std:: io:: stdio;
16
+ format_args!( stdio:: println_args, $( $arg) * )
18
17
} )
19
18
)
20
19
@@ -27,8 +26,3 @@ macro_rules! uvdebug (
27
26
} )
28
27
)
29
28
30
- pub fn dumb_println ( args : & fmt:: Arguments ) {
31
- use std:: rt;
32
- let mut w = rt:: Stderr ;
33
- let _ = writeln ! ( & mut w, "{}" , args) ;
34
- }
You can’t perform that action at this time.
0 commit comments