Skip to content

[Rust] Generated code is inconsistent for fields named type #5052

@andygrove

Description

@andygrove

Language: Rust
Operating System: Ubuntu 16.04
Gcc: 5.4.0

I used Flatbuffers as of commit 2159191 to generate code from the Schema.fbs file in Apache Arrow (https://github.com/apache/arrow/blob/master/format/Schema.fbs) and the generated code would not compile. There were inconsistencies around code generated for the field named type (I'm guessing this might be a reserved word issue).

The generated code sometimes refered to type__type (two underscores) and sometimes type_type (one underscore). I manually performed a search and replace to standardize on the single underscore version and the code then compiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions