Skip to content

test(dist/manifest): use the reordered fixture in manifest_serialized_with_sorted_keys#4822

Merged
rami3l merged 1 commit intorust-lang:mainfrom
cachebag:master
Apr 21, 2026
Merged

test(dist/manifest): use the reordered fixture in manifest_serialized_with_sorted_keys#4822
rami3l merged 1 commit intorust-lang:mainfrom
cachebag:master

Conversation

@cachebag
Copy link
Copy Markdown
Contributor

The regression test for #4715 was meant to parse two TOML manifests with packages declared in different orders and assert that their serialized forms are identical, proving keys are emitted in deterministic (sorted) order. However, EXAMPLE_REORDERED was include_str!-ing the same file as EXAMPLE, so the assertion held trivially and the test never actually exercised the sort-on-serialize behavior.

This PR points it at the existing channel-rust-nightly-example-reordered.toml fixture so the test can catch any future regression that breaks deterministic manifest serialization.

Copy link
Copy Markdown
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

Must've been a typo on my end when introducing the new fixture; nice catch!

View changes since this review

@rami3l rami3l added this pull request to the merge queue Apr 21, 2026
Merged via the queue into rust-lang:main with commit 247b429 Apr 21, 2026
29 checks passed
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