diff options
| author | 2026-09-16 13:11:33 +0100 | |
|---|---|---|
| committer | 2026-09-18 12:21:02 +0100 | |
| commit | 7f849c19e22f105c756b32a6a00dfee9cc1a2c2c (patch) | |
| tree | 880565b4e896e0012e9aa3c979f05cb93088c07d /scripts/Makefile.thinlto | |
| parent | rust: pin-init: internal: init: emit `slot` using mixed site hygiene (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
