Skip to content

Fix arches.rdl roundtrip: resolve enum variant names and panic on missing metadata#4071

Closed
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-roundtrip-architecture-attributes
Closed

Fix arches.rdl roundtrip: resolve enum variant names and panic on missing metadata#4071
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-roundtrip-architecture-attributes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

  • Understand full call graph and panic sites
  • Convert write_to_fileResult<(), Error> (with I/O error details in message)
  • Convert write_enum_valueResult<TokenStream, Error>
  • Convert extract_guid_from_attributeResult<(u32, u16, u16, [u8; 8]), Error>
  • Convert write_const_guid / write_const / write_const_valueResult<TokenStream, Error>
  • Convert write_custom_attributes_except / write_custom_attributesResult<Vec<TokenStream>, Error>
  • Convert write_paramsResult<Vec<TokenStream>, Error>
  • Convert interface_guid_is_derived / delegate_guid_is_derivedResult<bool, Error>
  • Convert write_type_def / write_type_def_items / write_items → Result
  • Convert sub-module functions in attribute/callback/class/delegate/enum/fn/interface/struct → Result
  • Update write() to propagate errors with ?
  • Revert writer_missing_enum_reference_panics test back to #[should_panic] form (roundtrip/arches testing to be handled separately)
  • cargo test -p test_rdl --test panic — all 45 tests pass

Copilot AI and others added 2 commits March 25, 2026 15:11
…missing enum types

Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/14606d4f-3629-48fe-8ab3-eda298f981b9
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