From 74a5aef6b8e897951f927adcc30d0b6d390f6dad Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 31 Aug 2018 15:58:57 +0200 Subject: [PATCH] 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. --- src/test/ui/run-pass/consts/const-fn.rs | 2 ++ src/test/ui/run-pass/issues/issue-29914.rs | 1 + src/test/ui/run-pass/iterators/iter-cloned-type-inference.rs | 2 ++ src/test/ui/run-pass/panics/panic-handler-set-twice.rs | 1 + 4 files changed, 6 insertions(+) diff --git a/src/test/ui/run-pass/consts/const-fn.rs b/src/test/ui/run-pass/consts/const-fn.rs index 9e17df4ad3335..616429bf1df32 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 2fb63820dede9..16f0359275679 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 44268d3b8e1a8..7e4bd4fb31b73 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 13b7c09505973..340333b119e60 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)]