Skip to content

Conversation

Techassi
Copy link
Member

@Techassi Techassi commented Sep 2, 2025

This PR correctly emits enum variant fields in From impl blocks. Encountered in stackabletech/secret-operator#634.

@Techassi Techassi self-assigned this Sep 2, 2025
@Techassi Techassi moved this to Development: In Progress in Stackable Engineering Sep 2, 2025
@Techassi Techassi moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Sep 2, 2025
@Techassi Techassi marked this pull request as ready for review September 2, 2025 13:38
@Techassi Techassi force-pushed the fix/stackable-versioned-from-impl-enum-fields branch from a462542 to aba872e Compare September 2, 2025 13:50
Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I can follow the code 100%, but we have a test 😅

@Techassi
Copy link
Member Author

Techassi commented Sep 2, 2025

I'm not sure I can follow the code 100%, but we have a test 😅

Is there anything I can help with? I can add a few comments to the code to explain what exactly it generates.

@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Sep 2, 2025
@sbernauer
Copy link
Member

Looking at crates/stackable-versioned-macros/tests/snapshots/stackable_versioned_macros__snapshots__pass@enum_fields.rs.snap it all makes sense, happy to merge as-is

@Techassi
Copy link
Member Author

Techassi commented Sep 3, 2025

Alright, cool.

@Techassi Techassi added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit 13cd4c1 Sep 3, 2025
8 checks passed
@Techassi Techassi deleted the fix/stackable-versioned-from-impl-enum-fields branch September 3, 2025 07:30
@sbernauer sbernauer moved this from Development: In Review to Development: Done in Stackable Engineering Sep 3, 2025
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants