diff options
| author | Gary Guo <gary@garyguo.net> | 2026-10-06 17:29:38 +0200 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-10-07 12:52:28 +0200 |
| commit | 0d9aa4b994379c6e0099737221ed421deb7e1a31 (patch) | |
| tree | a6f4bbe953b7171c5914a029d37e28c9c41a8535 /scripts/checkstack.pl | |
| parent | ec87b5938354046ca79a3ed7fcd89a2cb9469f11 (diff) | |
| download | linux-next-0d9aa4b994379c6e0099737221ed421deb7e1a31.tar.gz linux-next-0d9aa4b994379c6e0099737221ed421deb7e1a31.zip | |
rust: pin-init: internal: pin_data: parse into `StructInfo` before generating
Organize parsing and generation into two separate phases, with a single
`StructInfo` in the middle. This allows analysis and processing to happen
with a single struct and avoid having to pass different information into
the token stream generation functions.
A drawback of this approach is that as we consume the `Fields`, we cannot
expand the original struct using `quote!(#struct_)` anymore, and the field
needs to be re-constructed in `generate_struct_def` function. However, this
is only a temporary drawback, as the upcoming pin-init self-referential
feature will require modification of the generated struct anyway.
Acked-by: Benno Lossin <lossin@kernel.org>
Link: https://patch.msgid.link/20261006-dev-selfref-dep-v1-8-da716f740d6d@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
