From f479a03d3c114901c9fc3eae21ed987299a68f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= Date: Tue, 18 Jun 2024 19:09:41 +0100 Subject: [PATCH] docs: mention RUSTC_ICE=0 to suppress ICE file --- src/compiler-debugging.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler-debugging.md b/src/compiler-debugging.md index 2cd577d35..5a897a0bb 100644 --- a/src/compiler-debugging.md +++ b/src/compiler-debugging.md @@ -46,6 +46,12 @@ new-symbol-mangling = false You will need to rebuild the compiler after changing any configuration option. +## Suppressing the ICE file + +By default, if rustc encounters an Internal Compiler Error (ICE) it will dump the ICE contents to an +ICE file within the current working directory named `rustc-ice--.txt`. If this is +not desirable, you can prevent the ICE file from being created with `RUSTC_ICE=0`. + ## `-Z` flags The compiler has a bunch of `-Z` flags. These are unstable flags that are only