rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Prevent emission of (potentially colliding) type aliases in root module for inner types

Open jbg opened this issue 7 months ago • 0 comments

  • Emit aliases in the nearest ancestor module if the parent is not a module, rather than in the root module
  • If an alias would refer to itself, don't emit it (this is really a workaround for the fact that names are sometimes not unique enough, e.g. the header in #2056 produces two items called f_iterator)

jbg avatar Apr 30 '25 12:04 jbg