about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-02-25 14:13:36 +0200
committerGitHub <noreply@github.com>2017-02-25 14:13:36 +0200
commit6ffc9e4a337dfd135b43648fb97e160b27f587fe (patch)
tree6936ccf224e14a64f1940a370fb19a824d78402f /src
parent69e596744ff99b250eaab311957fc32951f7d829 (diff)
parentb7b58ffdf44af8e0f12f64fd1278fc66f46b7bf8 (diff)
downloadrust-6ffc9e4a337dfd135b43648fb97e160b27f587fe.tar.gz
rust-6ffc9e4a337dfd135b43648fb97e160b27f587fe.zip
Rollup merge of #40031 - cynicaldevil:master, r=est31
Added test for inclusive_range_syntax in compile-fail test suite

Fixes #39059
r? @est31

Forgot to leave a comment on the issue, hopefully nobody else is working on this one!
Diffstat (limited to 'src')
-rw-r--r--src/test/parse-fail/range_inclusive_gate.rs2
-rw-r--r--src/tools/tidy/src/features.rs6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/test/parse-fail/range_inclusive_gate.rs b/src/test/parse-fail/range_inclusive_gate.rs
index 021b6dd3e26..30dc6fc5b20 100644
--- a/src/test/parse-fail/range_inclusive_gate.rs
+++ b/src/test/parse-fail/range_inclusive_gate.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// gate-test-inclusive_range_syntax
+
 // Make sure that #![feature(inclusive_range_syntax)] is required.
 
 // #![feature(inclusive_range_syntax, inclusive_range)]
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs
index 13f272517b1..2c81382bc9b 100644
--- a/src/tools/tidy/src/features.rs
+++ b/src/tools/tidy/src/features.rs
@@ -116,7 +116,8 @@ pub fn check(path: &Path, bad: &mut bool) {
     });
 
     super::walk_many(&[&path.join("test/compile-fail"),
-                       &path.join("test/compile-fail-fulldeps")],
+                       &path.join("test/compile-fail-fulldeps"),
+                       &path.join("test/parse-fail"),],
                      &mut |path| super::filter_dirs(path),
                      &mut |file| {
         let filename = file.file_name().unwrap().to_string_lossy();
@@ -169,8 +170,7 @@ pub fn check(path: &Path, bad: &mut bool) {
         "abi_ptx", "simd",
         "cfg_target_has_atomic",
         "unboxed_closures", "stmt_expr_attributes",
-        "cfg_target_thread_local", "unwind_attributes",
-        "inclusive_range_syntax"
+        "cfg_target_thread_local", "unwind_attributes"
     ];
 
     // Only check the number of lang features.