Skip to content

Commit 45915ac

Browse files
committed
Merge pull request #3971 from Ten0/fix_missing_skip_insertion_attribute_in_unknown_attribute_error
Fix missing attributes in "unknown attribute" error
1 parent 26b8803 commit 45915ac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

diesel_compile_tests/tests/fail/derive/unknown_attribute.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: unknown attribute, expected one of `aggregate`, `not_sized`, `foreign_der
44
5 | #[diesel(what = true)]
55
| ^^^^
66

7-
error: unknown attribute, expected one of `embed`, `column_name`, `sql_type`, `serialize_as`, `deserialize_as`, `select_expression`, `select_expression_type`
7+
error: unknown attribute, expected one of `embed`, `skip_insertion`, `column_name`, `sql_type`, `treat_none_as_default_value`, `treat_none_as_null`, `serialize_as`, `deserialize_as`, `select_expression`, `select_expression_type`
88
--> tests/fail/derive/unknown_attribute.rs:12:14
99
|
1010
12 | #[diesel(what = true)]

diesel_derives/src/attrs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ impl Parse for FieldAttr {
147147
&name,
148148
&[
149149
"embed",
150+
"skip_insertion",
150151
"column_name",
151152
"sql_type",
153+
"treat_none_as_default_value",
154+
"treat_none_as_null",
152155
"serialize_as",
153156
"deserialize_as",
154157
"select_expression",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy