-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark some next-solver-behavior tests explicitly with revisions
- Loading branch information
1 parent
3830510
commit 01e6b43
Showing
17 changed files
with
168 additions
and
44 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
tests/ui/associated-inherent-types/bugs/wf-check-skipped.next.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `Foo::Bar<Vec<[u32]>>` is not well-formed | ||
--> $DIR/wf-check-skipped.rs:17:14 | ||
| | ||
LL | fn main() -> Foo::Bar::<Vec<[u32]>> {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
11 changes: 7 additions & 4 deletions
11
tests/ui/associated-inherent-types/bugs/wf-check-skipped.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
//@ known-bug: #100041 | ||
//@ check-pass | ||
//@ revisions: current next | ||
//@[next] compile-flags: -Znext-solver | ||
//@ ignore-compare-mode-next-solver (explicit revisions) | ||
//@[current] known-bug: #100041 | ||
//@[current] check-pass | ||
// FIXME(inherent_associated_types): This should fail. | ||
|
||
#![feature(inherent_associated_types)] | ||
#![allow(incomplete_features)] | ||
|
||
// FIXME(inherent_associated_types): This should fail. | ||
|
||
struct Foo; | ||
|
||
impl Foo { | ||
type Bar<T> = (); | ||
} | ||
|
||
fn main() -> Foo::Bar::<Vec<[u32]>> {} | ||
//[next]~^ ERROR the type `Foo::Bar<Vec<[u32]>>` is not well-formed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/ui/associated-types/defaults-unsound-62211-1.next.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing | ||
--> $DIR/defaults-unsound-62211-1.rs:52:5 | ||
| | ||
LL | drop(origin); | ||
| ^^^^^------^ | ||
| | | ||
| argument has type `<T as UncheckedCopy>::Output` | ||
| | ||
= note: use `let _ = ...` to ignore the expression or result | ||
= note: `#[warn(dropping_copy_types)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/ui/associated-types/defaults-unsound-62211-2.next.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing | ||
--> $DIR/defaults-unsound-62211-2.rs:52:5 | ||
| | ||
LL | drop(origin); | ||
| ^^^^^------^ | ||
| | | ||
| argument has type `<T as UncheckedCopy>::Output` | ||
| | ||
= note: use `let _ = ...` to ignore the expression or result | ||
= note: `#[warn(dropping_copy_types)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/ui/coherence/indirect-impl-for-trait-obj-coherence.next.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0284]: type annotations needed: cannot satisfy `<dyn Object<U, Output = T> as Object<U>>::Output == T` | ||
--> $DIR/indirect-impl-for-trait-obj-coherence.rs:25:41 | ||
| | ||
LL | foo::<dyn Object<U, Output = T>, U>(x) | ||
| ^ cannot satisfy `<dyn Object<U, Output = T> as Object<U>>::Output == T` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0284`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...gat-normalization-for-nested-goals.stderr → ...alization-for-nested-goals.current.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
tests/ui/generic-associated-types/assume-gat-normalization-for-nested-goals.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/ui/generic-associated-types/issue-90014-tait2.next-solver.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/issue-90014-tait2.rs:27:9 | ||
| | ||
LL | fn make_fut(&self) -> Box<dyn for<'a> Trait<'a, Thing = Fut<'a>>> { | ||
| ------------------------------------------- expected `Box<(dyn for<'a> Trait<'a, Thing = Fut<'a>> + 'static)>` because of return type | ||
LL | Box::new((async { () },)) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<dyn Trait<'a, Thing = Fut<'_>>>`, found `Box<(...,)>` | ||
| | ||
= note: expected struct `Box<(dyn for<'a> Trait<'a, Thing = Fut<'a>> + 'static)>` | ||
found struct `Box<({async block@$DIR/issue-90014-tait2.rs:27:19: 27:31},)>` | ||
= help: `({async block@$DIR/issue-90014-tait2.rs:27:19: 27:31},)` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
error: the type `<[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:19:10 | ||
| | ||
LL | const _: <[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: the type `<[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:19:10 | ||
| | ||
LL | const _: <[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | ||
|
||
error: the type `<Vec<str> as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:22:10 | ||
| | ||
LL | const _: <Vec<str> as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: the type `<Vec<str> as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:22:10 | ||
| | ||
LL | const _: <Vec<str> as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | ||
|
||
error: aborting due to 4 previous errors | ||
|
Oops, something went wrong.