Skip to content

reference fields in anonymous struct initializers#2354

Merged
Techatrix merged 1 commit into
zigtools:masterfrom
xdBronch:struct-ref
Jun 11, 2025
Merged

reference fields in anonymous struct initializers#2354
Techatrix merged 1 commit into
zigtools:masterfrom
xdBronch:struct-ref

Conversation

@xdBronch

@xdBronch xdBronch commented Jun 7, 2025

Copy link
Copy Markdown
Member

closes #1837
i was worried about potential performance problems but it seems to be working fine and the same was being done for the .enum_literal case anyway
also fixes a bug where quoted field names weren't renamed since it was getting the entire token loc

Comment thread src/features/references.zig Outdated
@Techatrix
Techatrix merged commit 4acbe89 into zigtools:master Jun 11, 2025
4 checks passed
@xdBronch
xdBronch deleted the struct-ref branch June 11, 2025 01:59
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.

Field rename does not rename struct initialization's fields

2 participants