about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2014-06-18 15:27:49 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2014-06-18 16:44:21 +0200
commit4c2a8bbc097b4ba0c317c07a095238aed128899d (patch)
tree111f55c381581dcb4befaa9cde0d354c624e07a2
parent3ddb987f45c9126009b1c20cd1cc108b9de9c734 (diff)
Adapt test case to match current set of emitted warnings. (or lack
thereof.)

PR 14739 injected the new message that this removes from one test
case: borrowck-vec-pattern-loan-from-mut.rs

When reviewing the test case, I was not able to convince myself that
the error message was a legitimate thing to start emitting.  Niko did
not see an obvious reason for it either, so I am going to remove it
and wait for someone (maybe Cameron Zwarich) to explain to me why we
should be emitting it.
-rw-r--r--src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs b/src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs
index ff029ce624c..393ec8b0b1b 100644
--- a/src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs
+++ b/src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs
@@ -12,7 +12,7 @@ fn a() {
     let mut v = vec!(1, 2, 3);
     let vb: &mut [int] = v.as_mut_slice();
     match vb {
-        [_a, ..tail] => { //~ ERROR cannot use `vb[..]` because it was mutably borrowed
+        [_a, ..tail] => {
             v.push(tail[0] + tail[1]); //~ ERROR cannot borrow
         }
         _ => {}