Skip to content

Commit 06c599c

Browse files
committed
add -Znext-solver versions to tests
1 parent c9f4db1 commit 06c599c

17 files changed

+93
-8
lines changed

library/std/tests/field-projections-basic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next]: compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

library/std/tests/field-projections-clone-copy.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next]: compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

library/std/tests/field-projections-cyclic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next]: compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

tests/ui/field_projections/deny-drop-impl.stderr renamed to tests/ui/field_projections/deny-drop-impl.next.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
2-
--> $DIR/deny-drop-impl.rs:8:15
2+
--> $DIR/deny-drop-impl.rs:10:15
33
|
44
LL | impl Drop for field_of!(MyStruct, 0) {
55
| ^^^^^^^^^^^^^^^^^^^^^^ must be a struct, enum, or union in the current crate
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
2+
--> $DIR/deny-drop-impl.rs:10:15
3+
|
4+
LL | impl Drop for field_of!(MyStruct, 0) {
5+
| ^^^^^^^^^^^^^^^^^^^^^^ must be a struct, enum, or union in the current crate
6+
|
7+
= note: this error originates in the macro `field_of` (in Nightly builds, run with -Z macro-backtrace for more info)
8+
9+
error: aborting due to 1 previous error
10+
11+
For more information about this error, try `rustc --explain E0120`.

tests/ui/field_projections/deny-drop-impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next] compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

tests/ui/field_projections/deny-manual-impl.stderr renamed to tests/ui/field_projections/deny-manual-impl.next.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0322]: explicit impls for the `UnalignedField` trait are not permitted
2-
--> $DIR/deny-manual-impl.rs:9:1
2+
--> $DIR/deny-manual-impl.rs:11:1
33
|
44
LL | unsafe impl UnalignedField for MyStruct {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of `UnalignedField` not allowed
66

77
error[E0322]: explicit impls for the `Field` trait are not permitted
8-
--> $DIR/deny-manual-impl.rs:16:1
8+
--> $DIR/deny-manual-impl.rs:18:1
99
|
1010
LL | unsafe impl Field for field_of!(MyStruct, 0) {}
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of `Field` not allowed

tests/ui/field_projections/deny-manual-impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next] compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

tests/ui/field_projections/deny-private-field.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next] compile-flags: -Znext-solver
13
#![allow(incomplete_features)]
24
#![feature(field_projections)]
35

tests/ui/field_projections/enum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: old next
2+
//@ [next] compile-flags: -Znext-solver
13
//@ run-fail
24
#![allow(incomplete_features)]
35
#![feature(field_projections)]

0 commit comments

Comments
 (0)