Update Rust.gitignore to include rustc-ice files#4770
Open
alycda wants to merge 1 commit intogithub:mainfrom
Open
Update Rust.gitignore to include rustc-ice files#4770alycda wants to merge 1 commit intogithub:mainfrom
alycda wants to merge 1 commit intogithub:mainfrom
Conversation
Add pattern to ignore Rust compiler crash reports
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an ignore pattern for Rust compiler Internal Compiler Error (ICE) reports to the Rust.gitignore template. These crash reports are automatically generated when the compiler itself panics and should not be committed to version control.
Key changes:
- Added
rustc-ice-*.txtpattern to ignore compiler crash reports - Included explanatory comment documenting the purpose of ICE files
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add pattern to ignore Rust compiler crash reports
Reasons for making this change
The Rust compiler (
rustc) automatically generates Internal Compiler Error (ICE) report files when it encounters a bug in the compiler itself. These files are created in the working directory with the patternrustc-ice-<timestamp>-<pid>.txtand should not be committed to version control as they are diagnostic crash reports specific to individual developer environments.These ICE files are generated automatically during development when the compiler panics, often during:
cargo buildorcargo checkSince these are compiler crash reports (not build artifacts or developer-generated files), they should be ignored by default in Rust projects to prevent accidental commits.
Links to documentation supporting these rule changes
ice_path_with_configfunction around lines 1720-1750)The filename pattern is:
rustc-ice-{timestamp}-{pid}.txtwhere timestamp uses format%Y-%m-%dT%H_%M_%Sand pid is the process ID.Merge and Approval Steps