about summary refs log tree commit diff
path: root/library/std/src/sys_common
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-05-06 14:03:50 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-05-19 15:52:09 +0200
commit4ff5ab52966203b8ad8da96f897566e4a218308a (patch)
tree345645ca61e919b7a9b74c543a497efeedcaab54 /library/std/src/sys_common
parent6145051eeebeba030cef3aa01a99683b84ff24fc (diff)
Rename `rterr` to `rtprintpanic`
Diffstat (limited to 'library/std/src/sys_common')
-rw-r--r--library/std/src/sys_common/rt.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/std/src/sys_common/rt.rs b/library/std/src/sys_common/rt.rs
index e4c9b60594e..02013ecc4ce 100644
--- a/library/std/src/sys_common/rt.rs
+++ b/library/std/src/sys_common/rt.rs
@@ -39,7 +39,11 @@ pub fn cleanup() {
     });
 }
 
-macro_rules! rterr {
+// Prints to the "panic output", depending on the platform this may be:
+// - the standard error output
+// - some dedicated platform specific output
+// - nothing (so this macro is a no-op)
+macro_rules! rtprintpanic {
     ($($t:tt)*) => {
         if let Some(mut out) = crate::sys::stdio::panic_output() {
             let _ = crate::io::Write::write_fmt(&mut out, format_args!($($t)*));
@@ -50,7 +54,7 @@ macro_rules! rterr {
 macro_rules! rtabort {
     ($($t:tt)*) => {
         {
-            rterr!("fatal runtime error: {}\n", format_args!($($t)*));
+            rtprintpanic!("fatal runtime error: {}\n", format_args!($($t)*));
             crate::sys::abort_internal();
         }
     }