Re: [PATCH v3] kbuild: rust: make `*.long-type-*.txt` a target for cleanup
From: Nathan Chancellor
Date: Mon Jun 01 2026 - 15:28:42 EST
On Mon, Jun 01, 2026 at 10:50:42AM -0600, Joel Kamminga wrote:
> 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'
Not that I think it is worth resending over but I personally find the
"clean '...' files" title easier to understand than the "make '...' a
target for cleanup".
If Miguel wants to take this via the Rust tree:
Acked-by: Nathan Chancellor <nathan@xxxxxxxxxx>
Otherwise, I can take it for Kbuild. I don't have a preference and I
doubt there will be a conflict in this area in the next couple of weeks.
> 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
--
Cheers,
Nathan