summary refs log tree commit diff
path: root/src/test/run-pass/for-loop-while
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-25 23:51:35 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-26 13:10:54 +0200
commitc9d9cc6e4441bb10ce2ca313fda68e7f05d7bc46 (patch)
tree9c4f739dbeec60bf819e30b6430f3fbdb20958cf /src/test/run-pass/for-loop-while
parent2080474c75b833d2d666291839d8893cc0999de2 (diff)
downloadrust-c9d9cc6e4441bb10ce2ca313fda68e7f05d7bc46.tar.gz
rust-c9d9cc6e4441bb10ce2ca313fda68e7f05d7bc46.zip
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with clean stderr again.
Most were added mechanically.
Diffstat (limited to 'src/test/run-pass/for-loop-while')
-rw-r--r--src/test/run-pass/for-loop-while/break-value.rs1
-rw-r--r--src/test/run-pass/for-loop-while/for-loop-goofiness.rs1
-rw-r--r--src/test/run-pass/for-loop-while/for-loop-no-std.rs1
-rw-r--r--src/test/run-pass/for-loop-while/label_break_value.rs2
-rw-r--r--src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs2
-rw-r--r--src/test/run-pass/for-loop-while/liveness-move-in-loop.rs1
-rw-r--r--src/test/run-pass/for-loop-while/loop-break-value.rs1
-rw-r--r--src/test/run-pass/for-loop-while/loop-diverges.rs1
-rw-r--r--src/test/run-pass/for-loop-while/while-label.rs1
-rw-r--r--src/test/run-pass/for-loop-while/while-loop-constraints-2.rs1
10 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-pass/for-loop-while/break-value.rs b/src/test/run-pass/for-loop-while/break-value.rs
index c77e9a209dd..8811d313994 100644
--- a/src/test/run-pass/for-loop-while/break-value.rs
+++ b/src/test/run-pass/for-loop-while/break-value.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 // pretty-expanded FIXME #23616
 
 fn int_id(x: isize) -> isize { return x; }
diff --git a/src/test/run-pass/for-loop-while/for-loop-goofiness.rs b/src/test/run-pass/for-loop-while/for-loop-goofiness.rs
index ade51c4abbc..bcc5ad7b7ad 100644
--- a/src/test/run-pass/for-loop-while/for-loop-goofiness.rs
+++ b/src/test/run-pass/for-loop-while/for-loop-goofiness.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 enum BogusOption<T> {
     None,
diff --git a/src/test/run-pass/for-loop-while/for-loop-no-std.rs b/src/test/run-pass/for-loop-while/for-loop-no-std.rs
index dc03a500f8c..c91cd115dfb 100644
--- a/src/test/run-pass/for-loop-while/for-loop-no-std.rs
+++ b/src/test/run-pass/for-loop-while/for-loop-no-std.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_imports)]
 #![feature(lang_items, start, alloc)]
 #![no_std]
 
diff --git a/src/test/run-pass/for-loop-while/label_break_value.rs b/src/test/run-pass/for-loop-while/label_break_value.rs
index 831b23b03c3..687253baa65 100644
--- a/src/test/run-pass/for-loop-while/label_break_value.rs
+++ b/src/test/run-pass/for-loop-while/label_break_value.rs
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 #![feature(label_break_value)]
 
 // Test control flow to follow label_break_value semantics
diff --git a/src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs b/src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs
index fd0b234c7b3..57d846d6557 100644
--- a/src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs
+++ b/src/test/run-pass/for-loop-while/liveness-assign-imm-local-after-loop.rs
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
+#![allow(unused_assignments)]
 // pretty-expanded FIXME #23616
 
 #![allow(unreachable_code)]
diff --git a/src/test/run-pass/for-loop-while/liveness-move-in-loop.rs b/src/test/run-pass/for-loop-while/liveness-move-in-loop.rs
index b5da1c1e221..4b148eba9d9 100644
--- a/src/test/run-pass/for-loop-while/liveness-move-in-loop.rs
+++ b/src/test/run-pass/for-loop-while/liveness-move-in-loop.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(dead_code)]
 
 // pretty-expanded FIXME #23616
 
diff --git a/src/test/run-pass/for-loop-while/loop-break-value.rs b/src/test/run-pass/for-loop-while/loop-break-value.rs
index 9f23b4e93e6..2038df4e2a4 100644
--- a/src/test/run-pass/for-loop-while/loop-break-value.rs
+++ b/src/test/run-pass/for-loop-while/loop-break-value.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 #![feature(never_type)]
 
 #[allow(unused)]
diff --git a/src/test/run-pass/for-loop-while/loop-diverges.rs b/src/test/run-pass/for-loop-while/loop-diverges.rs
index 86ff4c05438..47e5e71c623 100644
--- a/src/test/run-pass/for-loop-while/loop-diverges.rs
+++ b/src/test/run-pass/for-loop-while/loop-diverges.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_parens)]
 // pretty-expanded FIXME #23616
 
 /* Make sure a loop{} can be the tailexpr in the body
diff --git a/src/test/run-pass/for-loop-while/while-label.rs b/src/test/run-pass/for-loop-while/while-label.rs
index da0cf295ba0..218aea5ee1d 100644
--- a/src/test/run-pass/for-loop-while/while-label.rs
+++ b/src/test/run-pass/for-loop-while/while-label.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unreachable_code)]
 
 
 pub fn main() {
diff --git a/src/test/run-pass/for-loop-while/while-loop-constraints-2.rs b/src/test/run-pass/for-loop-while/while-loop-constraints-2.rs
index 802f7be543a..2cdf273f3e3 100644
--- a/src/test/run-pass/for-loop-while/while-loop-constraints-2.rs
+++ b/src/test/run-pass/for-loop-while/while-loop-constraints-2.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // run-pass
+#![allow(unused_assignments)]
 #![allow(unused_variables)]
 
 pub fn main() {