Skip to content

Conversation

@Jkhall81
Copy link

@Jkhall81 Jkhall81 commented Feb 1, 2026

Summary

Automatically scans the initializer to see which fields are actually used, preventing errors on packed structs.

Closes #98

Signed-off-by: jkhall81 <jason.kei.hall@gmail.com>
@Jkhall81 Jkhall81 force-pushed the feat/auto-accessor-scanning branch from 6ed15b4 to bc2e3f0 Compare February 1, 2026 02:08
@Jkhall81
Copy link
Author

Jkhall81 commented Feb 1, 2026

Fixed the cargo fmt --check --all stuff, manually. I need to figure out how or make something to do that automatically. There was a ui test failure tests/ui/compile-fail/init/packed_struct.rs. That compiles now. So I deleted the .rs and .stderr for that. Now there is just this MSRV (1.78) issue. What I tried just now didn't fix it. I'll look at it in the morning.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Only create accessors for initialized fields if it would be used

1 participant