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.
sys_common::rt::rterr!
1 parent be8450e commit 5b09085Copy full SHA for 5b09085
library/std/src/sys_common/rt.rs
@@ -1,4 +1,5 @@
1
#![deny(unsafe_op_in_unsafe_fn)]
2
+#![allow(unused_macros)]
3
4
use crate::sync::Once;
5
use crate::sys;
@@ -38,6 +39,14 @@ pub fn cleanup() {
38
39
});
40
}
41
42
+macro_rules! rterr {
43
+ ($($t:tt)*) => {
44
+ if let Some(mut out) = crate::sys::stdio::panic_output() {
45
+ let _ = crate::io::Write::write_fmt(&mut out, format_args!($($t)*));
46
+ }
47
48
+}
49
+
50
macro_rules! rtabort {
51
($($t:tt)*) => (crate::sys_common::util::abort(format_args!($($t)*)))
52
@@ -50,7 +59,6 @@ macro_rules! rtassert {
59
};
60
61
53
-#[allow(unused_macros)] // not used on all platforms
54
62
macro_rules! rtunwrap {
55
63
($ok:ident, $e:expr) => {
56
64
match $e {
0 commit comments