External Publication
Visit Post

Pre-feature request: suppress unused variable warning for unit-type arguments

Rust Internals [Unofficial] March 14, 2026
Source

When writing a lot of code I frequently encounter unused warnings, pointing out that I forgot to implement some piece of logic. They're really helpful, even for zsts. I don't about about Copy though.

Maybe you can pr with some warn by default lint about Copy ZSTs and we'll see how many decide to switch it to allow?

Discussion in the ATmosphere

Loading comments...