diff options
| author | Gary Guo <gary@garyguo.net> | 2026-05-02 22:58:33 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-10-11 11:06:47 +0100 |
| commit | e2b2e01365120d388c25ddaefa9f1e6a25aa1f28 (patch) | |
| tree | b981addb73ef0562175bb22ec18008065adfe92b /tools/perf/scripts/python/flamegraph.py | |
| parent | e55acb73379fc2a5164c741bb1257becd346bc39 (diff) | |
rust: pin-init: internal: pin_data: perform AST lifetime replacement if possible
Currently lifetimes are replaced via function type and `FnOutput` trait.
This is very general approach as it uses generic associated type to replace
lifetime, so it can even work when macros are involved. This does cause
more generated code, and does not render in documentation nicely.
Thus, just replace the lifetime in the AST if no macros are involved.
Acked-by: Benno Lossin <lossin@kernel.org>
Link: https://patch.msgid.link/20261008-dev-selfref-v2-18-e280b3c8fba5@garyguo.net/
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
