Skip to content

Commit e7998be

Browse files
jieyouxuBoxyUwU
authored andcommitted
docs: mention RUSTC_ICE=0 to suppress ICE file
1 parent aec8216 commit e7998be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/compiler-debugging.md

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ new-symbol-mangling = false
4646
4747
You will need to rebuild the compiler after changing any configuration option.
4848

49+
## Suppressing the ICE file
50+
51+
By default, if rustc encounters an Internal Compiler Error (ICE) it will dump the ICE contents to an
52+
ICE file within the current working directory named `rustc-ice-<timestamp>-<pid>.txt`. If this is
53+
not desirable, you can prevent the ICE file from being created with `RUSTC_ICE=0`.
54+
4955
## `-Z` flags
5056

5157
The compiler has a bunch of `-Z` flags. These are unstable flags that are only

0 commit comments

Comments
 (0)