tests: remove ignore directives from tests that mention core/alloc/std spans.
This commit is contained in:
parent
f5892c00ac
commit
8deff18529
164 changed files with 229 additions and 585 deletions
|
|
@ -1,8 +1,3 @@
|
|||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
use self::Direction::{North, East, South, West};
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0004]: non-exhaustive patterns: `(true, false)` not covered
|
||||
--> $DIR/match-arm-statics-2.rs:22:11
|
||||
--> $DIR/match-arm-statics-2.rs:17:11
|
||||
|
|
||||
LL | match (true, false) {
|
||||
| ^^^^^^^^^^^^^ pattern `(true, false)` not covered
|
||||
|
|
@ -8,7 +8,7 @@ LL | match (true, false) {
|
|||
= note: the matched value is of type `(bool, bool)`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `Some(Some(West))` not covered
|
||||
--> $DIR/match-arm-statics-2.rs:34:11
|
||||
--> $DIR/match-arm-statics-2.rs:29:11
|
||||
|
|
||||
LL | match Some(Some(North)) {
|
||||
| ^^^^^^^^^^^^^^^^^ pattern `Some(Some(West))` not covered
|
||||
|
|
@ -25,7 +25,7 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
|
|||
= note: the matched value is of type `std::option::Option<std::option::Option<Direction>>`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `Foo { bar: Some(North), baz: NewBool(true) }` not covered
|
||||
--> $DIR/match-arm-statics-2.rs:53:11
|
||||
--> $DIR/match-arm-statics-2.rs:48:11
|
||||
|
|
||||
LL | / struct Foo {
|
||||
LL | | bar: Option<Direction>,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#![feature(never_type)]
|
||||
#![feature(exhaustive_patterns)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0004]: non-exhaustive patterns: `Some(Private { misc: true, .. })` not covered
|
||||
--> $DIR/match-privately-empty.rs:18:11
|
||||
--> $DIR/match-privately-empty.rs:13:11
|
||||
|
|
||||
LL | match private::DATA {
|
||||
| ^^^^^^^^^^^^^ pattern `Some(Private { misc: true, .. })` not covered
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#![allow(illegal_floating_point_literal_pattern)]
|
||||
|
||||
enum T { A, B }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0004]: non-exhaustive patterns: `A` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:12:11
|
||||
--> $DIR/non-exhaustive-match.rs:7:11
|
||||
|
|
||||
LL | enum T { A, B }
|
||||
| ---------------
|
||||
|
|
@ -14,7 +14,7 @@ LL | match x { T::B => { } }
|
|||
= note: the matched value is of type `T`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `false` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:13:11
|
||||
--> $DIR/non-exhaustive-match.rs:8:11
|
||||
|
|
||||
LL | match true {
|
||||
| ^^^^ pattern `false` not covered
|
||||
|
|
@ -23,7 +23,7 @@ LL | match true {
|
|||
= note: the matched value is of type `bool`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `Some(_)` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:16:11
|
||||
--> $DIR/non-exhaustive-match.rs:11:11
|
||||
|
|
||||
LL | match Some(10) {
|
||||
| ^^^^^^^^ pattern `Some(_)` not covered
|
||||
|
|
@ -37,7 +37,7 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
|
|||
= note: the matched value is of type `std::option::Option<i32>`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:19:11
|
||||
--> $DIR/non-exhaustive-match.rs:14:11
|
||||
|
|
||||
LL | match (2, 3, 4) {
|
||||
| ^^^^^^^^^ patterns `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered
|
||||
|
|
@ -46,7 +46,7 @@ LL | match (2, 3, 4) {
|
|||
= note: the matched value is of type `(i32, i32, i32)`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `(A, A)` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:23:11
|
||||
--> $DIR/non-exhaustive-match.rs:18:11
|
||||
|
|
||||
LL | match (T::A, T::A) {
|
||||
| ^^^^^^^^^^^^ pattern `(A, A)` not covered
|
||||
|
|
@ -55,7 +55,7 @@ LL | match (T::A, T::A) {
|
|||
= note: the matched value is of type `(T, T)`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `B` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:27:11
|
||||
--> $DIR/non-exhaustive-match.rs:22:11
|
||||
|
|
||||
LL | enum T { A, B }
|
||||
| ---------------
|
||||
|
|
@ -70,7 +70,7 @@ LL | match T::A {
|
|||
= note: the matched value is of type `T`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `[]` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:38:11
|
||||
--> $DIR/non-exhaustive-match.rs:33:11
|
||||
|
|
||||
LL | match *vec {
|
||||
| ^^^^ pattern `[]` not covered
|
||||
|
|
@ -79,7 +79,7 @@ LL | match *vec {
|
|||
= note: the matched value is of type `[std::option::Option<isize>]`
|
||||
|
||||
error[E0004]: non-exhaustive patterns: `[_, _, _, _, ..]` not covered
|
||||
--> $DIR/non-exhaustive-match.rs:51:11
|
||||
--> $DIR/non-exhaustive-match.rs:46:11
|
||||
|
|
||||
LL | match *vec {
|
||||
| ^^^^ pattern `[_, _, _, _, ..]` not covered
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue