about summary refs log tree commit diff
path: root/src/test/parse-fail/trailing-plus-in-bounds.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-11-01 12:57:23 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-11-01 14:08:56 -0400
commit6236ee14af6da7ab3b7b34a97ab3afaebf5cc06d (patch)
tree996106c8df686274de5b903505c642f254d6f595 /src/test/parse-fail/trailing-plus-in-bounds.rs
parentad46ad6a77e6909b5ecab19825687e2c3a1e57f1 (diff)
downloadrust-6236ee14af6da7ab3b7b34a97ab3afaebf5cc06d.tar.gz
rust-6236ee14af6da7ab3b7b34a97ab3afaebf5cc06d.zip
add -Z continue-parse-after-error to parse-fail tests
The new handling fixed a latent bug in the parser error handling where
it would only abort after the second error (when configured to stop
after the first error). This is because the check for `error_count != 0`
was occuring before the increment. Since the increment is tied to the
`emit()` call now this no longer occurs.
Diffstat (limited to 'src/test/parse-fail/trailing-plus-in-bounds.rs')
-rw-r--r--src/test/parse-fail/trailing-plus-in-bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/parse-fail/trailing-plus-in-bounds.rs b/src/test/parse-fail/trailing-plus-in-bounds.rs
index 4abdbad9a03..44bb1f930c7 100644
--- a/src/test/parse-fail/trailing-plus-in-bounds.rs
+++ b/src/test/parse-fail/trailing-plus-in-bounds.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: -Z parse-only
+// compile-flags: -Z parse-only -Z continue-parse-after-error
 
 use std::fmt::Debug;