-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a proof tree visitor to refine the Obligation for error reporting
- Loading branch information
1 parent
12d2e7c
commit 4246ba0
Showing
32 changed files
with
406 additions
and
69 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
20 changes: 14 additions & 6 deletions
20
tests/ui/traits/next-solver/auto-with-drop_tracking_mir.fail.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,18 +1,26 @@ | ||
error[E0277]: `impl Future<Output = ()>` cannot be sent between threads safely | ||
error: future cannot be sent between threads safely | ||
--> $DIR/auto-with-drop_tracking_mir.rs:25:13 | ||
| | ||
LL | is_send(foo()); | ||
| ------- ^^^^^ `impl Future<Output = ()>` cannot be sent between threads safely | ||
| | | ||
| required by a bound introduced by this call | ||
| ^^^^^ future returned by `foo` is not `Send` | ||
| | ||
= help: the trait `Send` is not implemented for `impl Future<Output = ()>` | ||
= help: the trait `Sync` is not implemented for `impl Future<Output = ()>`, which is required by `impl Future<Output = ()>: Send` | ||
note: future is not `Send` as this value is used across an await | ||
--> $DIR/auto-with-drop_tracking_mir.rs:16:11 | ||
| | ||
LL | let x = &NotSync; | ||
| - has type `&NotSync` which is not `Send` | ||
LL | bar().await; | ||
| ^^^^^ await occurs here, with `x` maybe used later | ||
note: required by a bound in `is_send` | ||
--> $DIR/auto-with-drop_tracking_mir.rs:24:24 | ||
| | ||
LL | fn is_send(_: impl Send) {} | ||
| ^^^^ required by this bound in `is_send` | ||
help: consider dereferencing here | ||
| | ||
LL | is_send(*foo()); | ||
| + | ||
|
||
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
7 changes: 4 additions & 3 deletions
7
tests/ui/traits/next-solver/builtin-fn-must-return-sized.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: 3 additions & 3 deletions
6
tests/ui/traits/next-solver/coherence/coherence-fulfill-overflow.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
9 changes: 8 additions & 1 deletion
9
tests/ui/traits/next-solver/cycles/coinduction/fixpoint-exponential-growth.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
17 changes: 14 additions & 3 deletions
17
tests/ui/traits/next-solver/cycles/coinduction/incompleteness-unstable-result.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
Oops, something went wrong.