Added test for inclusive_range_syntax in compile-fail test suite

This commit is contained in:
Nikhil Shagrithaya 2017-02-22 19:49:21 +05:30
parent 3954c70537
commit b7b58ffdf4
2 changed files with 5 additions and 3 deletions
src
test/parse-fail
tools/tidy/src

@ -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)]

@ -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.