Skip to content

Commit

Permalink
Rollup merge of rust-lang#40031 - cynicaldevil:master, r=est31
Browse files Browse the repository at this point in the history
Added test for inclusive_range_syntax in compile-fail test suite

Fixes rust-lang#39059
r? @est31

Forgot to leave a comment on the issue, hopefully nobody else is working on this one!
  • Loading branch information
eddyb authored Feb 25, 2017
2 parents 6b07e88 + b7b58ff commit e7a9acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/test/parse-fail/range_inclusive_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
6 changes: 3 additions & 3 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e7a9acb

Please sign in to comment.