mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] .gitignore: ignore rustc long type txt files
@ 2026-05-21 10:21 Manos Pitsidianakis
  2026-05-28 11:53 ` Miguel Ojeda
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Manos Pitsidianakis @ 2026-05-21 10:21 UTC (permalink / raw)
  To: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich
  Cc: linux-kernel, rust-for-linux, Manos Pitsidianakis

When rustc prints an error containing a long type that doesn't fit in a
line, it will write the whole thing in a .txt file and print messages
like:

  note: the full type name has been written to
  'path/to/subsystem/module_name.long-type-11621316855315349594.txt

Long types like core::result::Result<core::pin::Pin<Box<_, Kmalloc,
kernel::error::Error>: pin_init::PinInit<Box<_, Kmalloc>, _> are common
during development, so add a gitignore entry.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitignore b/.gitignore
index 3044b9590f058f94fb5334d75765444066488b8f..529c02d9bc11d17672019e49e5ebeacc168a6cb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -188,3 +188,6 @@ sphinx_*/
 
 # bc language scripts (not LLVM bitcode)
 !kernel/time/timeconst.bc
+
+# rustc error message long types
+*.long-type-*.txt

---
base-commit: 8bc67e4db64aa72732c474b44ea8622062c903f0
change-id: 20260521-rust-gitignore-long-types-txt-c1e5d0071913

Best regards,
-- 
Manos Pitsidianakis <manos@pitsidianak.is>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-28 21:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-21 10:21 [PATCH] .gitignore: ignore rustc long type txt files Manos Pitsidianakis
2026-05-28 11:53 ` Miguel Ojeda
2026-05-28 20:36   ` Nathan Chancellor
2026-05-28 21:08     ` Miguel Ojeda
2026-05-28 21:11 ` Danilo Krummrich
2026-05-28 21:28 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®