Rustc flag to control "the full name for the type has been written to _" output?

⚓ Rust    📅 2026-02-02    👤 surdeus    👁️ 7      

surdeus

When an error or warning features a long type, rustc writes it to a file with a note of this kind:

= note: the full name for the type has been written to AAAA.long-type-HHHH.txt

How can I disable that writing to an extra file?

My use case is I've got a test suite that involves running rustc on both valid and invalid rust files and I'd prefer not having such files appear every time I run my test suite.

It's worth nothing that --error-format=short does not disable this behavior.

1 post - 1 participant

Read full topic

🏷️ Rust_feed