diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-05-01 18:41:05 +0000 |
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-05-03 14:17:49 -0400 |
| commit | 2705f686b556c179fd56f2f496ed69eb7b06c97d (patch) | |
| tree | dad6d687b9a086fd006a88a208a2a837ed8a2986 | |
| parent | 1c5f8cc72df4b82f2265737c9e86a4e4365cae8c (diff) | |
| download | rust-2705f686b556c179fd56f2f496ed69eb7b06c97d.tar.gz rust-2705f686b556c179fd56f2f496ed69eb7b06c97d.zip | |
update-api-list: Match subdirectories within arch
| -rwxr-xr-x | library/compiler-builtins/etc/update-api-list.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/compiler-builtins/etc/update-api-list.py b/library/compiler-builtins/etc/update-api-list.py index 0770a8b20fb..28ff22f4cbb 100755 --- a/library/compiler-builtins/etc/update-api-list.py +++ b/library/compiler-builtins/etc/update-api-list.py @@ -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: |
