mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Remove all xfail-stage0 directives
While it is still technically possible to test stage 0, it is not part of any of the main testing rules and maintaining xfail-stage0 is a chore. Nobody should worry about how tests fare in stage0.
This commit is contained in:
parent
92a4c0cee7
commit
c53402846e
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, init(i
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: expecting mod
|
||||
|
||||
#[attr = "val"];
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expecting ]
|
||||
|
||||
// asterisk is bogus
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected item
|
||||
|
||||
fn f() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected item
|
||||
|
||||
#[foo = "bar"]
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected item
|
||||
|
||||
mod m {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected item
|
||||
|
||||
fn f() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected item
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: some control paths may return
|
||||
fn f() -> ! { 3 }
|
||||
fn main(){}
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:+ cannot be applied to type `{x: bool}`
|
||||
|
||||
fn main() { let x = {x: true}; x += {x: false}; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:+ cannot be applied to type `{x: bool}`
|
||||
|
||||
fn main() { let x = {x: true} + {x: false}; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:^ cannot be applied to type `str`
|
||||
|
||||
fn main() { let x = "a" ^ "b"; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:|| cannot be applied to type `f32`
|
||||
|
||||
fn main() { let x = 1.0_f32 || 2.0_f32; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:&& cannot be applied to type `int`
|
||||
|
||||
fn main() { let x = 1 && 2; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:* cannot be applied to type `bool`
|
||||
|
||||
fn main() { let x = true * false; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:>> cannot be applied to type `port[int]`
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:- cannot be applied to type `obj
|
||||
|
||||
fn main() { let x = obj () { } - obj () { }; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:mismatched types
|
||||
// issue #500
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern: mismatched types
|
||||
// xfail-stage0
|
||||
|
||||
// Make sure that fn-to-block coercion isn't incorrectly lifted over
|
||||
// other tycons.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern: non-copyable
|
||||
// xfail-stage0
|
||||
|
||||
fn lol(f: &block() ) -> block() { ret f; }
|
||||
fn main() { let i = 8; let f = lol(block () { log_err i; }); f(); }
|
@ -1,5 +1,4 @@
|
||||
// error-pattern: Unsatisfied precondition constraint
|
||||
// xfail-stage0
|
||||
|
||||
fn force(f: &block() ) { f(); }
|
||||
fn main() { let x: int; force(block () { log_err x; }); }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Break outside a loop
|
||||
fn main() {
|
||||
let pth = break;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:spawning functions with type params not allowed
|
||||
fn main() {
|
||||
fn echo[T](c: chan[T], oc: chan[chan[T]]) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:'swap' is glob-imported from multiple different modules
|
||||
// issue #482
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, init(y
|
||||
fn main() {
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, even(y
|
||||
|
||||
fn print_even(y: int) : even(y) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:duplicate meta item `name`
|
||||
|
||||
#[link(name = "test", name)];
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expecting [, found fmt
|
||||
|
||||
// Don't know how to deal with a syntax extension appearing after an
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: literal
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: literal
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:not enough arguments
|
||||
|
||||
use std;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:too many arguments
|
||||
|
||||
use std;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:only valid in signed #fmt conversion
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:only valid in signed #fmt conversion
|
||||
|
||||
fn main() {
|
||||
|
@ -1,3 +1,2 @@
|
||||
// error-pattern:expected str but found vec
|
||||
// xfail-stage0
|
||||
fn main() { fail []; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:mismatched types
|
||||
|
||||
fn f() -> int { true }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected fn() but found fn(int)
|
||||
|
||||
fn main() {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern:Unsatisfied precondition
|
||||
// xfail-stage0
|
||||
|
||||
fn main() {
|
||||
// Typestate should work even in a lambda. we should reject this program.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// error-pattern:Unsatisfied precondition
|
||||
// xfail-stage0
|
||||
|
||||
fn main() { let j = fn () -> int { let i: int; ret i; }(); log_err j; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Unsatisfied precondition constraint
|
||||
pred even(x: uint) -> bool {
|
||||
if x < 2u {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:mismatched types
|
||||
// issue #513
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,5 +1,4 @@
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// error-pattern: illegal recursive type
|
||||
|
||||
type x = vec[x];
|
||||
|
@ -1,5 +1,4 @@
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// error-pattern: Dynamically sized arguments must be passed by alias
|
||||
|
||||
mod foo {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
//error-pattern:is an expr, expected an identifier
|
||||
fn main() {
|
||||
#macro([#mylambda(x, body), {fn f(x: int) -> int {ret body}; f}]);
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
//error-pattern:no clauses match
|
||||
|
||||
fn main() {
|
||||
|
@ -1,3 +1,2 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Wrong type in main function: found fn() -> char
|
||||
fn main() -> char { }
|
@ -1,3 +1,2 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Wrong type in main function: found fn(
|
||||
fn main(foo: {x: int, y: int}) { }
|
@ -1,3 +1,2 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Main function not found
|
||||
fn mian() { }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Attempt to use a type argument out of scope
|
||||
fn hd[U](v: &vec[U]) -> U {
|
||||
fn hd1(w: &vec[U]) -> U { ret w.(0); }
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern:Unsatisfied precondition constraint (for example, le(b, d
|
||||
// xfail-stage0
|
||||
use std;
|
||||
import std::str::*;
|
||||
import std::uint::*;
|
||||
|
@ -1,5 +1,4 @@
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// error-pattern: Non-predicate in constraint: lt
|
||||
|
||||
fn f(a: int, b: int) : lt(a,b) { }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, init(i
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, lt(a, b)
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: lt(a, c)
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, lt(a, b)
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected int but found bool
|
||||
|
||||
fn main() {
|
||||
|
@ -1,5 +1,3 @@
|
||||
//xfail-stage0
|
||||
|
||||
// error-pattern:self-call in non-object context
|
||||
|
||||
// Fix for issue #707.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// error-pattern: unresolved name: lt
|
||||
|
||||
fn f(a: int, b: int) : lt(a,b) { }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: mismatched types
|
||||
|
||||
fn f(x: int) -> int { ret x; }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Wrong number of type arguments
|
||||
|
||||
tag quux[T] { }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Attempt to use a type argument out of scope
|
||||
fn foo[T](x: &T) {
|
||||
fn bar(f: fn(&T) -> T ) { }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:expected bool but found int
|
||||
// issue #516
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:illegal recursive type
|
||||
type t1 = {foo: int, foolish: t1};
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern:Unsatisfied precondition constraint (for example, init(bar
|
||||
// xfail-stage0
|
||||
fn main() {
|
||||
let bar;
|
||||
fn baz(x: int) { }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:mutable alias to a variable that roots another alias
|
||||
|
||||
fn f(a: &int, b: &mutable int) -> int { b += 1; ret a + b; }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:duplicate meta item `name`
|
||||
|
||||
use std(name = "std", name = "nonstd");
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:attempted field access on type vec[int]
|
||||
// issue #367
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, init(y
|
||||
fn main() {
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern: Unsatisfied precondition constraint (for example, even(y
|
||||
|
||||
fn print_even(y: int) : even(y) { log y; }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern:assignment to immutable field
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:assigning to immutable obj field
|
||||
obj objy(x: int) {
|
||||
fn foo() { x = 5; }
|
||||
|
@ -1,3 +1,2 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:assignment to immutable vec content
|
||||
fn main() { let v: vec[int] = [1, 2, 3]; v.(1) = 4; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:meep
|
||||
fn f(a: int, b: int, c: @int) { fail "moop"; }
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:woe
|
||||
fn f(a: int) { log a; }
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:moop
|
||||
use std;
|
||||
import std::uint;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:meh
|
||||
use std;
|
||||
import std::str;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:moop
|
||||
use std;
|
||||
import std::uint;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:Number is odd
|
||||
pred even(x: uint) -> bool {
|
||||
if x < 2u {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// error-pattern:meep
|
||||
fn echo[T](c: chan[T], oc: chan[chan[T]]) {
|
||||
// Tests that the type argument in port gets
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
// xfail-stage0
|
||||
// error-pattern:Predicate lt(b, a) failed
|
||||
fn f(a: int, b: int) { }
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
|
||||
|
||||
// Tests that trans treats the rhs of pth's decl
|
||||
// as a _|_-typed thing, not a str-typed thing
|
||||
// xfail-stage0
|
||||
// error-pattern:bye
|
||||
fn main() { let pth = fail "bye"; let rs: {t: str} = {t: pth}; }
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,7 +1,3 @@
|
||||
|
||||
|
||||
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,5 +1,3 @@
|
||||
// xfail-stage0
|
||||
|
||||
tag option[T] { some(T); none; }
|
||||
|
||||
type r[T] = {mutable v: (option[T])[]};
|
||||
|
@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
// xfail-stage0
|
||||
use std;
|
||||
import std::option::*;
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
|
||||
|
||||
|
||||
// xfail-stage0
|
||||
tag maybe[T] { nothing; just(T); }
|
||||
|
||||
fn foo(x: maybe[int]) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
@ -1,4 +1,3 @@
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
@ -1,7 +1,3 @@
|
||||
|
||||
|
||||
|
||||
// xfail-stage0
|
||||
fn f() -> int { { ret 3; } }
|
||||
|
||||
fn main() { assert (f() == 3); }
|
@ -1,8 +1,3 @@
|
||||
|
||||
|
||||
|
||||
// xfail-stage0
|
||||
|
||||
// Issue 483 - Assignment expressions result in nil
|
||||
fn test_assign() {
|
||||
let x: int;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user