We do not uniqueify cxx::bridge names except for functions
Open
bug
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
This error encountered on an internal codebase:
`"thread '' panicked at 'Unable to generate header and C++ code: Syn(Error("the name `Key` is defined multiple times"))', /src/main.rs:189:18"`
Working on reducing now.
Contributor guide
Research direction
Start at /src/main.rs:189:18 and reproduce the reported generation failure using the reduced internal case. Trace how cxx::bridge names are handled, with the duplicate `Key` definition as the test case; the work is done when distinct bridge names no longer trigger this panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100