servo: Merge #8041 - Introduce trait Castable (from nox:castable); r=jdm

Removes all those messy FooCast structures in InheritTypes.rs.

Source-Repo: https://github.com/servo/servo
Source-Revision: 674589c370d978f543e71f995d58c5b28e6e9842
This commit is contained in:
Anthony Ramine
2015-10-21 07:57:32 -06:00
parent f51f42da73
commit db09beb657
84 changed files with 1193 additions and 1511 deletions

View File

@@ -305,13 +305,13 @@ def check_rust(file_name, contents):
if match:
yield (idx + 1, "missing space before {")
# ignored cases like {} and }}
match = re.search(r"[^\s{}]}", line)
# ignored cases like {}, }` and }}
match = re.search(r"[^\s{}]}[^`]", line)
if match and not (line.startswith("use") or line.startswith("pub use")):
yield (idx + 1, "missing space before }")
# ignored cases like {} and {{
match = re.search(r"{[^\s{}]", line)
# ignored cases like {}, `{ and {{
match = re.search(r"[^`]{[^\s{}]", line)
if match and not (line.startswith("use") or line.startswith("pub use")):
yield (idx + 1, "missing space after {")