-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
660 additions
and
589 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
diesel_compile_tests/tests/fail/derive/as_changeset_struct_with_only_primary_key.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,19 +1,19 @@ | ||
error: Deriving `AsChangeset` on a structure that only contains primary keys isn't supported. | ||
help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`. | ||
note: `#[derive(AsChangeset)]` never changes the primary key of a row. | ||
--> tests/fail/derive/as_changeset_struct_with_only_primary_key.rs:18:10 | ||
| | ||
18 | #[derive(AsChangeset)] | ||
| ^^^^^^^^^^^ | ||
| | ||
= help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`. | ||
= note: `#[derive(AsChangeset)]` never changes the primary key of a row. | ||
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: Deriving `AsChangeset` on a structure that only contains primary keys isn't supported. | ||
help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`. | ||
note: `#[derive(AsChangeset)]` never changes the primary key of a row. | ||
--> tests/fail/derive/as_changeset_struct_with_only_primary_key.rs:24:10 | ||
| | ||
24 | #[derive(AsChangeset)] | ||
| ^^^^^^^^^^^ | ||
| | ||
= help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`. | ||
= note: `#[derive(AsChangeset)]` never changes the primary key of a row. | ||
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info) |
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
3 changes: 1 addition & 2 deletions
3
diesel_compile_tests/tests/fail/derive/bad_deserialize_as.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
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
3 changes: 1 addition & 2 deletions
3
diesel_compile_tests/tests/fail/derive/bad_serialize_as.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.