Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce trait Castable #8041

Merged
merged 5 commits into from Oct 21, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Make test-tidy ignore braces surrounded by backticks

  • Loading branch information
nox committed Oct 21, 2015
commit bd363b009db8e5e233cd862aef5c8d497495a10e
@@ -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 {")

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.