Skip to content

Consider removing 'size' and 'alignment' as Rust keywords #8114

@csmulhern

Description

@csmulhern

size and alignment are considered "reserved words" for Namer purposes.

See:

"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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions