Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed May 17, 2020
1 parent 6a72ba4 commit 9da8a5b
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<<<<<<< HEAD
//~^ WARN the feature `const_generics` is incomplete
#![feature(lazy_normalization_consts)]
//~^ WARN the feature `lazy_normalization_consts` is incomplete
=======
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
>>>>>>> merge lazy_normalization_consts into const_generics
//~^ WARN the feature `const_generics` is incomplete

#[allow(dead_code)]
struct ArithArrayLen<const N: usize>([u32; 0 + N]);
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/const-generics/issues/issue-61336-1.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(lazy_normalization_consts)]
//~^ WARN the feature `lazy_normalization_consts` is incomplete
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/const-generics/issues/issue-61336-1.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-61336-1.rs:1:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

warning: 1 warning emitted

2 changes: 0 additions & 2 deletions src/test/ui/const-generics/issues/issue-61336-2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(lazy_normalization_consts)]
//~^ WARN the feature `lazy_normalization_consts` is incomplete
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/const-generics/issues/issue-61336.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
#![feature(lazy_normalization_consts)]
//~^ WARN the feature `lazy_normalization_consts` is incomplete

fn f<T: Copy, const N: usize>(x: T) -> [T; N] {
[x; N]
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/const-generics/issues/issue-61747.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
#![feature(lazy_normalization_consts)]
//~^ WARN the feature `lazy_normalization_consts` is incomplete

struct Const<const N: usize>;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/const-generics/issues/issue-61935.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// check-pass

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
//~^ WARN the feature `const_generics` is incomplete

trait Foo {}

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/const-generics/issues/issue-61935.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-61935.rs:3:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/const-generics/issues/issue-67185-1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// check-pass

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
//~^ WARN the feature `const_generics` is incomplete

trait Baz {
type Quaks;
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/const-generics/issues/issue-67185-1.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-67185-1.rs:3:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

warning: 1 warning emitted

2 changes: 1 addition & 1 deletion src/test/ui/const-generics/issues/issue-67185-2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
//~^ WARN the feature `const_generics` is incomplete

trait Baz {
type Quaks;
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/const-generics/issues/issue-67185-2.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-67185-2.rs:1:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
--> $DIR/issue-67185-2.rs:15:1
Expand Down

0 comments on commit 9da8a5b

Please sign in to comment.