Skip to content

Rust compilation issue on new version #8876

@mattklein123

Description

@mattklein123

With the upgrade to 25.12.19 I am seeing a huge amount of errors that look like this:

error[E0282]: type annotations needed
    --> bd-proto/src/flatbuffers/report_generated.rs:5258:49
     |
5258 |       let w: alloc::vec::Vec<_> = x.iter().map(|t| t.pack(_fbb)).collect();_fbb.create_vector(&w)
     |                                                 ^  - type must be known at this point
     |
help: consider giving this closure parameter an explicit type
     |
5258 |       let w: alloc::vec::Vec<_> = x.iter().map(|t: /* Type */| t.pack(_fbb)).collect();_fbb.create_vector(&w)
     |                                                  ++++++++++++
shared-core> flatc --version
flatc version 25.12.19
shared-core> rustc --version
rustc 1.92.0 (ded5c06cf 2025-12-08)

I haven't built up a self contained repro yet but let me know if it's not obvious to you and I can try to create one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReleaseAn issue involving a release of flatbuffersrust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions