about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-06-18 19:09:41 +0100
committerBoxy <supbscripter@gmail.com>2024-06-18 19:24:17 +0100
commita9586ed0b3a4552c7b946c51d74033695500f331 (patch)
tree5c6a550ac1af2c9d4f8dd3e06c5f0d38cc146f57 /src/doc/rustc-dev-guide
parent119324974dac2f8578d2f6b5d6d738cbf3cda7b0 (diff)
downloadrust-a9586ed0b3a4552c7b946c51d74033695500f331.tar.gz
rust-a9586ed0b3a4552c7b946c51d74033695500f331.zip
docs: mention RUSTC_ICE=0 to suppress ICE file
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/compiler-debugging.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/compiler-debugging.md b/src/doc/rustc-dev-guide/src/compiler-debugging.md
index 2cd577d3564..5a897a0bbbd 100644
--- a/src/doc/rustc-dev-guide/src/compiler-debugging.md
+++ b/src/doc/rustc-dev-guide/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-<timestamp>-<pid>.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