Uh oh!
There was an error while loading. Please reload this page.
rustdoc-json: Add test for field ordering. - #110435
Conversation
Uh oh!
There was an error while loading. Please reload this page.
61c7b1e to
9139cf1CompareGuillaumeGomez
commented
Apr 17, 2023
I suppose it needs to be checked for unions and enum struct variants as well? |
9139cf1 to
3242b4fCompareobi1kenobi
commented
Apr 18, 2023
This looks great! If you're open to adding one more thing, it would be great to assert that the order of variants in an enum is preserved as well. There are some sneaky non-obvious semver hazards there:
|
c0e0f4d to
006903eCompareGuillaumeGomez
commented
Aug 8, 2023
Sorry, I missed this one. Don't hesitate to ping me if approval is taking too long. ^^' Thanks! @bors r+ rollup |
bors
commented
Aug 8, 2023
…r=GuillaumeGomez rustdoc-json: Add test for field ordering. Inspired by [this on twitter](https://twitter.com/PredragGruevski/status/1647705616650043392), the ordering of fields really matters, so we should test we preserve it through json. r? rustdoc
matthiaskrgr
commented
Aug 8, 2023
Looks like this failed in #114627 (comment) ? |
006903e to
52a4e3bCompareGuillaumeGomez
commented
Aug 8, 2023
r=me once CI pass |
This comment has been minimized.
This comment has been minimized.
52a4e3b to
31ddea6CompareaDotInTheVoid
commented
Aug 9, 2023
@bors r=GuillaumeGomez |
bors
commented
Aug 9, 2023
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110435 (rustdoc-json: Add test for field ordering.) - rust-lang#111891 (feat: `riscv-interrupt-{m,s}` calling conventions) - rust-lang#114377 (test_get_dbpath_for_term(): handle non-utf8 paths (fix FIXME)) - rust-lang#114469 (Detect method not found on arbitrary self type with different mutability) - rust-lang#114587 (Convert Const to Allocation in smir) - rust-lang#114670 (Don't use `type_of` to determine if item has intrinsic shim) Failed merges: - rust-lang#114599 (Add impl trait declarations to SMIR) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110435 (rustdoc-json: Add test for field ordering.) - rust-lang#111891 (feat: `riscv-interrupt-{m,s}` calling conventions) - rust-lang#114377 (test_get_dbpath_for_term(): handle non-utf8 paths (fix FIXME)) - rust-lang#114469 (Detect method not found on arbitrary self type with different mutability) - rust-lang#114587 (Convert Const to Allocation in smir) - rust-lang#114670 (Don't use `type_of` to determine if item has intrinsic shim) Failed merges: - rust-lang#114599 (Add impl trait declarations to SMIR) r? `@ghost` `@rustbot` modify labels: rollup
Inspired by this on twitter, the ordering of fields really matters, so we should test we preserve it through json.
r? rustdoc