Skip to content

chore: ignore trybuild-generated stderr snapshots - #55

Open
rodonile wants to merge 1 commit into
network-analytics:mainfrom
rodonile:ignore-trybuild
Open

chore: ignore trybuild-generated stderr snapshots#55
rodonile wants to merge 1 commit into
network-analytics:mainfrom
rodonile:ignore-trybuild

Conversation

@rodonile

Copy link
Copy Markdown
Member

Running TRYBUILD=overwrite cargo test (as documented in the README) regenerates .stderr
snapshot files for the compile_fail macro tests in crates/serde-macros/tests/trybuild/.
These files have never been committed to the repo, and shouldn't be: compiler error output
varies across rustc channels, and CI already runs trybuild in overwrite mode across
nightly/beta/stable (and macOS nightly), regenerating them fresh each run.

Reason

Without this, every local test run leaves untracked .stderr files showing up in
git status.

Changelog

  • Add **/tests/trybuild/*.stderr to .gitignore.

`TRYBUILD=overwrite cargo test` (as documented in the README) rewrites
`.stderr` snapshots under crates/serde-macros/tests/trybuild/. These
have never been committed since compiler error text varies across
rustc channels (CI runs trybuild in overwrite mode on nightly/beta/
stable), so ignore them instead of leaving them as recurring untracked
files.
@rodonile
rodonile requested review from riccardo-negri and ustorbeck and a lite review from Copilot September 10, 2026 09:49
@rodonile rodonile self-assigned this Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rodonile
rodonile enabled auto-merge (rebase) September 10, 2026 09:50
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