Skip to content

Commit 8afa6c4

Browse files
Engineer-HaMagregkh
authored andcommitted
scripts: generate_rust_analyzer: fix resolution of #[pin_data] macros
commit e440bc5 upstream. Currently, rust-analyzer fails to properly resolve structs annotated with `#[pin_data]`. This prevents IDE features like "Go to Definition" from working correctly for those structs. Add the missing configuration to `generate_rust_analyzer.py` to ensure the `pin-init` crate macros are handled correctly. Signed-off-by: SeungJong Ha <engineer.jjhama@gmail.com> Fixes: d7659ac ("rust: add pin-init crate build infrastructure") Cc: stable@vger.kernel.org Tested-by: Tamir Duberstein <tamird@kernel.org> Acked-by: Tamir Duberstein <tamird@kernel.org> Acked-by: Gary Guo <gary@garyguo.net> Reviewed-by: Jesung Yang <y.j3ms.n@gmail.com> Link: https://patch.msgid.link/20260123-fix-pin-init-crate-dependecies-v2-1-bb1c2500e54c@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2426867 commit 8afa6c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate_rust_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def is_root_crate(build_file, target):
192192
append_crate(
193193
name,
194194
path,
195-
["core", "kernel"],
195+
["core", "kernel", "pin_init"],
196196
cfg=cfg,
197197
)
198198

0 commit comments

Comments
 (0)