diff options
| author | Gary Guo <gary@garyguo.net> | 2026-01-12 17:07:19 +0000 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-01-28 13:43:36 +0100 |
| commit | c3b416e19eb38a6b8d9a30bc7df1361ac3244464 (patch) | |
| tree | 32ef033c8913504c74fb3c7dce5a55e2161a79dc /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | a863b21b1e665d8fed0022c0175ffbdc5d94c06c (diff) | |
rust: macros: convert `#[kunit_tests]` macro to use `syn`
Make use of `syn` to parse the module structurally and thus improve the
robustness of parsing.
String interpolation is avoided by generating tokens directly using
`quote!`.
Reviewed-by: Tamir Duberstein <tamird@gmail.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://patch.msgid.link/20260112170919.1888584-9-gary@kernel.org
[ Pass C string to match commit 6c37b6841a92 ("rust: kunit: replace
`kernel::c_str!` with C-Strings"). - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
