update-api-list: Match subdirectories within arch

This commit is contained in:
Trevor Gross 2025-05-01 18:41:05 +00:00 committed by Trevor Gross
parent 1c5f8cc72d
commit 2705f686b5

View file

@ -123,7 +123,9 @@ class Crate:
# A lot of the `arch` module is often configured out so doesn't show up in docs. Use
# string matching as a fallback.
for fname in glob("libm/src/math/arch/**.rs", root_dir=ROOT_DIR):
for fname in glob(
"libm/src/math/arch/**/*.rs", root_dir=ROOT_DIR, recursive=True
):
contents = (ROOT_DIR.joinpath(fname)).read_text()
for name in self.public_functions: