forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#104378 - compiler-errors:chalk-up, r=jackh726
Bump chalk to v0.87 1. Removes `ReEmpty` from chalk 2. Adds support for the `std::marker::Tuple` trait
- Loading branch information
Showing
9 changed files
with
32 additions
and
125 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
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,80 +1,22 @@ | ||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:7:5 | ||
| | ||
LL | t(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:13:5 | ||
| | ||
LL | b(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:17:5 | ||
| | ||
LL | c(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:18:5 | ||
error[E0382]: borrow of moved value: `b` | ||
--> $DIR/closure.rs:27:5 | ||
| | ||
LL | let mut c = b; | ||
| - value moved here | ||
... | ||
LL | b(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:24:5 | ||
| | ||
LL | b(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:28:5 | ||
| | ||
LL | c(); | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
|
||
error[E0277]: `()` is not a tuple | ||
--> $DIR/closure.rs:29:5 | ||
| ^ value borrowed here after move | ||
| | ||
LL | b(); // FIXME: reenable when this is fixed ~ ERROR | ||
| ^^^ the trait `Tuple` is not implemented for `()` | ||
note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `a` out of its environment | ||
--> $DIR/closure.rs:20:9 | ||
| | ||
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | ||
LL | a = 1; | ||
| ^ | ||
help: consider mutably borrowing `b` | ||
| | ||
LL | fn main() -> () where (): Tuple { | ||
| +++++++++++++++ | ||
LL | let mut c = &mut b; | ||
| ++++ | ||
|
||
error: aborting due to 7 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. | ||
For more information about this error, try `rustc --explain E0382`. |
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 was deleted.
Oops, something went wrong.