-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
size
and alignment
are considered "reserved words" for Namer
purposes.
See:
flatbuffers/src/idl_gen_rust.cpp
Lines 134 to 135 in 205285c
"size", | |
"alignment", |
This is because these identifiers are used in the flatbuffers::Push
trait. See: https://docs.rs/flatbuffers/latest/flatbuffers/trait.Push.html#provided-methods.
Can we consider removing these identifiers as reserved keywords? size
is an especially common field name. Usages of the respective Push
methods (which I expect are rare) can always be done via universal function call syntax (i.e. Push::size(&value)
instead of value.size()
).
Metadata
Metadata
Assignees
Labels
No labels