Skip to content

flatc generates invalid rust code [Rust, rustc 1.68.0, linux, master] #7865

Closed
@swz-git

Description

Running flatc (master or 23.3.3) on rlbot.fbs generates invalid rust code:

error[E0599]: no method named `message_type` found for reference `&GameMessageWrapper<'a>` in the current scope
     --> src/rlbot_generated.rs:12128:13
      |
12128 |     if self.message_type() == GameMessage::PlayerStatEvent {
      |             ^^^^^^^^^^^^ help: there is a method with a similar name: `Message_type`

error[E0599]: no method named `message_type` found for reference `&GameMessageWrapper<'a>` in the current scope
     --> src/rlbot_generated.rs:12143:13
      |
12143 |     if self.message_type() == GameMessage::PlayerSpectate {
      |             ^^^^^^^^^^^^ help: there is a method with a similar name: `Message_type`

error[E0599]: no method named `message_type` found for reference `&GameMessageWrapper<'a>` in the current scope
     --> src/rlbot_generated.rs:12158:13
      |
12158 |     if self.message_type() == GameMessage::PlayerInputChange {
      |             ^^^^^^^^^^^^ help: there is a method with a similar name: `Message_type`

error[E0599]: no method named `message_type` found for reference `&GameMessageWrapper<'_>` in the current scope
     --> src/rlbot_generated.rs:12237:18
      |
12237 |       match self.message_type() {
      |                  ^^^^^^^^^^^^ help: there is a method with a similar name: `Message_type`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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