-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report better WF obligation leaf obligations in new solver
- Loading branch information
1 parent
97bf25c
commit d5e9e39
Showing
16 changed files
with
119 additions
and
93 deletions.
There are no files selected for viewing
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: 6 additions & 3 deletions
9
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
error: the type `Foo::Bar<Vec<[u32]>>` is not well-formed | ||
--> $DIR/wf-check-skipped.rs:17:14 | ||
error[E0277]: the size for values of type `[u32]` cannot be known at compilation time | ||
--> $DIR/wf-check-skipped.rs:17:25 | ||
| | ||
LL | fn main() -> Foo::Bar::<Vec<[u32]>> {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^ doesn't have a size known at compile-time | ||
| | ||
= help: the trait `Sized` is not implemented for `[u32]` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
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
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
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
4 changes: 2 additions & 2 deletions
4
tests/ui/traits/next-solver/member-constraints-in-root-universe.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
8 changes: 0 additions & 8 deletions
8
tests/ui/traits/next-solver/member-constraints-in-root-universe.stderr
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,30 +1,37 @@ | ||
error: the type `<[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:19:10 | ||
error[E0277]: the size for values of type `[[[[[u8]]]]]` cannot be known at compilation time | ||
--> $DIR/wf-normalization-sized.rs:19:11 | ||
| | ||
LL | const _: <[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^ doesn't have a size known at compile-time | ||
| | ||
= help: the trait `Sized` is not implemented for `[[[[[u8]]]]]` | ||
|
||
error: the type `<[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:19:10 | ||
error[E0277]: the size for values of type `[[[[[u8]]]]]` cannot be known at compilation time | ||
--> $DIR/wf-normalization-sized.rs:19:11 | ||
| | ||
LL | const _: <[[[[[[u8]]]]]] as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^ doesn't have a size known at compile-time | ||
| | ||
= help: the trait `Sized` is not implemented for `[[[[[u8]]]]]` | ||
= 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 | ||
error[E0277]: the size for values of type `str` cannot be known at compilation time | ||
--> $DIR/wf-normalization-sized.rs:22:11 | ||
| | ||
LL | const _: <Vec<str> as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^ doesn't have a size known at compile-time | ||
| | ||
= help: the trait `Sized` is not implemented for `str` | ||
|
||
error: the type `<Vec<str> as WellUnformed>::RequestNormalize` is not well-formed | ||
--> $DIR/wf-normalization-sized.rs:22:10 | ||
error[E0277]: the size for values of type `str` cannot be known at compilation time | ||
--> $DIR/wf-normalization-sized.rs:22:11 | ||
| | ||
LL | const _: <Vec<str> as WellUnformed>::RequestNormalize = (); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^ doesn't have a size known at compile-time | ||
| | ||
= help: the trait `Sized` is not implemented for `str` | ||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | ||
|
||
error: aborting due to 4 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
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