Merge branch 'master' into pr/atty303/1349

This commit is contained in:
Evan Almloff committed 2023-10-31 13:39:20 -05:00
commit 77d53df532
147 files changed
+2408 -6154

No files matched your search

+8
View File
@@ -935,6 +935,14 @@ Finally, call `.build()` to create the instance of `{name}`.
}
pub fn field_impl(&self, field: &FieldInfo) -> Result<TokenStream, Error> {
let FieldInfo {
name: field_name,
ty: field_type,
..
} = field;
if *field_name == "key" {
return Err(Error::new_spanned(field_name, "Naming a prop `key` is not allowed because the name can conflict with the built in key attribute. See https://dioxuslabs.com/learn/0.4/reference/dynamic_rendering#rendering-lists for more information about keys"));
}
let StructInfo {
ref builder_name, ..
} = *self;