Skip to content

Fix field deduplication#129

Draft
inferiorhumanorgans wants to merge 2 commits intoembassy-rs:mainfrom
inferiorhumanorgans:fix-dedup-fields
Draft

Fix field deduplication#129
inferiorhumanorgans wants to merge 2 commits intoembassy-rs:mainfrom
inferiorhumanorgans:fix-dedup-fields

Conversation

@inferiorhumanorgans
Copy link
Copy Markdown
Contributor

#93 actually missed the part of the code where the field itself is named. This PR ensures fields are renamed.

This is marked as a draft because I added a couple tests to define the expected behavior. Beyond making sure that this is the right shape for tests to take, the duplicate_ir_fields_should_not_collide test fails. Should deduplication happen when parsing SVD and YAML definitions or just SVDs?

@datdenkikniet

This comment was marked as outdated.

@inferiorhumanorgans
Copy link
Copy Markdown
Contributor Author

This does enforce deduplication at the SVD ↔ IR boundary, no?

@datdenkikniet
Copy link
Copy Markdown
Contributor

datdenkikniet commented May 2, 2026

Hm, yeah, I'm sorry: I don't really know how I convinced myself that this was doing something else... I've hidden my comment for now. Though 134 does (I think?) also fix this problem, my comment is outdated/off-topic/just wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants