Re: [PATCH v3] kbuild: rust: make `*.long-type-*.txt` a target for cleanup

From: Miguel Ojeda

Date: Sun May 31 2026 - 02:46:51 EST


On Sat, May 30, 2026 at 8:51 PM Joel Kamminga <contact@xxxxxxxx> 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>
> ---

In general, please add a changelog after the `---` line. Otherwise,
reviewers need to manually inspect the patch to see what has changed,
if anything.

For instance, I see you changed the title, but the commit message
seems identical. Was there a reason to not change it?

Thanks!

Cheers,
Miguel