Skip to content

Commit 860dce7

Browse files
committed
Remove unecessary -Z continue-parse-after-error from tests
1 parent aee7012 commit 860dce7

39 files changed

+39
-39
lines changed

src/test/ui/extern/extern-const.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// run-rustfix
88
// ignore-wasm32 no external library to link to.
9-
// compile-flags: -g -Z continue-parse-after-error
9+
// compile-flags: -g
1010
#![feature(rustc_private)]
1111
extern crate libc;
1212

src/test/ui/extern/extern-const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// run-rustfix
88
// ignore-wasm32 no external library to link to.
9-
// compile-flags: -g -Z continue-parse-after-error
9+
// compile-flags: -g
1010
#![feature(rustc_private)]
1111
extern crate libc;
1212

src/test/ui/fmt/format-string-error-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22
// ignore-tidy-tab
33

44
fn main() {

src/test/ui/impl-trait/impl-trait-plus-priority.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z parse-only -Z continue-parse-after-error
1+
// compile-flags: -Z parse-only
22

33
fn f() -> impl A + {} // OK
44
fn f() -> impl A + B {} // OK

src/test/ui/issues/issue-28433.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
enum Bird {
44
pub Duck,

src/test/ui/issues/issue-36638.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct Foo<Self>(Self);
44
//~^ ERROR expected identifier, found keyword `Self`

src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
// Test you can't use a higher-ranked trait bound inside of a qualified
44
// path (just won't parse).

src/test/ui/parser/bad-lit-suffixes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33

44
extern

src/test/ui/parser/bounds-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z parse-only -Z continue-parse-after-error
1+
// compile-flags: -Z parse-only
22

33
struct S<
44
T: 'a + Tr, // OK

src/test/ui/parser/doc-after-struct-field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct X {
44
a: u8 /** document a */,

src/test/ui/parser/doc-before-fn-rbrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
/// document

src/test/ui/parser/doc-before-identifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn /// document
44
foo() {}

src/test/ui/parser/doc-before-mod-rbrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
mod Foo {
44
/// document

src/test/ui/parser/doc-before-struct-rbrace-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct X {
44
a: u8,

src/test/ui/parser/doc-before-struct-rbrace-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct X {
44
a: u8 /// document

src/test/ui/parser/issue-17904-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct Bar<T> { x: T } where T: Copy //~ ERROR expected item, found keyword `where`
44

src/test/ui/parser/issue-17904.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct Baz<U> where U: Eq(U); //This is parsed as the new Fn* style parenthesis syntax.
44
struct Baz<U> where U: Eq(U) -> R; // Notice this parses as well.

src/test/ui/parser/issue-32214.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
trait Trait<T> { type Item; }
44

src/test/ui/parser/issue-32505.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
pub fn test() {
44
foo(|_|) //~ ERROR expected expression, found `)`

src/test/ui/parser/lex-bad-binary-literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
0b121; //~ ERROR invalid digit for a base 2 literal

src/test/ui/parser/lex-bad-numeric-literals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
0o1.0; //~ ERROR: octal float literal is not supported

src/test/ui/parser/lex-bad-octal-literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
0o18; //~ ERROR invalid digit for a base 8 literal

src/test/ui/parser/macro/macro-incomplete-parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
macro_rules! ignored_item {
44
() => {

src/test/ui/parser/new-unicode-escapes-4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
pub fn main() {
44
let s = "\u{lol}";

src/test/ui/parser/no-unsafe-self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
trait A {
44
fn foo(*mut self); //~ ERROR cannot pass `self` by raw pointer

src/test/ui/parser/range_inclusive_dotdotdot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
// Make sure that inclusive ranges with `...` syntax don't parse.
44

src/test/ui/parser/raw-byte-string-literals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33

44
pub fn main() {

src/test/ui/parser/recover-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
enum Test {

src/test/ui/parser/recover-enum2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
enum Test {

src/test/ui/parser/recover-struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
fn main() {
44
struct Test {

src/test/ui/parser/removed-syntax-field-let.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
struct S {
44
let foo: (),

src/test/ui/parser/trailing-plus-in-bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// compile-pass
2-
// compile-flags: -Z continue-parse-after-error
2+
33

44
#![feature(box_syntax)]
55
#![allow(bare_trait_objects)]

src/test/ui/parser/trait-bounds-not-on-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
trait Foo {
44
}

src/test/ui/parser/trait-object-bad-parens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
#![feature(optin_builtin_traits)]
44
#![allow(bare_trait_objects)]

src/test/ui/parser/trait-object-lifetime-parens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
#![allow(bare_trait_objects)]
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
44
//~^ ERROR: expected one of `::`, `;`, or `as`, found `foo`

src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
// Empty predicate list is OK
44
fn equal1<T>(_: &T, _: &T) -> bool where {

src/test/ui/self/self_type_keyword.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z continue-parse-after-error
1+
22

33
mod foo {
44
struct Self;

src/test/ui/traits/trait-object-vs-lifetime-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// A few contrived examples where lifetime should (or should not) be parsed as an object type.
22
// Lifetimes parsed as types are still rejected later by semantic checks.
33

4-
// compile-flags: -Z continue-parse-after-error
4+
55

66
// `'static` is a lifetime, `'static +` is a type, `'a` is a type
77
fn g() where

0 commit comments

Comments
 (0)