Skip to content
Discussion options

You must be logged in to vote

Thank you, @swarm59, for the clear report and reproducer. You were right: reopening an IDL module could leave multiple module nodes in the generated representation, and the Rust backend then emitted duplicate pub mod declarations that failed with E0428.

The direct failure is fixed on main in bd7e592. Reopened modules are now merged into one semantic scope while preserving all declarations and their source information.

Your report also led us considerably deeper than the original Rust compiler error. During the cross-backend audit, we found that ten code-generation backends had incomplete or missing handling for Definition::Module. Instead of producing a visible duplicate, they could silen…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SandraK82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants