[PATCH] .gitignore: ignore rustc long type txt files

Manos Pitsidianakis posted 1 patch 3 days, 10 hours ago
.gitignore | 3 +++
1 file changed, 3 insertions(+)
[PATCH] .gitignore: ignore rustc long type txt files
Posted by Manos Pitsidianakis 3 days, 10 hours ago
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>