Closed olson-dan closed 2 months ago
looks related to https://github.com/google/flatbuffers/issues/8148 which can probably be fixed just by releasing a version.
This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale
, or this will be closed in 14 days.
This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.
I'm using flatc.exe on Windows version 23.5.26, generating code for Rust.
The first line of the .fbs I'm attempting to compile is:
This generates Rust code similar to the following:
This causes conflicts with the Rust
core
module:Changing the boilerplate to
use ::core::cmp::Ordering;
anduse ::core::mem;
fixes the issue.I recognize that I can also change the name inside the schema, but this is part of a large corpus of fbs files that I only partially control.