Re: [PATCH v3] kbuild: rust: make `*.long-type-*.txt` a target for cleanup
From: Joel Kamminga
Date: Mon Jun 01 2026 - 12:52:45 EST
On 2026-05-30 12:49, Joel Kamminga wrote:
> This cleans up files generated by rustc compiler in the case of an
> error containing an excessively long type name that doesn't fit in
> a single line. Such types appear relatively frequently so the risk
> of generating these files certainly exists. These files are purely
> compiler artifacts and are not created intentionally by the build
> system. They should be added to the `clean` target to stop from
> cluttering up the source tree.
>
> Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1236
> Signed-off-by: Joel Kamminga <contact@xxxxxxxx>
> ---
CHANGELOG:
Changes since v2 (https://lore.kernel.org/linux-kbuild/20260529205529.75586-1-contact@xxxxxxxx/):
- Change commit title to be more imperative and more heavily scoped
'kbuild: clean `*.long-type-*.txt` files' -> 'kbuild: rust: make
`*.long-type-*.txt` a target for cleanup'
Changes since v1 (https://lore.kernel.org/linux-kbuild/20260529203426.65189-1-contact@xxxxxxxx/):
- Replace `Reported-by` tag with a `Suggested-by` and `Link` tag to reference back to the
related GitHub issue