diff options
| author | Gary Guo <gary@garyguo.net> | 2026-09-16 13:11:33 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-09-18 12:21:02 +0100 |
| commit | 7f849c19e22f105c756b32a6a00dfee9cc1a2c2c (patch) | |
| tree | 880565b4e896e0012e9aa3c979f05cb93088c07d /tools/lib/python | |
| parent | e30decc3f9a0ded621d5b0f19a5253b84d21be0c (diff) | |
| download | linux-next-7f849c19e22f105c756b32a6a00dfee9cc1a2c2c.tar.gz linux-next-7f849c19e22f105c756b32a6a00dfee9cc1a2c2c.zip | |
rust: pin-init: internal: init: use `slot` identifier directly with mixed site
Use `quote_spanned!(Span::mixed_site() => ...)` directly instead of
creating `slot` identifier and interpolate it later. Do the same for
`__data`, too.
This is needed so that we can customize the location of the span without
having the `slot` identifier getting in the way. For example:
quote_spanned!(Span::mixed_site().located_at(loc) => ...)
with `slot` mentioned directly will have the diagnostic pointing to the
desired location, while `#slot` won't.
Link: https://patch.msgid.link/20260916-dev-hygiene-v1-2-dfb6ae2588ba@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
