diff options
author | Josh Matthews <josh@joshmatthews.net> | 2024-12-11 08:36:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 13:36:57 +0000 |
commit | 064569ff3c160da20e6d48189a03c3ef83224101 (patch) | |
tree | 7cef4575c175e3d471d187cd3880c3d4a898d3f5 /python/tidy | |
parent | bd37d5496d747c7106b2d8d73dca1212421d82b4 (diff) | |
download | servo-064569ff3c160da20e6d48189a03c3ef83224101.tar.gz servo-064569ff3c160da20e6d48189a03c3ef83224101.zip |
tidy: Update pattern for checking for missing specification links. (#34552)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'python/tidy')
-rw-r--r-- | python/tidy/tests/speclink.rs | 2 | ||||
-rw-r--r-- | python/tidy/tidy.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/tidy/tests/speclink.rs b/python/tidy/tests/speclink.rs index 499953e7bda..b9b01ebaa46 100644 --- a/python/tidy/tests/speclink.rs +++ b/python/tidy/tests/speclink.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -impl SpecLinkMethods for SpecLink { +impl SpecLinkMethods<crate::DomTypeHolder> for SpecLink { amacro!("Macros inside impls should trigger spec checks.") // Method declarations should trigger spec checks. diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py index 55bbba0513e..4494f975ca5 100644 --- a/python/tidy/tidy.py +++ b/python/tidy/tidy.py @@ -905,7 +905,7 @@ def check_spec(file_name, lines): brace_count = 0 in_impl = False - pattern = "impl {}Methods for {} {{".format(file_name, file_name) + pattern = "impl {}Methods<crate::DomTypeHolder> for {} {{".format(file_name, file_name) for idx, line in enumerate(map(lambda line: line.decode("utf-8"), lines)): if "// check-tidy: no specs after this line" in line: |