mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 12:12:39 +00:00
Removes 'size' and 'alignment' as Rust keywords (#8139)
* Adds fields for possibly reserved words to rust_namer_test * Removes size and alignment as rust reserved words
This commit is contained in:
@@ -16,12 +16,22 @@ table PlayerInputChange {}
|
||||
|
||||
union GameMessage
|
||||
{
|
||||
PlayerStatEvent,
|
||||
PlayerSpectate,
|
||||
PlayerStatEvent,
|
||||
PlayerSpectate,
|
||||
PlayerInputChange
|
||||
}
|
||||
|
||||
table GameMessageWrapper
|
||||
{
|
||||
Message:GameMessage;
|
||||
}
|
||||
}
|
||||
|
||||
struct PossiblyReservedWords
|
||||
{
|
||||
// Keywords reserved by Rust namer
|
||||
follow: float;
|
||||
push: float;
|
||||
// Keywords no longer reserved by Rust namer
|
||||
size: float;
|
||||
alignment: float;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user