about summary refs log tree commit diff
path: root/src/test/parse-fail/raw-byte-string-literals.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/raw-byte-string-literals.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/raw-byte-string-literals.rs')
-rw-r--r--src/test/parse-fail/raw-byte-string-literals.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/parse-fail/raw-byte-string-literals.rs b/src/test/parse-fail/raw-byte-string-literals.rs
index d6be8fce53e..2e33f98add6 100644
--- a/src/test/parse-fail/raw-byte-string-literals.rs
+++ b/src/test/parse-fail/raw-byte-string-literals.rs
@@ -8,10 +8,10 @@
 // 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
 
 
 pub fn main() {
-    br"é";  //~ raw byte string must be ASCII
-    br##~"a"~##;  //~ only `#` is allowed in raw string delimitation
+    br"é";  //~ ERROR raw byte string must be ASCII
+    br##~"a"~##;  //~ ERROR only `#` is allowed in raw string delimitation
 }