about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-08-31 15:58:57 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-06 13:00:26 +0200
commitdc124e4d0b794c42eca355723c61422f59ecd4c8 (patch)
treed455961f9b6dc8bf2396b69de5d2730209e463f9
parentf97eea1c10cd4f2fa6b87bab5bfd66a780fb6515 (diff)
downloadrust-dc124e4d0b794c42eca355723c61422f59ecd4c8.tar.gz
rust-dc124e4d0b794c42eca355723c61422f59ecd4c8.zip
Add `#![allow(stable_features)]` to ease review.
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.
-rw-r--r--src/test/ui/run-pass/consts/const-fn.rs2
-rw-r--r--src/test/ui/run-pass/issues/issue-29914.rs1
-rw-r--r--src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs2
-rw-r--r--src/test/ui/run-pass/panics/panic-handler-set-twice.rs1
4 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/run-pass/consts/const-fn.rs b/src/test/ui/run-pass/consts/const-fn.rs
index 9e17df4ad33..616429bf1df 100644
--- a/src/test/ui/run-pass/consts/const-fn.rs
+++ b/src/test/ui/run-pass/consts/const-fn.rs
@@ -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)]
diff --git a/src/test/ui/run-pass/issues/issue-29914.rs b/src/test/ui/run-pass/issues/issue-29914.rs
index 2fb63820ded..16f03592756 100644
--- a/src/test/ui/run-pass/issues/issue-29914.rs
+++ b/src/test/ui/run-pass/issues/issue-29914.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(stable_features)]
 
 #![feature(const_indexing)]
 
diff --git a/src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs b/src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs
index 44268d3b8e1..7e4bd4fb31b 100644
--- a/src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs
+++ b/src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs
@@ -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`.
 
diff --git a/src/test/ui/run-pass/panics/panic-handler-set-twice.rs b/src/test/ui/run-pass/panics/panic-handler-set-twice.rs
index 13b7c095059..340333b119e 100644
--- a/src/test/ui/run-pass/panics/panic-handler-set-twice.rs
+++ b/src/test/ui/run-pass/panics/panic-handler-set-twice.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(stable_features)]
 
 #![feature(std_panic)]