Skip to content

Update Rust.gitignore to include rustc-ice files#4849

Open
demosdemon wants to merge 1 commit intogithub:mainfrom
demosdemon:patch-1
Open

Update Rust.gitignore to include rustc-ice files#4849
demosdemon wants to merge 1 commit intogithub:mainfrom
demosdemon:patch-1

Conversation

@demosdemon
Copy link
Copy Markdown

Add rustc internal compiler error stack trace files to ignore

Link to the application or project's homepage

https://rustc-dev-guide.rust-lang.org/compiler-debugging.html

Reasons for making this change

From below documentation:

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.

These contents do not need to be committed and should be ignored.

Links to documentation supporting these rule changes

https://rustc-dev-guide.rust-lang.org/compiler-debugging.html#suppressing-the-ice-file

Merge and Approval Steps

Add rustc internal compiler error stack trace files to ignore
Copilot AI review requested due to automatic review settings April 23, 2026 15:38
@demosdemon demosdemon requested a review from a team as a code owner April 23, 2026 15:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Rust .gitignore template to prevent Rust compiler Internal Compiler Error (ICE) dump files from being accidentally committed.

Changes:

  • Add an ignore rule for rustc-ice-*.txt files generated on ICEs
  • Document the purpose of the new ignore pattern in Rust.gitignore

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants