Skip to content

Commit

Permalink
Add #![allow(stable_features)] to ease review.
Browse files Browse the repository at this point in the history
That is, opting to ignore stable `#![feature(..)]`, under my theory
that a reviewer would prefer as much stuff to be bucketed under "ah
another `#![allow(..)]` here." as possible.
  • Loading branch information
pnkfelix committed Sep 3, 2018
1 parent c2d2732 commit 74a5aef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/consts/const-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(stable_features)]

// A very basic test of const fn functionality.

#![feature(const_fn, const_indexing)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/issues/issue-29914.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(stable_features)]

#![feature(const_indexing)]

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(stable_features)]

// Test to see that the element type of .cloned() can be inferred
// properly. Previously this would fail to deduce the type of `sum`.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/panics/panic-handler-set-twice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(stable_features)]

#![feature(std_panic)]

Expand Down

0 comments on commit 74a5aef

Please sign in to comment.