Remove unecessary -Z continue-parse-after-error
from tests
This commit is contained in:
parent
aee7012fab
commit
860dce794c
2
src/test/ui/extern/extern-const.fixed
vendored
2
src/test/ui/extern/extern-const.fixed
vendored
@ -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;
|
||||
|
||||
|
2
src/test/ui/extern/extern-const.rs
vendored
2
src/test/ui/extern/extern-const.rs
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user