about summary refs log tree commit diff
path: root/src/test/ui/for-loop-while
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-12-08 06:02:54 +0000
committerbors <bors@rust-lang.org>2019-12-08 06:02:54 +0000
commite862c01aadb2d029864f7bb256cf6c85bbb5d7e4 (patch)
treed1c98f5b876a0d8f092f7003cab372b5dbe00f16 /src/test/ui/for-loop-while
parentde17464b14e503edca6625daa9cd4c338ffafee2 (diff)
parent32e27c2c9a11e47289ac36101f583e08e8bc6f5e (diff)
downloadrust-e862c01aadb2d029864f7bb256cf6c85bbb5d7e4.tar.gz
rust-e862c01aadb2d029864f7bb256cf6c85bbb5d7e4.zip
Auto merge of #67140 - Centril:rollup-h7rbw7y, r=Centril
Rollup of 5 pull requests

Successful merges:

 - #66325 (Change unused_labels from allow to warn)
 - #66991 (Cleanup BodyCache)
 - #67101 (use `#[allow(unused_attributes)]` to paper over incr.comp problem)
 - #67114 (Make `ForeignItem` an alias of `Item`.)
 - #67129 (Fixes typo)

Failed merges:

 - #66886 (Remove the borrow check::nll submodule)

r? @ghost
Diffstat (limited to 'src/test/ui/for-loop-while')
-rw-r--r--src/test/ui/for-loop-while/label_break_value.rs2
-rw-r--r--src/test/ui/for-loop-while/loop-label-shadowing.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/for-loop-while/label_break_value.rs b/src/test/ui/for-loop-while/label_break_value.rs
index eb5be7742e0..18930ac811e 100644
--- a/src/test/ui/for-loop-while/label_break_value.rs
+++ b/src/test/ui/for-loop-while/label_break_value.rs
@@ -77,7 +77,7 @@ fn label_break_mixed(v: u32) -> u32 {
         }
         // Labeled breaking an outer loop still works
         'd: loop {
-            'e: {
+            {
                 if v == r {
                     break 'b;
                 }
diff --git a/src/test/ui/for-loop-while/loop-label-shadowing.rs b/src/test/ui/for-loop-while/loop-label-shadowing.rs
index acb53e254bb..9bedde67b78 100644
--- a/src/test/ui/for-loop-while/loop-label-shadowing.rs
+++ b/src/test/ui/for-loop-while/loop-label-shadowing.rs
@@ -5,6 +5,7 @@
 
 fn main() {
     let mut foo = Vec::new();
+    #[allow(unused_labels)]
     'foo: for i in &[1, 2, 3] {
         foo.push(*i);
     }