Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Add checks via annotation that lists are sorted or exhaustive #489

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Feb 5, 2025

This crate has a handful of lists that need to list all API and can't easily be verified. Additionally, some longer lists should be kept sorted so they are easier to look through. Resolve both of these by adding a check in update-api-list.py that looks for annotations and verifies the contents are as expected.

@tgross35 tgross35 force-pushed the sort-everything branch 2 times, most recently from 036423c to 1c303d4 Compare February 5, 2025 15:10
This is just a collection of all functions and should not trigger
extensive tests when changed.
This crate has a handful of lists that need to list all API and can't
easily be verified. Additionally, some longer lists should be kept
sorted so they are easier to look through. Resolve both of these by
adding a check in `update-api-list.py` that looks for annotations and
verifies the contents are as expected.

Annotations are `verify-apilist-start`, `verify-apilist-end`,
`verify-sorted-start`, and `verify-sorted-end`.

This includes fixes for anything that did not meet the criteria.
@tgross35 tgross35 enabled auto-merge February 5, 2025 15:20
@tgross35 tgross35 merged commit 0492f2e into rust-lang:master Feb 5, 2025
35 checks passed
@tgross35 tgross35 deleted the sort-everything branch February 11, 2025 08:00
tgross35 added a commit that referenced this pull request Apr 18, 2025
Add checks via annotation that lists are sorted or exhaustive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant