aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-09-23 22:16:57 -0500
committerGitHub <noreply@github.com>2016-09-23 22:16:57 -0500
commit2ba804e6db52637fbe23fbecfd0e65b4db1a49e2 (patch)
tree3ee26fc1116d7c4e50dd0385640ad6c8d613f43c /python/tidy/servo_tidy_tests/rust_tidy.rs
parent28ebab43987b0f9829a03a3c043e621cae2db1fe (diff)
parent0ac212afb18c98ea929368e9ccf21101e7a8921c (diff)
downloadservo-2ba804e6db52637fbe23fbecfd0e65b4db1a49e2.tar.gz
servo-2ba804e6db52637fbe23fbecfd0e65b4db1a49e2.zip
Auto merge of #13361 - Mylainos:issue-13350, r=Wafflespeanut
Report tidy error for space after ( <!-- Please describe your changes on the following line: --> Add report in tidy for code which have a space after the `(` like `some_function( argument)` --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13350 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13361) <!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r--python/tidy/servo_tidy_tests/rust_tidy.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs
index 9bc37070613..358fce3a082 100644
--- a/python/tidy/servo_tidy_tests/rust_tidy.rs
+++ b/python/tidy/servo_tidy_tests/rust_tidy.rs
@@ -49,4 +49,12 @@ impl test {
}
}
+ type Text_Fun3 = fn( i32) -> i32;
+
+ fn test_fun3<Text_Fun3>( y: Text_Fun3) {
+ test_fun( 1);
+ }
+
+ // Should not be triggered
+ macro_rules! test_macro ( ( $( $fun:ident = $flag:ident ; )* ) => ());
}