about summary refs log tree commit diff
path: root/library/std/src/alloc.rs
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-04-29 16:10:32 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-05-19 15:05:35 +0200
commit6145051eeebeba030cef3aa01a99683b84ff24fc (patch)
treec77a2295b9da5097280dea573b05156909722fad /library/std/src/alloc.rs
parent236705f3c30905623f97dc8887c83db520eb27c1 (diff)
downloadrust-6145051eeebeba030cef3aa01a99683b84ff24fc.tar.gz
rust-6145051eeebeba030cef3aa01a99683b84ff24fc.zip
Replace `sys_common::util::dumb_print` with `rterr!`
Diffstat (limited to 'library/std/src/alloc.rs')
-rw-r--r--library/std/src/alloc.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs
index 843ef09a584..9e9052ff92e 100644
--- a/library/std/src/alloc.rs
+++ b/library/std/src/alloc.rs
@@ -63,8 +63,6 @@ use core::ptr::NonNull;
 use core::sync::atomic::{AtomicPtr, Ordering};
 use core::{mem, ptr};
 
-use crate::sys_common::util::dumb_print;
-
 #[stable(feature = "alloc_module", since = "1.28.0")]
 #[doc(inline)]
 pub use alloc_crate::alloc::*;
@@ -317,7 +315,7 @@ pub fn take_alloc_error_hook() -> fn(Layout) {
 }
 
 fn default_alloc_error_hook(layout: Layout) {
-    dumb_print(format_args!("memory allocation of {} bytes failed\n", layout.size()));
+    rterr!("memory allocation of {} bytes failed\n", layout.size());
 }
 
 #[cfg(not(test))]