summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-07-10 17:20:35 +0100
committerGary Guo <gary@garyguo.net>2026-07-13 12:11:01 +0100
commit751ecd5a19cf2c55807bf30f35bafc32e179a19c (patch)
tree6dfa6508ae19ed0183eeb18a89e7818df971e8ef /tools/perf/scripts/python/task-analyzer.py
parentc1722ae6fefe3723f31656172f4bc196225506dc (diff)
rust: pin-init: internal: generate brace in macro for init code blocks
`init!` support interleaving code execution and initialization, and code execution is done using `_: { ... }` syntax. If the code inside block is a single statement, Rust may add a lint about unused braces, but the suggestion will be incorrect as block is required by pin-init. Currently we use `unused_brace` to suppress this, but this affect everything nested inside as well. Use an alternative approach by generating the block from the macro, then rustc will know to not emit the lint. Reviewed-by: Benno Lossin <lossin@kernel.org> Link: https://patch.msgid.link/20260710-pin-init-sync-v1-5-8fa16cde87ae@garyguo.net Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions