mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
tidy: Update pattern for checking for missing specification links. (#34552)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
bd37d5496d
commit
064569ff3c
3 changed files with 3 additions and 2 deletions
|
@ -29,6 +29,7 @@ impl GPUCanvasContext {
|
|||
}
|
||||
|
||||
impl GPUCanvasContextMethods<crate::DomTypeHolder> for GPUCanvasContext {
|
||||
/// <https://gpuweb.github.io/gpuweb/#dom-gpucanvascontext-canvas>
|
||||
fn Canvas(&self) -> UnionTypes::HTMLCanvasElementOrOffscreenCanvas {
|
||||
unimplemented!()
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue