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.
1 parent 8800809 commit 05a4290Copy full SHA for 05a4290
library/std/src/alloc.rs
@@ -364,7 +364,7 @@ fn default_alloc_error_hook(layout: Layout) {
364
// there is not enough memory to print a backtrace, although it could also mean that two
365
// threads concurrently run out of memory.
366
rtprintpanic!(
367
- "memory allocation of {} bytes failed while handling another memory allocation error\n",
+ "memory allocation of {} bytes failed\nskipping backtrace printing to avoid potential recursion\n",
368
layout.size()
369
);
370
return;
0 commit comments