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

This commit is contained in:
Esteban Küber 2019-05-30 18:55:09 -07:00
parent aee7012fab
commit 860dce794c
39 changed files with 39 additions and 39 deletions

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -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).

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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`

View File

@ -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.

View File

@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error
trait Trait<T> { type Item; }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error
// Make sure that inclusive ranges with `...` syntax don't parse.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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`

View File

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

View File

@ -1,4 +1,4 @@
// compile-flags: -Z continue-parse-after-error
mod foo {
struct Self;

View File

@ -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