Skip to content
Permalink
Browse files

Remove unecessary `-Z continue-parse-after-error` from tests

  • Loading branch information...
estebank committed May 31, 2019
1 parent aee7012 commit 860dce794ce1856418bec278a13565b84d0d4d79
Showing with 39 additions and 39 deletions.
  1. +1 −1 src/test/ui/extern/extern-const.fixed
  2. +1 −1 src/test/ui/extern/extern-const.rs
  3. +1 −1 src/test/ui/fmt/format-string-error-2.rs
  4. +1 −1 src/test/ui/impl-trait/impl-trait-plus-priority.rs
  5. +1 −1 src/test/ui/issues/issue-28433.rs
  6. +1 −1 src/test/ui/issues/issue-36638.rs
  7. +1 −1 src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs
  8. +1 −1 src/test/ui/parser/bad-lit-suffixes.rs
  9. +1 −1 src/test/ui/parser/bounds-type.rs
  10. +1 −1 src/test/ui/parser/doc-after-struct-field.rs
  11. +1 −1 src/test/ui/parser/doc-before-fn-rbrace.rs
  12. +1 −1 src/test/ui/parser/doc-before-identifier.rs
  13. +1 −1 src/test/ui/parser/doc-before-mod-rbrace.rs
  14. +1 −1 src/test/ui/parser/doc-before-struct-rbrace-1.rs
  15. +1 −1 src/test/ui/parser/doc-before-struct-rbrace-2.rs
  16. +1 −1 src/test/ui/parser/issue-17904-2.rs
  17. +1 −1 src/test/ui/parser/issue-17904.rs
  18. +1 −1 src/test/ui/parser/issue-32214.rs
  19. +1 −1 src/test/ui/parser/issue-32505.rs
  20. +1 −1 src/test/ui/parser/lex-bad-binary-literal.rs
  21. +1 −1 src/test/ui/parser/lex-bad-numeric-literals.rs
  22. +1 −1 src/test/ui/parser/lex-bad-octal-literal.rs
  23. +1 −1 src/test/ui/parser/macro/macro-incomplete-parse.rs
  24. +1 −1 src/test/ui/parser/new-unicode-escapes-4.rs
  25. +1 −1 src/test/ui/parser/no-unsafe-self.rs
  26. +1 −1 src/test/ui/parser/range_inclusive_dotdotdot.rs
  27. +1 −1 src/test/ui/parser/raw-byte-string-literals.rs
  28. +1 −1 src/test/ui/parser/recover-enum.rs
  29. +1 −1 src/test/ui/parser/recover-enum2.rs
  30. +1 −1 src/test/ui/parser/recover-struct.rs
  31. +1 −1 src/test/ui/parser/removed-syntax-field-let.rs
  32. +1 −1 src/test/ui/parser/trailing-plus-in-bounds.rs
  33. +1 −1 src/test/ui/parser/trait-bounds-not-on-impl.rs
  34. +1 −1 src/test/ui/parser/trait-object-bad-parens.rs
  35. +1 −1 src/test/ui/parser/trait-object-lifetime-parens.rs
  36. +1 −1 src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs
  37. +1 −1 src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs
  38. +1 −1 src/test/ui/self/self_type_keyword.rs
  39. +1 −1 src/test/ui/traits/trait-object-vs-lifetime-2.rs
@@ -6,7 +6,7 @@

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

@@ -6,7 +6,7 @@

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

@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error

// ignore-tidy-tab

fn main() {
@@ -1,4 +1,4 @@
// compile-flags: -Z parse-only -Z continue-parse-after-error
// compile-flags: -Z parse-only

fn f() -> impl A + {} // OK
fn f() -> impl A + B {} // OK
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


enum Bird {
pub Duck,
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct Foo<Self>(Self);
//~^ ERROR expected identifier, found keyword `Self`
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


// Test you can't use a higher-ranked trait bound inside of a qualified
// path (just won't parse).
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error



extern
@@ -1,4 +1,4 @@
// compile-flags: -Z parse-only -Z continue-parse-after-error
// compile-flags: -Z parse-only

struct S<
T: 'a + Tr, // OK
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct X {
a: u8 /** document a */,
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
/// document
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn /// document
foo() {}
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


mod Foo {
/// document
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct X {
a: u8,
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct X {
a: u8 /// document
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


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

@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct Baz<U> where U: Eq(U); //This is parsed as the new Fn* style parenthesis syntax.
struct Baz<U> where U: Eq(U) -> R; // Notice this parses as well.
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


trait Trait<T> { type Item; }

@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


pub fn test() {
foo(|_|) //~ ERROR expected expression, found `)`
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
0b121; //~ ERROR invalid digit for a base 2 literal
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
0o1.0; //~ ERROR: octal float literal is not supported
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
0o18; //~ ERROR invalid digit for a base 8 literal
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


macro_rules! ignored_item {
() => {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


pub fn main() {
let s = "\u{lol}";
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


trait A {
fn foo(*mut self); //~ ERROR cannot pass `self` by raw pointer
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


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

@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error



pub fn main() {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
enum Test {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
enum Test {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


fn main() {
struct Test {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


struct S {
let foo: (),
@@ -1,5 +1,5 @@
// compile-pass
// compile-flags: -Z continue-parse-after-error


#![feature(box_syntax)]
#![allow(bare_trait_objects)]
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


trait Foo {
}
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


#![feature(optin_builtin_traits)]
#![allow(bare_trait_objects)]
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


#![allow(bare_trait_objects)]

@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
//~^ ERROR: expected one of `::`, `;`, or `as`, found `foo`
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


// Empty predicate list is OK
fn equal1<T>(_: &T, _: &T) -> bool where {
@@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error


mod foo {
struct Self;
@@ -1,7 +1,7 @@
// A few contrived examples where lifetime should (or should not) be parsed as an object type.
// Lifetimes parsed as types are still rejected later by semantic checks.

// compile-flags: -Z continue-parse-after-error


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

0 comments on commit 860dce7

Please sign in to comment.
You can’t perform that action at this time.