diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-28 22:05:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 22:05:32 +0200 |
| commit | 7103bbb86a6233d53a777f2348a8dbbdea58bc58 (patch) | |
| tree | a9ee297c1a241aeec113e84f7af5524a69dcd8e9 /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | 02cb521cbf54f43f9ee006c6e1e8b62fc811db0d (diff) | |
| parent | 00b64f8851e9f56239a48e4306efd597d7be972c (diff) | |
| download | rust-7103bbb86a6233d53a777f2348a8dbbdea58bc58.tar.gz rust-7103bbb86a6233d53a777f2348a8dbbdea58bc58.zip | |
Rollup merge of #143110 - yotamofek:pr/tidy-sort-for-symbols, r=nnethercote
Use tidy to sort `sym::*` items
Use tidy to sort the symbols in the invocation of `symbols!`, instead of implementing the ordering check inside the proc macro.
(asked `````@nnethercote````` about this on zulip, he didn't have any reservations about making this change)
This has a couple of benefits:
- tidy's "version sort" (thanks to rust-lang/rust#141311 !) is nicer than the naive-cmp sort, so, e.g. `AtomicI{8, 16, 32, 64, 128}` are properly sorted by bit width.
- consistency with the rest of the repo
- allows us to remove a bit of order-verifying code from the `symbols!` proc macro impl
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
