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

Use rustdoc JSON for API list, add functions that were missing #384

Merged
merged 3 commits into from
Jan 1, 2025

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jan 1, 2025

Rather than collecting a list of file names in libm-test/build.rs, just use a script to parse rustdoc's JSON output. This new method found a handful of functions that were not being tested because they are in the same file as other functions:

  • erfc
  • erfcf
  • y0
  • y0f
  • y1
  • y1f
  • yn
  • ynf

Update tests so these are now included.

We want to be able to adjust our configuration based on whether we are
running in CI, propagate this so our tests can use it.
@tgross35 tgross35 force-pushed the api-list branch 2 times, most recently from c3df7d8 to cee4646 Compare January 1, 2025 10:58
Rather than collecting a list of file names in `libm-test/build.rs`,
just use a script to parse rustdoc's JSON output.
Now that we are using rustdoc output to locate public functions, the
test is indicating a few that were missed since they don't have their
own function. Update everything to now include the following routines:

* `erfc`
* `erfcf`
* `y0`
* `y0f`
* `y1`
* `y1f`
* `yn`
* `ynf`
@tgross35 tgross35 merged commit f5d5cf8 into rust-lang:master Jan 1, 2025
30 checks passed
@tgross35 tgross35 deleted the api-list branch January 6, 2025 09:40
tgross35 added a commit that referenced this pull request Apr 18, 2025
Use `rustdoc` JSON for API list, add functions that were missing
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