flatc generates invalid rust code [Rust, rustc 1.68.0, linux, master] #7865
Closed
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`
Metadata
Assignees
Labels
No labels
Activity