about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-28 03:46:25 +0000
committerbors <bors@rust-lang.org>2019-01-28 03:46:25 +0000
commitc32515566fbf8961ecce60eb71a472962da99e8c (patch)
tree89d7ecb96b9187f1458901dce45adaab87200aa2 /src
parentec504def3665b0bc2ec80bede6dba2c603928315 (diff)
parente0bc0ba281b0efd67a3afc5f9b9dd36fab479800 (diff)
downloadrust-c32515566fbf8961ecce60eb71a472962da99e8c.tar.gz
rust-c32515566fbf8961ecce60eb71a472962da99e8c.zip
Auto merge of #57910 - Mark-Simulacrum:delete-test, r=petrochenkov
Delete long-ignored and useless test

cc @pnkfelix (https://github.com/rust-lang/rust/issues/13745#issuecomment-457599109)

r? @petrochenkov as you re-enabled this test in 21d67c45a3d032b3f0d421e6f882f11ea43d1f9c, https://github.com/rust-lang/rust/pull/55236
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/parser/regions-out-of-scope-slice.rs4
-rw-r--r--src/test/ui/parser/regions-out-of-scope-slice.stderr2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/parser/regions-out-of-scope-slice.rs b/src/test/ui/parser/regions-out-of-scope-slice.rs
index 2cc9b1ac45c..21369d0be61 100644
--- a/src/test/ui/parser/regions-out-of-scope-slice.rs
+++ b/src/test/ui/parser/regions-out-of-scope-slice.rs
@@ -1,8 +1,6 @@
-// blk region isn't supported in the front-end
+// This basically tests the parser's recovery on `'blk` in the wrong place.
 
 fn foo(cond: bool) {
-    // Here we will infer a type that uses the
-    // region of the if stmt then block, but in the scope:
     let mut x;
 
     if cond {
diff --git a/src/test/ui/parser/regions-out-of-scope-slice.stderr b/src/test/ui/parser/regions-out-of-scope-slice.stderr
index 026d14ca413..cd56dfa6aeb 100644
--- a/src/test/ui/parser/regions-out-of-scope-slice.stderr
+++ b/src/test/ui/parser/regions-out-of-scope-slice.stderr
@@ -1,5 +1,5 @@
 error: expected `:`, found `[`
-  --> $DIR/regions-out-of-scope-slice.rs:9:19
+  --> $DIR/regions-out-of-scope-slice.rs:7:19
    |
 LL |         x = &'blk [1,2,3]; //~ ERROR expected `:`, found `[`
    |                   ^ expected `:`