From 6138ad697f0c378661c80a41554d64eb8166f6ce Mon Sep 17 00:00:00 2001 From: Jake Hughes Date: Wed, 15 Nov 2023 15:46:04 +0000 Subject: [PATCH] Do not suppress all Boehm warnings If something goes wrong during a GC, we likely want to know what happened. It's not totally clear whether this is the correct way to disable warnings anyway (it uses some deprecated library features in Boehm). Annoying warnings (such as those for many large page allocations) can be disabled individually. --- library/std/src/rt.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs index df77b182b4b26..b47254fa086a8 100644 --- a/library/std/src/rt.rs +++ b/library/std/src/rt.rs @@ -103,10 +103,6 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) { // handler next time. The is not true in the reverse case. alloc::gc::init(); - // Boehm GC prints OOM warnings which are useful for debugging, but - // annoying when building the compiler in release mode. - alloc::gc::suppress_warnings(); - sys::init(argc, argv, sigpipe); let main_guard = sys::thread::guard::init();