Skip to content

Commit b7b58ff

Browse files
committed
Added test for inclusive_range_syntax in compile-fail test suite
1 parent 3954c70 commit b7b58ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/parse-fail/range_inclusive_gate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// gate-test-inclusive_range_syntax
12+
1113
// Make sure that #![feature(inclusive_range_syntax)] is required.
1214

1315
// #![feature(inclusive_range_syntax, inclusive_range)]

src/tools/tidy/src/features.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ pub fn check(path: &Path, bad: &mut bool) {
116116
});
117117

118118
super::walk_many(&[&path.join("test/compile-fail"),
119-
&path.join("test/compile-fail-fulldeps")],
119+
&path.join("test/compile-fail-fulldeps"),
120+
&path.join("test/parse-fail"),],
120121
&mut |path| super::filter_dirs(path),
121122
&mut |file| {
122123
let filename = file.file_name().unwrap().to_string_lossy();
@@ -169,8 +170,7 @@ pub fn check(path: &Path, bad: &mut bool) {
169170
"abi_ptx", "simd",
170171
"cfg_target_has_atomic",
171172
"unboxed_closures", "stmt_expr_attributes",
172-
"cfg_target_thread_local", "unwind_attributes",
173-
"inclusive_range_syntax"
173+
"cfg_target_thread_local", "unwind_attributes"
174174
];
175175

176176
// Only check the number of lang features.

0 commit comments

Comments
 (0)