-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use alias-relate to structurally normalize in the solver
- Loading branch information
Showing
14 changed files
with
116 additions
and
108 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
error[E0282]: type annotations needed | ||
--> $DIR/recursive-coroutine-boxed.rs:10:23 | ||
| | ||
LL | let mut gen = Box::pin(foo()); | ||
| ^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Box` | ||
LL | | ||
LL | let mut r = gen.as_mut().resume(()); | ||
| ------ type must be known at this point | ||
| | ||
help: consider specifying the generic argument | ||
| | ||
LL | let mut gen = Box::<T>::pin(foo()); | ||
| +++++ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0282`. |
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/impl-trait/two_tait_defining_each_other2.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
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
5 changes: 3 additions & 2 deletions
5
tests/ui/traits/next-solver/deduce-closure-signature-after-normalization.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
14 changes: 14 additions & 0 deletions
14
tests/ui/traits/next-solver/deduce-closure-signature-after-normalization.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,14 @@ | ||
error[E0282]: type annotations needed | ||
--> $DIR/deduce-closure-signature-after-normalization.rs:6:10 | ||
| | ||
LL | |x| x.count_ones() | ||
| ^ - type must be known at this point | ||
| | ||
help: consider giving this closure parameter an explicit type | ||
| | ||
LL | |x: /* Type */| x.count_ones() | ||
| ++++++++++++ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0282`. |
13 changes: 3 additions & 10 deletions
13
tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.is_send.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,16 +1,9 @@ | ||
error[E0283]: type annotations needed: cannot satisfy `Foo: Send` | ||
error[E0284]: type annotations needed: cannot satisfy `Foo == _` | ||
--> $DIR/dont-type_of-tait-in-defining-scope.rs:15:18 | ||
| | ||
LL | needs_send::<Foo>(); | ||
| ^^^ | ||
| | ||
= note: cannot satisfy `Foo: Send` | ||
note: required by a bound in `needs_send` | ||
--> $DIR/dont-type_of-tait-in-defining-scope.rs:12:18 | ||
| | ||
LL | fn needs_send<T: Send>() {} | ||
| ^^^^ required by this bound in `needs_send` | ||
| ^^^ cannot satisfy `Foo == _` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0283`. | ||
For more information about this error, try `rustc --explain E0284`. |
13 changes: 3 additions & 10 deletions
13
tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.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,16 +1,9 @@ | ||
error[E0283]: type annotations needed: cannot satisfy `Foo: Send` | ||
error[E0284]: type annotations needed: cannot satisfy `Foo == _` | ||
--> $DIR/dont-type_of-tait-in-defining-scope.rs:15:18 | ||
| | ||
LL | needs_send::<Foo>(); | ||
| ^^^ | ||
| | ||
= note: cannot satisfy `Foo: Send` | ||
note: required by a bound in `needs_send` | ||
--> $DIR/dont-type_of-tait-in-defining-scope.rs:12:18 | ||
| | ||
LL | fn needs_send<T: Send>() {} | ||
| ^^^^ required by this bound in `needs_send` | ||
| ^^^ cannot satisfy `Foo == _` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0283`. | ||
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