Re: [PATCH v3] kbuild: rust: make `*.long-type-*.txt` a target for cleanup
From: Miguel Ojeda
Date: Tue Jun 02 2026 - 04:17:46 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>
Applied to `rust-next` -- thanks everyone!
[ Reworded and linked to the previous related commit. - Miguel ]
Joel: please check the rewording.
Cheers,
Miguel